Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-18 Thread Hari Sekhon
Andreas Ericsson wrote:
 Hari Sekhon wrote:
 Proskurin Kirill wrote:
 Hello.

 Im have some servers what don`t accept any icmp packets.
 Im check http port on it. But nagios by default does check_alive - 
 and say what host is down.

 How can im evade this?  
 use the negate program to invert the meaning of the check_ping plugin?

 Umm, no. That won't work very well at all, as the host then will seem
 to be up no matter if it's on fire or whatever happens to it.

 A more appropriate method would be to check something else on the host
 that the host can (and does) respond to properly. TCP connections to
 some random (open) port is usually a fairly decent bet.

Yes you're right, I don't use negate myself, must have misread the question.

Switching the host check to a service check, in this case check_http 
would be more appropriate.

-h

-- 
Hari Sekhon


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


[Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread Proskurin Kirill
Hello.

Im have some servers what don`t accept any icmp packets.
Im check http port on it. But nagios by default does check_alive - and 
say what host is down.

How can im evade this?


-- 
Best regards,
Proskurin Kirill

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread Hari Sekhon
Proskurin Kirill wrote:
 Hello.

 Im have some servers what don`t accept any icmp packets.
 Im check http port on it. But nagios by default does check_alive - and 
 say what host is down.

 How can im evade this?
   
use the negate program to invert the meaning of the check_ping plugin?

-h

-- 
Hari Sekhon


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread Christian Schneemann
On Wednesday September 17 2008 03:13:09 pm Proskurin Kirill wrote:
 Hello.

 Im have some servers what don`t accept any icmp packets.
 Im check http port on it. But nagios by default does check_alive - and
 say what host is down.

 How can im evade this?
Hi,
you can define the check-host-alive in your templates, so if you have some 
hosts that don't accept icmp-packets you can change it to any checkcommand 
you want.

Have a look into the documentation at host definition 
(http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host)

Greetings


-- 
Christian Schneemann

-
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail:[EMAIL PROTECTED]
-
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread Jim Perrin
On Wed, Sep 17, 2008 at 9:46 AM, Christian Schneemann
[EMAIL PROTECTED] wrote:

 Hi,
 you can define the check-host-alive in your templates, so if you have some
 hosts that don't accept icmp-packets you can change it to any checkcommand
 you want.

 Have a look into the documentation at host definition
 (http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host)


Agreed. I'd go this route with a plugin that will always return true,
or use tcping to test if the machine is reachable that way.


-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread André Moura
execute_host_checks=0/1

http://nagios.sourceforge.net/docs/3_0/configmain.html#execute_host_checks

2008/9/17 Proskurin Kirill [EMAIL PROTECTED]:
 Hello.

 Im have some servers what don`t accept any icmp packets.
 Im check http port on it. But nagios by default does check_alive - and
 say what host is down.

 How can im evade this?


 --
 Best regards,
 Proskurin Kirill

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 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




-- 
André O Moura
http://andrem.wordpress.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread Andreas Ericsson
Hari Sekhon wrote:
 Proskurin Kirill wrote:
 Hello.

 Im have some servers what don`t accept any icmp packets.
 Im check http port on it. But nagios by default does check_alive - and 
 say what host is down.

 How can im evade this?
   
 use the negate program to invert the meaning of the check_ping plugin?
 

Umm, no. That won't work very well at all, as the host then will seem
to be up no matter if it's on fire or whatever happens to it.

A more appropriate method would be to check something else on the host
that the host can (and does) respond to properly. TCP connections to
some random (open) port is usually a fairly decent bet.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread Jon Angliss
On Wed, 17 Sep 2008 17:13:09 +0400, Proskurin Kirill
[EMAIL PROTECTED] wrote:

Hello.

Im have some servers what don`t accept any icmp packets.
Im check http port on it. But nagios by default does check_alive - and 
say what host is down.

How can im evade this?


define command {
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}


define host {
check_command   check_http
host_name   myhost
address 1.2.3.4
[..other configs options..]
}

This makes nagios use check_http as the host alive status, rather
than pings.
-- 
Jon Angliss


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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


Re: [Nagios-users] How-to DO NOT check_alive host?

2008-09-17 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Proskurin Kirill wrote:
 Hello.
 
 Im have some servers what don`t accept any icmp packets.
 Im check http port on it. But nagios by default does check_alive - and 
 say what host is down.
 
 How can im evade this?

Use whatever other check that does work for that host.

Check with SMTP against mailservers, Check HTTP for web servers.

Hugo.


- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFI0encBvzDRVjxmYERAlcHAKCwtcFCxuDyGlcXjJ4/i65V/O1oPgCeKimT
C6qJrIpUFTbmytr6sEV4fGw=
=Ifs7
-END PGP SIGNATURE-

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
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