kastesh / zabbix-plugins

plugins and templates for zabbix
2 stars 3 forks source link

Help with configuring the "External DNS checks" #2

Open KayodeAkyl opened 8 years ago

KayodeAkyl commented 8 years ago

Help with configuring the "External DNS checks"

Hello people, I need a big help. I'm new in using the tool zabbix and is the first time that realize the addition of a plugin.

S.O. = CentOS release 6.4 Zabbix 2.4.6. My default folder is "/ usr / local / zabbix" I copied the contents of the git to "/ Usr / local / zabbix / share / zabbix / externalscripts / zabbix-plugins-master /"

I followed the README.md replacing the path mentioned above

I had several difficulties however managed to overcome them

Nevertheless I am not getting the data. I obtained this information through the tab "last values" which could only view items "External DNS" when I enabled "Show items with no data."

Extra information:

cat /tmp/zabbix_agentd.log

16451:20160428:163408.415 listener #1 [processing request] 16451:20160428:163408.415 Requested [dig_status[discovery,opendns]] 16451:20160428:163408.416 In zbx_popen() command:'/usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/scripts/dig_status.sh -m discovery -c /usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/etc/opendns.ini' 16451:20160428:163408.416 End of zbx_popen():7 16763:20160428:163408.416 zbx_popen(): executing script 16452:20160428:163408.426 listener #2 [processing request] 16452:20160428:163408.426 Requested [system.cpu.load[,avg1]] 16452:20160428:163408.426 Sending back [0.000000] 16452:20160428:163408.427 listener #2 [waiting for connection] 16451:20160428:163408.547 In zbx_waitpid() 16451:20160428:163408.548 zbx_waitpid() exited, status:0 16451:20160428:163408.548 End of zbx_waitpid():16763 16451:20160428:163408.548 EXECUTE_STR() command:'/usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/scripts/dig_status.sh -m discovery -c /usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/etc/opendns.ini' len:223 cmd_result:'{ "data":[{"{#REQ_FQ' 16451:20160428:163408.548 Sending back [{ "data":[{"{#REQ_FQDN}":"smtp.yandex.ru","{#REQ_DNS}":"208.67.222.222","{#RTN_IP}":"87.250.250.38,213.180.193.38"},{"{#REQ_FQDN}":"smtp.yandex.ru","{#REQ_DNS}":"208.67.220.220","{#RTN_IP}":"87.250.250.38,213.180.193.38"}]}] 16451:20160428:163408.548 listener #1 [waiting for connection] 16452:20160428:163409.352 listener #2 [processing request] 16452:20160428:163409.352 Requested [dig_status[discovery,google]] 16454:20160428:163409.352 In send_buffer() host:'127.0.0.1' port:10051 values:0/100 16452:20160428:163409.352 In zbx_popen() command:'/usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/scripts/dig_status.sh -m discovery -c /usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/etc/google.ini' 16454:20160428:163409.352 End of send_buffer():SUCCEED 16454:20160428:163409.352 active checks #1 [idle 1 sec] 16452:20160428:163409.353 End of zbx_popen():7 16957:20160428:163409.353 zbx_popen(): executing script 16450:20160428:163409.354 collector [processing data] 16450:20160428:163409.354 In update_cpustats() 16450:20160428:163409.354 End of update_cpustats() 16450:20160428:163409.355 collector [idle 1 sec] 16452:20160428:163409.463 In zbx_waitpid() 16452:20160428:163409.463 zbx_waitpid() exited, status:0 16452:20160428:163409.464 End of zbx_waitpid():16957 16452:20160428:163409.464 EXECUTE_STR() command:'/usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/scripts/dig_status.sh -m discovery -c /usr/local/zabbix/share/zabbix/externalscripts/zabbix-plugins-master/etc/google.ini' len:110 cmd_result:'{ "data":[{"{#REQ_FQ' 16452:20160428:163409.464 Sending back [{ "data":[{"{#REQ_FQDN}":"smtp.yandex.ru","{#REQ_DNS}":"8.8.8.8","{#RTN_IP}":"87.250.250.38,213.180.193.39"}]}] 16452:20160428:163409.464 listener #2 [waiting for connection]