Check_APC_PDU Command Definition

Peter Roddan Peter.Roddan at sbsworldwide.com
Tue Apr 5 11:12:37 CEST 2011


Hi Adam,

Thanks for your reply - Sorry for the lateness of mine, I've been away.

Status is displayed as critical, with status information listed as (null).

Screenshot below.

[cid:image002.png at 01CBF379.FD831610]

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:image003.jpg at 01CBF379.FD831610]
P  Think before you print!

From: Adam Augustine [mailto:augustineas at gmail.com]
Sent: 30 March 2011 15:41
To: Nagios Users List
Subject: Re: [Nagios-users] Check_APC_PDU Command Definition

When you say "my APC PDUs report an error for this service", do you mean they report critical, unknown, or something else?
On Sun, Mar 27, 2011 at 2:45 PM, Peter Roddan <Peter.Roddan at sbsworldwide.com<mailto:Peter.Roddan at sbsworldwide.com>> wrote:
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<http://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<tel:%2B44%20%280%291322%20424741>
Email :Peter.Roddan at sbsworldwide.com<mailto:Peter.Roddan at sbsworldwide.com>
Website :sbsworldwide.com<http://sbsworldwide.com>

[cid:image003.jpg at 01CBF379.FD831610]
P  Think before you print!


________________________________________________________________________
THE DRIVING FORCE BEHIND FREIGHT MANAGEMENT
________________________________________________________________________
This email and any files transmitted with it are confidential and may be privileged or otherwise protected from disclosure. The email is intended solely for the use of the individual or entity to whom it is addressed and, if you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person. If you have received this email in error please notify hostmaster at sbsworldwide.com<mailto:hostmaster at sbsworldwide.com>

This e-mail has been scanned for all viruses by Messagelabs but no responsibility will be accepted by SBS Worldwide Group if the recipient's computer system is corrupted by information transmitted from this computer system nor for any delays or problems arising out of or caused by any corruption.

All business is conducted strictly subject to SBS standard contract terms and conditions which are as follows:-

1) Business transacted by SBS Worldwide Ltd (UK): British International Freight Association (BIFA) Standard Trading Conditions, latest edition

2) Business transacted by SBS Worldwide Inc (USA): National Customs Brokers And Forwarders Association of America (NCBFAA) Terms & Conditions of Service, latest edition

Copies will be supplied on request or can be viewed on our website as follows:-

http://www.sbsworldwide.com/legals

All quotes , rates and surcharges are subject to market fluctuation.

SBS Worldwide Ltd registered in England No: 1739816

Registered Office: SBS Cargo Centre, Anchor Boulevard, Crossways, Dartford, Kent DA2 6SB, England

________________________________________________________________________

------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net<mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110405/e0f4128e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 169145 bytes
Desc: image002.png
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110405/e0f4128e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 48202 bytes
Desc: image003.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110405/e0f4128e/attachment.jpg>
-------------- next part --------------
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
-------------- 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