Nagios check_icmp For Servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Nagios check_icmp For Servers

Post by abdelhafeth.mzahem »

Dears

We have about 200 windows servers , we put them in one host group Named Win-Servers, we applied a service that monitor the servers ping status named Win-Servers-Ping applied on Win-Servers Host group with specific check settings to send alert to Data center administrators.

We have 2 windows servers in the Win-Servers host group, we add them to other Host Group named Domain-Win-Servers, we applied a service that monitor the ping status of these 2 servers named Domain-Win-Servers-Ping applied on Domain-Win-Servers Host group with same check settings of other ping status service to send alert only to Domain administrator.

We are using check_icmp following command to monitor Servers status for both services command.


$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5


We make reboot for one of domain servers.

We received that server ping is critical from the service Domain-Win-Servers-Ping but not from Win-Servers-Ping ( Alert sent to Domain admins but not to data center admins).

may the number of devices in host group affect the check status and time ? how check_icmp work on servers in host group ? is it run on host group servers parallel or server by server ?

why alert not received from one service and received from other ?

we tried reboot other time and 2 alerts received , we tried third but only one alert received.

seems some times work and some times not work

please your help.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios check_icmp For Servers

Post by lmiltchev »

Can you show us a "sanitized" version of the "Win-Servers" & "Domain-Win-Servers" hostgroup's configs, "Win-Servers-Ping" & "Domain-Win-Servers-Ping" service's configs?

CCM->Host Groups->View Text Config
CCM->Services->View Text Config

Also, show us the configs for the contacts/contactgroups, assigned to these services.

CCM->Contacts->View Text Config
Be sure to check out our Knowledgebase for helpful articles and solutions!
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Re: Nagios check_icmp For Servers

Post by abdelhafeth.mzahem »

Dear Sir,


the exact Names are as following :

Win-Servers ==>JAW-DC-Win
Domain-Win-Servers ==> SMS-ADV-Win

Data Center Admin Contact Group :- Win_DC_Admins
Server Administrator Contact Group :- SMS-ADV-Admins
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios check_icmp For Servers

Post by lmiltchev »

The "Ping" service (from the services.txt) is added to only one of the two hostgroups (SMS-ADV-Win)

Code: Select all

define service {
	service_description		Ping
	hostgroup_name			SMS-ADV-Win
	display_name			Ping
	check_command			check-host-alive!
which you received notifications for. My understanding was that the "Ping" service was added to both hostgroups. Can you clarify?

Also, you said:
We make reboot for one of domain servers.

We received that server ping is critical from the service Domain-Win-Servers-Ping but not from Win-Servers-Ping ( Alert sent to Domain admins but not to data center admins).
What is the host that you rebooted? Can you show us the host's config? You don't have any members, listed under the two hostgroups:

Code: Select all

define hostgroup {
	hostgroup_name                		JAW-DC-Win
	alias                         		JAWWAL Windows Servers
	}
	
define hostgroup {
	hostgroup_name                		SMS-ADV-Win
	alias                         		SMS-ADV-Win
	}
Most probably you have these hostgroups added in the host configs...

Code: Select all

define host{
	host_name	host_name
	...
	hostgroups	<hostgroup_names>
	...
   	}
Be sure to check out our Knowledgebase for helpful articles and solutions!
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Re: Nagios check_icmp For Servers

Post by abdelhafeth.mzahem »

the server rebooted is SMS-ADV.Jawwal.ps

here is the hosts config

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.3
# Date: 2015-08-11 18:54:15
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
host_name SMS-ADV.Jawwal.ps
use xiwizard_windowssnmp_host
alias SMS-ADV.Jawwal.ps
display_name SMS-ADV.Jawwal.ps
address 10.102.220.74
hostgroups JAW-DC-Win,SMS-ADV-Win
max_check_attempts 3
check_interval 3
retry_interval 1
check_period xi_timeperiod_24x7
check_freshness 1
freshness_threshold 60
contact_groups SMS-ADV-Admins,Win_DC_Admins
notification_interval 10
notification_period xi_timeperiod_24x7
icon_image win_server.png
statusmap_image win_server.png
_xiwizard windowssnmp
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios check_icmp For Servers

Post by lmiltchev »

The "Ping" service (from the services.txt) is added to only one of the two hostgroups (SMS-ADV-Win), which you received notifications for. My understanding was that the "Ping" service was added to both hostgroups. Can you clarify? Have you tried adding the "Ping" service to the second hostgroup?

define service {
service_description Ping
hostgroup_name SMS-ADV-Win,JAW-DC-Win
display_name Ping
check_command check-host-alive!!!!!!!!
max_check_attempts 1
check_interval 1
check_period xi_timeperiod_24x7
notification_interval 5
notification_period xi_timeperiod_24x7
contact_groups SMS-ADV-Admins
_xiwizard linuxsnmp
register 1
}
Be sure to check out our Knowledgebase for helpful articles and solutions!
abdelhafeth.mzahem
Posts: 38
Joined: Thu Jun 04, 2015 1:22 am

Re: Nagios check_icmp For Servers

Post by abdelhafeth.mzahem »

No I do not try to add it, it is strange case,
Let me investigate again and update you later
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios check_icmp For Servers

Post by hsmith »

abdelhafeth.mzahem wrote:No I do not try to add it, it is strange case,
Let me investigate again and update you later
Sounds good, let us know.

Thank you.
Former Nagios Employee.
me.
Locked