Plugin output discrepancy Nagios 2.0b4 (RHEL3 RPM)
Scott, Casey
Casey.Scott at wizards.com
Mon Sep 19 20:57:26 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:48 AM
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Plugin output discrepancy Nagios
> 2.0b4 (RHEL3 RPM)
>
>
>
> > -----Original Message-----
> > From: Scott, Casey [mailto:Casey.Scott at wizards.com]
> > Sent: Monday, September 19, 2005 1:30 PM
> > To: Marc Powell; nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] Plugin output discrepancy Nagios 2.0b4
> (RHEL3
> > RPM)
> >
> >
> >
> > > -----Original Message-----
> > > From: nagios-users-admin at lists.sourceforge.net
> > > [mailto:nagios-users-admin at lists.sourceforge.net] On
> Behalf Of Marc
> > > Powell
> > >
> > > > -----Original Message-----
> > > > From: nagios-users-admin at lists.sourceforge.net
> > > [mailto:nagios-users-
> > > > admin at lists.sourceforge.net] On Behalf Of Scott, Casey
>
> [chop]
>
> > > > 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
> > > >
> > > > }
>
>
> [chop]
>
> > > >
> > > > 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$
> > }
>
> Ok. You had included it above but I see that it's using the
> correct arguments now. The problem you're reporting though is
> that the host check_command is returning bad results yet the
> host definition you've pasted above doesn't specify a host
> check_command. Is it part of the generc-host template or
> possibly a hostgroup template? If so, can you send that? If
> you don't specify a host check_command then nagios won't
> attempt a host check so it must be somewhere if you're seeing
> bad output from it.
>
> --
> Marc
>
I don't know how the check_command was removed from the original post.
This is the relevant hosts.cfg entry. Should I be assigning parameter
values in there as well? E.g. check_command check_temptraxe!1!75!80
define host {
use generic-host
host_name temptrax
alias Datacenter Temperature Probes
address 10.1.1.85
check_command check_temptraxe
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
Thanks,
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