Re: [Nagios-users] How to check a host, ping disabled

2009-11-26 Thread Jim Avery
2009/11/25 Samir Pathan :
> Hello All,
>
>
>
> I have few servers with ping enable and disabled in two different locations.
> I am currently monitoring ping enables servers successfully. Can we monitor
> ping disabled servers using Nagios? If yes, please suggest how to configure
> it and where to configure it, file names pls. thanks.

See my answer to your earlier question.

If you need some help understanding which configuration files to edit
and how they all fit together, then I highly recommend the book
"Nagios" by Wolfgang Barth pub. No Starch Press:

http://nostarch.com/nagios_2e.htm

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 check a host, ping disabled

2009-11-25 Thread Flyinvap
Le Wed, 25 Nov 2009 19:43:13 +0530,
"Samir Pathan"  a écrit :

> Can we monitor
> ping disabled servers using Nagios? If yes, please suggest how to
> configure it and where to configure it, file names pls. thanks.

Huuumm. Did you read the answers to your previous question ? Not sure.

-- 
Flyinvap



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 check a host, ping disabled

2009-11-25 Thread Morris, Patrick
Samir Pathan wrote:
>
> Hello,
>
>  
>
> I need to monitor the servers which has ping disabled. Where and what 
> configuration I have to change. Please suggest.
>
> Best regards,
>
>  
>
> Sam.
>
Use something you *can* reach on the server as the host check.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 check a host, ping disabled

2009-11-25 Thread Jim Avery
2009/11/25 Samir Pathan :
> Hello,
>
>
>
> I need to monitor the servers which has ping disabled. Where and what
> configuration I have to change. Please suggest.
>
> Best regards,
>
>
>
> Sam.

If it is a server then presumably it has some other port open?  For
example if it's an email server, you may be able to use check_smtp as
your host check.  It really depends what is available to you, and what
will give you a check which is closest to answering the question "Is
this host 'up'?".

You will need to change the check_command directive in the host
definition for that host, and you might need to tweak the command
definition too.

For example, your new host definition might look like this:


  define host{
use generic-host
host_name   server1
alias   server1 - email server - pings disabled
address 10.10.11.12
hostgroups  +servers
parents router3
check_command   check_smtp!-w 5 -c 8
  }


and your check_smtp command definition might look like this:


  # 'check_smtp' command definition
  define command{
  command_namecheck_smtp
  command_line$USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$
  }



hth,

Jim

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 check a host, ping disabled

2009-11-25 Thread Flyinvap
Le Wed, 25 Nov 2009 16:14:43 +0530,
"Samir Pathan"  a écrit :

> I need to monitor the servers which has ping disabled. Where and what
> configuration I have to change. Please suggest.

Replace ping by check_tcp or check_udp on a open port. 

-- 
Flyinvap



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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