check_dhcp_snmp: No output returned from plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gcrodaje
Posts: 24
Joined: Tue Nov 27, 2018 10:46 pm

check_dhcp_snmp: No output returned from plugin

Post 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.
gcrodaje
Posts: 24
Joined: Tue Nov 27, 2018 10:46 pm

Re: check_dhcp_snmp: No output returned from plugin

Post 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]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_dhcp_snmp: No output returned from plugin

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked