Almost there please assist...(check_ping) new install

Subhendu Ghosh sghosh at sghosh.org
Thu Apr 14 05:53:33 CEST 2005


On Wed, 13 Apr 2005, Calvin Crutchfield wrote:

> SG,
> 
> Thanks for the prompt reply.  I now have what uopu suggested in  my
> hosts.cfg  file.    IE:
> 
> define host{
>         host_name                       nagios_server
>         alias                           nagios server
>         address                         localhost
>         check_command                   check_myhost!200,20%!300,30%!5
>         max_check_attempts              5
>         process_perf_data               0
>         retain_nonstatus_information    0
>         contact_groups                  router-admins
>         notification_interval           30
>         notification_period             24x7
>         notification_options            d,u,r
>         }
> 
> define command{
>         command_name    check_myhost
>         command_line    /space/nagios/libexec/check_ping -H 127.0.0.1 -w
> $ARG1$ -c $ARG2$ -p $
> ARG3$
>         }
> 
> However, still shows down.  Both the gui and log file show a message
> stating:
> 
> [1113429048] HOST NOTIFICATION:
> nagiosadmin;nagios_server;DOWN;host-notify-by-email;wpl (90) cannot be
> larger than cpl (60)
> 
> Running manuall from the command line, I get :
> 
> [root at devupsilon01] # ./check_ping -H localhost -w 200,20% -c 300,30% -p 5
> PING OK - Packet loss = 0%, RTA = 0.00 ms
> [root at devupsilon01] #
> 
> 

Did you restart Nagios after changing the config file?  60 and 90 don't 
seem to appear in the config snippet.



> Questions:
>     Why is the gui showing down?

down what? nagios process or host?

>     Is there a log file that indicates each time a check command is ran
> rather than just the notification ?

status.log contains the results of all the latest checks with a unix epoch 
timestamp.

>     Does the nagios Process have to be restarted if I make changes to any
> config files?

yes - Nagios only reads the files on startup.
> 
> 
> Thanks so much for your help.  I have read a lot and will read even further
> tonight. I would just LOVE to get a ping working!
> 
> -calvin
> 

--

-sg



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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