Notification and check-host-alive problem

Quanah Gibson-Mount quanah at stanford.edu
Wed Jul 7 21:27:51 CEST 2004



--On Wednesday, July 07, 2004 12:01 PM -0700 Roy Kartadinata 
<drhonk at gmail.com> wrote:

> It works fine when I tested from command line. Below is the setting
> from checkcommands.cfg
>
># 'check-host-alive' command definition
> define command{
>         command_name    check-host-alive
>         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w
> 3000.0,80% -c 5000.0,100% -p 1
>         }
>
> This is the result when I ran it from command prompt.
>
> PING OK - Packet loss = 0%, RTA = 83.65 ms
>
>
> So that works fine.

Is Ping in the nagios user's path?  Did you su to the nagios user to 
emulate its environment?

Also, is ping executable by the nagios user? Is check_ping?  Is $USER1$ 
defined (I assume so, since your service checks work, if they are using 
$USER1$).

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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