Advertisement

05.21.2008 at 08:16AM PDT, ID: 23421195
[x]
Attachment Details

nagios check_ping change how often executed

Asked by bkreynolds48 in Linux

On Linux I have nagios running.
The person who set it up seems to have it doing a check_ping in too short a time period.
Where this box lives and the machines it checks on there is sometimes a "glitch" in the network and I get all of the ping errors from nagios.
I think it is the check_ping that is doing this - but don't know much about it.
Here is a sample of the  command in the minimal.cfg file....................
========================================================

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       prod
        service_description             PING
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  admins,dbadmins
        notification_options            w,u,c,r
        notification_interval           960
        notification_period             24x7
        check_command                   check_ping!100.0,20%!500.0,60%
        }
========================================================
I think this is the command that sends out the PING errors/recovery messages.
I don't really know what that does but is there a way to lengthen the time that it checks?
Here is a sample email that I get...............

***** Nagios  *****
Notification Type: PROBLEM
Service: PING
Host: prod
Address:
State: WARNING
Date/Time: Wed May 21 09:42:49 CDT 2008
Additional Info:
PING WARNING - Packet loss = 0%, RTA = 109.30 ms
==========================================
***** Nagios  *****
Notification Type: RECOVERY
Service: PING
Host: prod
Address:
State: OK
Date/Time: Wed May 21 09:47:49 CDT 2008
Additional Info:
PING OK - Packet loss = 0%, RTA = 85.93 ms

==============================================
As you can see it is always less than a minute or two when the recovery message is sent.
I simply want to check say in a five minutes interval if a ping doesn't come back then send a message.

I hope that all makes sense.
Thanks
Start Free Trial
[+][-]05.21.2008 at 08:50AM PDT, ID: 21616277

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux
Sign Up Now!
Solution Provided By: robocat
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.21.2008 at 09:27AM PDT, ID: 21616685

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 10:05AM PDT, ID: 21617010

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628