Plugin output discrepancy Nagios 2.0b4 (RHEL3 RPM)

Scott, Casey Casey.Scott at wizards.com
Mon Sep 19 20:29:46 CEST 2005


 

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of Marc Powell
> Sent: Monday, September 19, 2005 11:11 AM
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Plugin output discrepancy Nagios 
> 2.0b4 (RHEL3 RPM)
> 
> Please try to post in plain text if possible.
> 
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users- 
> > admin at lists.sourceforge.net] On Behalf Of Scott, Casey
> > Sent: Monday, September 19, 2005 12:46 PM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Plugin output discrepancy Nagios 
> 2.0b4 (RHEL3
> RPM)
> > 
> > I am trying to use the check_temptraxe plugin. The plugin is
> configured as
> > directed:
> > 
> > services.cfg
> > 
> > 
> > 
> > define service{
> > 
> >         use                             generic-service
> > 
> >         host_name                       temptrax
> > 
> >         service_description             Datacenter Temperature
> > 
> >         is_volatile                     0
> > 
> >         check_period                    24x7
> > 
> >         max_check_attempts              3
> > 
> >         normal_check_interval           3
> > 
> >         retry_check_interval            1
> > 
> >         contact_groups                  datacenter-facilities
> > 
> >         notification_interval           15
> > 
> >         notification_period             24x7
> > 
> >         notification_options            c,r
> > 
> >         check_command                   check_temptraxe!1!75!80
> > 
> >         }
> > 
> > 
> > 
> > checkcommands.cfg
> > 
> > 
> > 
> > define command{
> > 
> >         name            check_temptraxe
> > 
> >         command_name    check_temptraxe
> > 
> >         command_line    $USER1$/check_temptraxe -H $HOSTADDRESS$ -p
> $ARG2$
> > -w $ARG3$ -c $ARG4$
> > 
> >         }
> 
> I don't use check_temptraxe but these arguments are incorrect.
> $ARG2$=75, $ARG3$=80 and $ARG4$ is non-existent. You probably 
> mean $ARG1$, $ARG2$ and $ARG3$.
>  
> > hosts.cfg
> > 
> > 
> > 
> > define host {
> > 
> > use                            generic-host
> > 
> > host_name                      temptrax
> > 
> > alias                          WotC Datacenter Temperature Probes
> > 
> > address                         10.1.1.85
> > 
> > max_check_attempts             10
> > 
> > notification_interval          120
> > 
> > notification_period            24x7
> > 
> > notification_options           d,u,r
> > 
> > }
> > 
> > 
> > 
> > 
> > 
> > The output is correct for the service portion.
> > 
> > E.g. /var/log/messages shows "Sep 19 10:25:55 TSUTIL01 
> nagios: SERVICE
> > ALERT: temptrax;Datacenter Temperature;OK;HARD;1;Temp Ok: Probe 1 =
> 74.9
> > F"
> > 
> > Plugin output in status.dat for the service{} shows ""Temp 
> Ok: Probe 1
> =
> > 74.0 F.
> 
> Odd considering the command definition is incorrect but I'll 
> take your word for it.
> 
> > 
> > However, the host{} portion shows "Error: Incorrect command line 
> > arguments". The error seems to indicate that the check command is
> being
> > run without any parameters when the host{} data is 
> collected, but does
> run
> 
> Odd considering that you don't appear to have a host 
> check_command specified at all so nothing can/should be run 
> for the host check. This is what I would have expected for 
> the service check. Are you sure the command definitions above 
> accurately reflect your current Nagios configuration?
> 
> --
> Marc


I forgot to include the checkcommands.cfg

checkcommands.cfg

define command{
        name            check_temptraxe
        command_name    check_temptraxe
        command_line    $USER1$/check_temptraxe -H $HOSTADDRESS$ -p
$ARG1$ -w $ARG2$ -c $ARG3$
        }

Casey


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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