Problems with the pre-flight check

Tom Cruickshank tcruicksh at gmail.com
Mon Mar 13 21:44:41 CET 2006


The problem you encountered was probably having checkcommands.cfguncommented
in the nagios.cfg file as well as minimal.cfg (they have duplicate
commands).

I encountered the same thing myself when I set things up.

Tom

PS: Sorry Marc for having posted just to you. Mis-clicked on the button


On 3/13/06, Marc Powell <marc at ena.com> wrote:
>
>
>
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> > admin at lists.sourceforge.net] On Behalf Of Jody Noscov
> > Sent: Sunday, March 12, 2006 7:23 PM
> > To: Nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] Problems with the pre-flight check
> >
> > I have commented out the following in minimal.cfg
> >
> > #define command{
> > #     command_name    check_local_disk
> > #     command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
> > #     }
> >
> > #define command{
> > #        command_name    check-host-alive
> > #        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99%
> -c
> > #100,100% -p 1
> > #       }
> >
> > This is not going to cause any problems later down the track is it?
>
> Probably not. The problem was that you had 2 check_local_disk command
> definitions and the same for check-host-alive. You can't have two
> command definitions with the same command_name (nagios wouldn't be able
> to tell them apart). If the command definitions are identical then it's
> no big deal to comment one of the duplicates out. If they're different,
> and you intend to use both versions then you'll need to change the
> command_name's so that they're unique.
>
> --
> Marc
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> 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/20060313/8c07cbe7/attachment.html>


More information about the Users mailing list