Check_APC_PDU Command Definition

Adam Augustine augustineas at gmail.com
Wed Mar 30 16:41:19 CEST 2011


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
> 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 -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
> Website :sbsworldwide.com
>
> [image: Description:
> http://www.sbsworldwide.com/_images/signatures/sig_logo.jpg]
>
> 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
>
> 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
> 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/20110330/018340dd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 48202 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110330/018340dd/attachment.jpg>
-------------- next part --------------
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
-------------- 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