<BODY><P></P>
<P>It was the plugins that was missing.</P>
<P>After compiling them, everything is now working as it should.</P>
<P> </P>
<P>Thank you!</P>
<P> </P>
<P>Mvh</P>
<P>Kjell Grindalen</P>
<P> </P>
<P><STRONG>----- Original Message -----</STRONG></P>
<P></P><B>From</B>: Matthew Wilson <matthewwilson@dsl.pipex.com>
<P></P><B>Date</B>: Tuesday, October 14, 2003 3:09 pm
<P></P><B>Subject</B>: Re: [Nagios-users] Problems with check_alive
<P></P>
<P></P>> <BR>> <BR>> On Tue, 2003-10-14 at 13:45, grik@student.no wrote: <BR>> > <BR>> > <BR>> > I cant find any called command.cfg but one called checkcommands.cfg <BR>> > <BR>> That's the one. It is sometimes called command.cfg <BR>> <BR>> > I cant really find any pointer to what command nagios really <BR>> does, but <BR>> > here is what I found in checkcommands.cfg <BR>> <BR>> OK if you are talking about a service check (which seems to be the <BR>> casefrom the log exert you posted) Nagios will execute whichever <BR>> command you <BR>> specify in service.cfg. So to use check_ping you would have something <BR>> like: <BR>> <BR>> define service{ <BR>> host_name MyHost <BR>> service_description ping <BR>> (blah blah blah) <BR>> check_command check_ping!1000,10%!2000,50% <BR>> } <BR>> <BR>> Then nagios looks in checkcommands.cfg to find check_ping. It <BR>> will then <BR>
> execute the commandlnie found there, as in you exert below. <BR>> $USER1$ is <BR>> a macro (variable) that should contain the path to your plugin <BR>> dir. (in <BR>> my installation this didn't work and I put in the full path... but all <BR>> my file locations are different as I installed from rpm). <BR>> <BR>> <BR>> > I should mention that I havent installed any plugins or add-on's <BR>> yet,> this is right from distributed .tar.gz <BR>> > <BR>> This could well be the problem! Look in your nagios plugins <BR>> directory - <BR>> I think not even check_ping is provided as part of the nagios package <BR>> and you need to install nagios-plugins <BR>> <BR>> > The check_ping definition in checkcommands.cfg looks like this: <BR>> > <BR>> > # 'check_ping' command definition <BR>> > define command{ <BR>> > command_name check_ping <BR>
> > command_line $USER1$/check_ping -H $HOSTADRESS -w $ARG1$ -c <BR>> $ARG2$> -p 5 <BR>> > <BR>> > <BR>> > <BR>> > Mvh <BR>> > <BR>> > <BR>> > <BR>> > Kjell Grindalen <BR>> > <BR>> > <BR>> > <BR>> > <BR>> > <BR>> > ----- Original Message ----- <BR>> > <BR>> > From: Matthew Wilson <matthewwilson@dsl.pipex.com> <BR>> > <BR>> > Date: Tuesday, October 14, 2003 2:22 pm <BR>> > <BR>> > Subject: Re: [Nagios-users] Problems with check_alive <BR>> > <BR>> > > Hi, <BR>> > > Have a look at you commands.cfg and check the command <BR>> definiton for <BR>> > > check_ping / check_host_alive and try running it from the <BR>> command <BR>> > > line. <BR>> > > If it doesn't work, post the full command definition and we <BR>> can <BR>> > > take a <BR>> > > look. <BR>
> > > <BR>> > > Matthew Wilson <BR>> > > DC-Sat.net <BR>> > > <BR>> > > On Tue, 2003-10-14 at 12:42, grik@student.no wrote: <BR>> > > > Hello! <BR>> > > > <BR>> > > > <BR>> > > > <BR>> > > > I have a small problem with the check alive standard check <BR>> service> > > <BR>> > > > <BR>> > > > <BR>> > > > In my nagios.log I get the following: <BR>> > > > <BR>> > > > SERVICE ALERT: hostname; PING;WARNING;HARD;3; (No output!) <BR>> > > > <BR>> > > > For all the hosts <BR>> > > > <BR>> > > > I searched a little, but couldnt find anything matching my <BR>> > problem. <BR>> > > > <BR>> > > > The nagios server is running on a Solaris 9 server, and I <BR>> have 6 <BR>
> > > other> Solaris servers that I am watching with Nagios. I was <BR>> > > thinking that <BR>> > > > this had something to do with statistics about the icmp <BR>> packet and <BR>> > > > tried to add a -v to the check-host-alive command like this: <BR>> > > > $USER1/check_ping -v -H $HOSTNAME -w etc... <BR>> > > > This didnt help, so maybe it has nothing to do with the <BR>> Solaris <BR>> > > > implementation of ping..? <BR>> > > > <BR>> > > > <BR>> > > > Any advice for a newbie at Nagios ? <BR>> > > > <BR>> > > > ------------------------------------------------------- This <BR>> > SF.net <BR>> > > > email is sponsored by: SF.net Giveback Program. <BR>> SourceForge.net <BR>> > > hosts> over 70,000 Open Source Projects. See the people who <BR>> have <BR>> > > HELPED US <BR>
> > > > provide better services: Click here: <BR>> > > > http://sourceforge.net/supporters.php <BR>> > > > _______________________________________________ Nagios-users <BR>> > mailing <BR>> > > > list Nagios-users@lists.sourceforge.net <BR>> > > > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: <BR>> > Please <BR>> > > > include Nagios version, plugin version (-v) and OS when <BR>> > > reporting any <BR>> > > > issue. ::: Messages without supporting info will risk being sent <BR>> > to <BR>> > > > /dev/null <BR>> > > <BR>> > > <BR>> <BR>> </BODY>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Nagios-users mailing list
Nagios-users@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