Check_APC_PDU Command Definition

Peter Roddan Peter.Roddan at sbsworldwide.com
Sun Mar 27 22:45:51 CEST 2011


Hi Everyone,

Apologies is this is a silly question or something I've missed, but I've been going round in circles for ages on this one!
I'm trying to use Marius Rieder's pearl script to check the status of some APC PDUs.
I have the command working ok, but it's the Nagios Commands that I'm failing on - it's been a while since I set up our Nagios install, so I think I've some something wrong.
I'm running Nagios Core 3.2.3, and I'm using the script from here http://oss.isg.inf.ethz.ch/nagiosplug/

If I log onto the nagios server as the nagios user, and run the command from the libexec folder (check_apc_pdu -H <address> -C public) I get the response :

"OK: All Outlets ok. | load=25"

I have put the following command definition in :

# 'check_apc_pdu' command definition
define command{
command_name              check_apc_pdu
command_line $USER1$/check_apc_pdu.pl -H $HOSTADDRESS$ -C public
}

And defined the following service

define service{
                use                                         generic-service                ; Inherit values from a template
                hostgroup_name                             apc         ; The name of the host the service is associated with
                service_description        check_apc                           ; The service description
                check_command                              check_apc_pdu                 ; The command used to monitor the service
                normal_check_interval 5                              ; Check the service every 5 minutes under normal conditions
                retry_check_interval      1                              ; Re-check the service every minute until its final/hard state is determined
                }


However, my APC PDUs report an error for this service, with  a status information of "(Null)"
I'd be grateful for anyone who could point me in the right direction of where I'm going wrong.


Thanks,

Peter

Peter Roddan
Senior Systems Analyst

SBS Worldwide Ltd - Dartford
DDI No: +44 (0)1322 424741
Email :Peter.Roddan at sbsworldwide.com<mailto:Peter.Roddan at sbsworldwide.com>
Website :sbsworldwide.com<http://sbsworldwide.com>

[cid:image001.jpg at 01CBECC5.C66680F0]
P  Think before you print!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110327/9e764b06/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 48202 bytes
Desc: image001.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110327/9e764b06/attachment.jpg>
-------------- next part --------------
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list