Quick Ping Setup?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Bigwaves
Posts: 2
Joined: Thu Jan 05, 2012 3:56 pm

Quick Ping Setup?

Post by Bigwaves »

I have set up Core 3 on an Ubuntu 10 server. Is there a quick way to just use Ping to monitor my remote window servers and sonicwalls? The only information i need is to see if they have a heartbeat. Being in a highly regulated business i can not install software on these devices.

Thanks in advance.
dbar
Posts: 4
Joined: Fri Jul 22, 2011 1:27 pm

Re: Quick Ping Setup?

Post by dbar »

You can configure a host for each device, that by itself will give you a status.
http://nagios.sourceforge.net/docs/3_0/ ... .html#host
Quick and dirty:

Code: Select all

define host{
        use             windows-server
        host_name      server1
        alias           server1
        address         192.168.1.1
        }
If you want, you can set up a ping service for more info and then send that info to a graph using nagiosgraph or similar.

Code: Select all

define service{
       use                     generic-service
       host_name               server1
       service_description     PING
       check_command           check_ping!100.0,20%!300.0,60%
#       action_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$  ;Used to link graph if nagiosgraph is installed.
       }
Keep in mind you may want to tweak generic-service or add a new template so the ping frequency is too your liking.
LHammonds
Posts: 23
Joined: Mon Jan 02, 2012 9:03 pm
Location: Behind you!!!

Re: Quick Ping Setup?

Post by LHammonds »

You only need to install the NSClient on the Windows server if you want to use the "check_nt" functions. Ping is not one of them. You should be able to setup a windows host and then a PING service. I know because I've done it. That is the very 1st thing I do for a Windows server just to make sure I have the basics working right BEFORE I touch the server to install the NSClient service to access the additional data.

However, you might want to use ICMP instead of PING because it is much faster.

Also, if you have the default Windows firewall enabled on those servers and your monitoring box is on a different subnet, you probably need to add / enable a rule on the firewall to allow inbound ping/icmp.

LHammonds
Bigwaves
Posts: 2
Joined: Thu Jan 05, 2012 3:56 pm

Re: Quick Ping Setup?

Post by Bigwaves »

Thanks for the pointers. Guess there is no way to just ping servers with Nagios and we will have have to install client side applications.
dbar
Posts: 4
Joined: Fri Jul 22, 2011 1:27 pm

Re: Quick Ping Setup?

Post by dbar »

Bigwaves wrote:Thanks for the pointers. Guess there is no way to just ping servers with Nagios and we will have have to install client side applications.
The posts above will not require any software on your equipment. If all you want is a heartbeat, the host configuration in Nagios is all you need. Unless you mean you can't change any config files on the Nagios server?
Locked