Page 1 of 1
Nagios check_icmp For Servers
Posted: Thu Aug 06, 2015 4:31 am
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.
Re: Nagios check_icmp For Servers
Posted: Thu Aug 06, 2015 8:45 am
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
Re: Nagios check_icmp For Servers
Posted: Thu Aug 06, 2015 12:38 pm
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
Re: Nagios check_icmp For Servers
Posted: Thu Aug 06, 2015 2:30 pm
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>
...
}
Re: Nagios check_icmp For Servers
Posted: Tue Aug 11, 2015 10:55 am
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
#
###############################################################################
Re: Nagios check_icmp For Servers
Posted: Tue Aug 11, 2015 12:49 pm
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
}
Re: Nagios check_icmp For Servers
Posted: Tue Aug 11, 2015 4:42 pm
by abdelhafeth.mzahem
No I do not try to add it, it is strange case,
Let me investigate again and update you later
Re: Nagios check_icmp For Servers
Posted: Wed Aug 12, 2015 9:04 am
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.