Page 1 of 1

check_dhcp_snmp: No output returned from plugin

Posted: Mon Feb 11, 2019 3:09 am
by gcrodaje
Hi,

I'm running Nagios XI version 5.5.9 on CentOS Linux release 7.5.1804 (Core)

and I'm trying to check windows server dhcp pool status using this plugin from this link https://exchange.nagios.org/directory/P ... mp/details

Unfortunately, I'm having a hard time to resolve this issue.

Code: Select all

[root@localhost ~]# /usr/local/nagios/libexec/check_dhcp_snmp.pl -H 10.162.x.x -C snmp_community -w 20 -c 10

DHCP_SNMP OK - All scopes fine
Upon checking on the services in the NMS, the status information gave me this output in the WebUI.

Code: Select all

(No output returned from plugin)

DHCP_SNMP OK - All scopes fine
I also tried to search this in Google as well, but i have no luck.

Any thoughts?

Thank you very much.

Re: check_dhcp_snmp: No output returned from plugin

Posted: Mon Feb 11, 2019 4:48 am
by gcrodaje
For additional information.

Code: Select all

[root@phailewdnagphxi libexec]# ls -la check_dhcp_snmp.pl
-rwxrwxr-x 1 apache nagios 9165 Feb 11 16:26 check_dhcp_snmp.pl
[root@phailewdnagphxi libexec]#

Re: check_dhcp_snmp: No output returned from plugin

Posted: Mon Feb 11, 2019 12:26 pm
by scottwilkerson
It looks like the plugin is returning the 1st line empty.

Nagios requires output on the first line or will give you the error you see (No output returned from plugin)

One this I noticed is you are using the depricated Nagios::Plugin package in this plugin

Let's make a backup of the plugin and change it to the current Nagios::Monitoring::Plugin

Code: Select all

cp /usr/local/nagios/libexec/check_dhcp_snmp.pl /tmp
sed -i -e 's/Nagios::Plugin/Nagios::Monitoring::Plugin/g' /usr/local/nagios/libexec/check_dhcp_snmp.pl