(No output on stdout) stderr: Can't locate utils.pm in @INC (@INC contains: /usr/local/libexec/nagios /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /usr/local/nagi
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_pdu line 7
It looks like it's sourcing /usr/local/libexec/nagios and not /usr/local/nagios/libexec - you should be able to update the plugin to include that path and get things working properly.
/usr/local/nagios/libexec$ ./check_pdu -h 192.168.90.72 tripplite inputv 105 118
Can't call method "getnext" on an undefined value at ./check_pdu line 45.
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.5
# Date: 2017-02-06 16:07:16
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
host_name Nicoll PDU
service_description Ping
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts tom
_xiwizard genericnetdevice
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
##############################################################################
I'm not sure if I have that particular package installed. How do I check? I'm already using SNMP to monitor APC UPS devices in our network, if that helps.