Page 1 of 2

ping and ping6

Posted: Mon Dec 09, 2013 10:53 am
by nagarjuna
We have been observing the Host down alert on 10.0.0.x, But we are able to ping the ip from Nagiosxi Even we have opened the port 5666.
but we are getting this error on 15-20 systems.

/bin/ping6 -n -U -w 10 -c 1 localhost

Re: ping and ping6

Posted: Mon Dec 09, 2013 11:02 am
by tmcdonald
I'm a little confused here. First off, why are you pinging localhost if you are having trouble with a remote host? You should replace "localhost" with the IP address of the host you want to check. Second, port 5666 should not have anything to do with ping response, only NRPE. Third, are you trying to use /bin/ping as a check in Nagios? Please post your host check config for one of the affected hosts. Finally, is there a reason you need ping6? Are they symlinked?

Re: ping and ping6

Posted: Mon Dec 09, 2013 4:26 pm
by nagarjuna
Hi Team,


I apologize,

Actually it is not a command, its output we are getting in nagiosxi console for remote host. Please check the attached screenshot for the same,
Detail:
NRDS configured for that perticular host.
we are getting alert from other hosts, 15-20 out of 500 showing this error on output """/bin/ping6 -n -U -w 10 -c 1 localhost"""

Re: ping and ping6

Posted: Mon Dec 09, 2013 4:39 pm
by tmcdonald
Can you please reply to my previous post? Specifically:
tmcdonald wrote:Please post your host check config for one of the affected hosts.
Can you also post the NRDS commands you have configured?

Re: ping and ping6

Posted: Mon Dec 09, 2013 4:56 pm
by nagarjuna
Hi Team,

As you asked please check following detail for one of the host.

Code: Select all

define host {
        host_name                      xxx.xxx.xxx.xxx
        use                             xiwizard_passive_host
        address                         xxx.xxx.xxx.xxx
        hostgroups                      Linux-Servers
        max_check_attempts              5
        check_interval                  5
        retry_interval                  1
        check_period                    xi_timeperiod_24x7
        contacts                        nagiosadmin
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        stalking_options                n
        icon_image                      passiveobject.png
        statusmap_image                 passiveobject.png
        _xiwizard                       passiveobject
        register                        1
          }


SERVICE CONFIGURATION

Code: Select all

###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:	      2013-12-10 03:21:36
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Check Disk
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			nagiosadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Check Disk-Boot
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			ctrlsadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Check Disk-Root
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			ctrlsadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Check Disk-tmp
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			ctrlsadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Check Load
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			nagiosadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Check Swap
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			nagiosadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Check Total Procs
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			nagiosadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

define service {
	host_name			xxx.xxx.xxx.xxx
	service_description		Memory usage
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			nagiosadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}	

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################

Code: Select all

NRDS Configuration

command[__HOST__]=/usr/local/nagios/libexec/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[Check Load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[Check Disk-Root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[Check Disk-Boot]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /boot
command[Check Disk-tmp]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /tmp
command[Check Total Procs]=/usr/local/nagios/libexec/check_procs -w 250 -c 300
command[Check Swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10%
command[Memory usage]=/usr/local/nagios/libexec/check_mem.py -w 25 -c 10
Please check above configuration.

Re: ping and ping6

Posted: Mon Dec 09, 2013 5:45 pm
by tmcdonald
Where are you entering in "/bin/ping6 -n -U -w 10 -c 1 localhost"?

Re: ping and ping6

Posted: Fri Dec 13, 2013 1:38 pm
by nagarjuna
Hi Team,

As we seen, in client machine which we are monitoring there is not default standard interface (eth0).


because all system where we are getting this error message, we checked eth0 interface name not present on client machines.

What steps we need to do for this.

Re: ping and ping6

Posted: Fri Dec 13, 2013 1:46 pm
by tmcdonald
Can you please reply to my previous post? Specifically:
tmcdonald wrote:Where are you entering in "/bin/ping6 -n -U -w 10 -c 1 localhost"?
Are you trying to use this as your check? Are you running this on the Nagios machine? The host you want to monitor?

Re: ping and ping6

Posted: Sat Dec 14, 2013 12:52 pm
by nagarjuna
Can you please reply to my previous post? Specifically:

tmcdonald wrote:Where are you entering in "/bin/ping6 -n -U -w 10 -c 1 localhost"?



Are you trying to use this as your check? Are you running this on the Nagios machine? The host you want to monitor?

Hi Sir,

Actually we are not entering this command anywhere( "/bin/ping6 -n -U -w 10 -c 1 localhost"?). Actually we configured NRDS agent on Linux client machine for getting passive check result but we are getting this output as a CRITICAL output in NagiosXI console.

We are not trying to use this as check, but this output is coming for ping service. "" "/bin/ping6 -n -U -w 10 -c 1 localhost"?""
Can you please let us know why we are getting this output in ping response on nagiosxi console

Please check the attached screen.

Re: ping and ping6

Posted: Mon Dec 16, 2013 11:05 am
by tmcdonald
You say there is no eth0 on these machines? Can these machines ping google.com? What is the output of the following?

Code: Select all

ping -c 4 www.google.com
ifconfig
I also noticed you are checking host availability as a passive check. Is there a reason for this? Can you not simply check it with check_ping as an active check?