[Nagiosplug-help] Monitor a host where ping is disabled.

Eikelenboom, Hans Heikelenboom at alphenaandenrijn.nl
Tue Jul 7 13:55:45 CEST 2009


Thanks you it works like a charm..
 
Eikelenboom, Hans
Informatievoorziening en Automatisering 


P Please consider the environment before printing this e-mail

________________________________

Van: Behrouz [mailto:behrouz at shinjiru.com] 
Verzonden: dinsdag 7 juli 2009 12:16
Aan: 'Nagios Plugin Help List'
Onderwerp: Re: [Nagiosplug-help] Monitor a host where ping is disabled.



Dear Hans,

You can simply delete the service (if you want to disable it for one
host) or delet the command file in commands.cfg but I suggest you to do
like this:

If you want to disable it for one host try to comment the check_ping in
localhost.cfg file

Ex:

#define service{

#      use                             local-service         

 #       host_name                       localhost

#        service_description             PING

#        check_command                   check_ping!100.0,20%!500.0,60%

#        }

Or if you want to disable it for all hosts then edit the commands.cfg
like this:

 # 'check_ping' command definition

#define command{

#       command_name    check_ping

#      command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$ -p 5

#    }

You may also want to disbale 

# '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 5

#        }

 

------------------------------------------------------------------

Behrouz Jazayery

 

Shinjiru Technology Sdn. Bhd.
19-2 Wisma Laxton
Jalan Desa Taman Desa 
Off Old Klang Road
58100 Kuala Lumpur
MALAYSIA

 

Tel + (603) 7987-1191
Fax + (603) 7987-2191
Local Malaysia Toll Free 1800-888-932
24 hrs Support Tel : +(603) 7987 8932
Email : behrouz at shinjiru.com <mailto:paul at shinjiru.com> 
Visit Shinjiru website : http://shinjiru.com <http://shinjiru.com/> 

 

 

Thank you for choosing Shinjiru.COM - Building Trust Online
------------------------------------------------------------------------
---------------------------
This email message is confidential and is intended for the individual
named only. 
Should you receive this message in error please discard the message
immediately. 
You should not publish this information to unknown parties without the
permission of the respective authors.

 

 

 

From: Eikelenboom, Hans [mailto:Heikelenboom at alphenaandenrijn.nl] 
Sent: Tuesday, July 07, 2009 4:17 PM
To: Nagios Plugin Help List
Subject: [Nagiosplug-help] Monitor a host where ping is disabled.

 

 

Hello,

 

I want to monitor several hosts where ping is disabled.

How can I disable the ping (standard) check in Nagios.

Only i can connect to the port 443 so i want to use the check_tcp
plugin.

 

Thanks in advance

 

Eikelenboom, Hans
Informatievoorziening en Automatisering 

P Please consider the environment before printing this e-mail

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090707/c6344c77/attachment.html>


More information about the Help mailing list