본문 바로가기

모니터링

[Zabbix] Zabbix error - cannot send list of active checks to "192.168.0.X": host [호스트이름] not found 오류가뜰 때

728x90

최근에 자빅스 서버를 제가 날려버렸습니다.

 

네 아주깔끔하게 망가뜨렸습니다. CORS 허가를 위해 이것저것 만지다가 그냥 날아갔습니다.

 

예전에 포스팅해둔 글을 보고 구축하려니 다 되는데 agent의 다른 서버가 zabbix서버에 붙질 않더군요.

 

굉장히 스트레스 받았습니다. 

 

네 야근했습니다.

 

log를 찬찬히 보다가 zabbix-server-mysql 로그에서 이런에러가 뜨더군요

 

다른 서버의 zabbix-agent log 에서도 마찬가지로 못 찾아간다 라는 에러가 뜨구요

 

   196:20210706:122432.399 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   195:20210706:122632.444 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   195:20210706:122832.487 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   195:20210706:123032.529 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   194:20210706:123232.572 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   195:20210706:123432.609 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   196:20210706:123632.652 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   193:20210706:123832.695 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   196:20210706:124032.739 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   193:20210706:124232.783 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   194:20210706:124432.826 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   193:20210706:124632.870 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   192:20210706:124832.915 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   192:20210706:125032.960 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found
   194:20210706:125233.004 cannot send list of active checks to "192.168.0.11": host [SecondaryMDB] not found

 

근무시간과 야근할때는 안보이던게 집에서 잠깐 보니 눈에 들어옵니다.

 

https://www.programmersought.com/article/71054017248/

 

Zabbix error - cannot send list of active checks to "192.168.174.133": host [ubuntu133] not found - Programmer Sought

This error occurs because the Hostname in zabbix_agentd.conf is generally different from the configuration in the front-end zabbix web, that is, the Name on the zabbix web page Monitoring->Configuration->Hosts page and the Hostname in zabbix_agentd.conf sa

www.programmersought.com

해당 글에 해결방법이 나와있었습니다.

 

/etc/hosts 에 내부 ip와 매칭되는 호스트 이름을 추가해주면 된다구요

 

바로 편집기를 켜서 추가했습니다.

 

127.0.0.1   localhost
127.0.1.1   service-125-140-110-217
192.168.0.98    ServiceDB

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

 

놀랍게도 바로 해결됐습니다. 

 

네트워크 등에 문제가 있는줄 알고 한참을 헤맸는데 굉장히 화가나면서 뿌듯한 오묘한 감정이 듭니다.

 

다들 저처럼 삽질을 안하셨으면 좋겠습니다.

반응형