Servicedependencies
Richard Gliebe
richard.gliebe at fhv.at
Tue Jan 17 14:20:36 CET 2006
Hi,
I'm monitoring several Windows servers via check_nt plugin
(Diskspace/MEMUSE/CPULoad/SERVICESTATE/PROCSTATE) like:
[...]
# 'check_nt_disk' command definition
command_name check_nt_disk
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
# 'check_nt_cpuload' command definition
command_name check_nt_cpuload
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v CPULOAD -l
$ARG1$
# 'check_nt_memuse' command definition
command_name check_nt_memuse
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v MEMUSE -w
$ARG1$ -c $ARG2$
# 'check_nt_servicestate' command definition
command_name check_nt_procstate
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v PROCSTATE
-d SHOWALL -l $ARG1$
# 'check_nt_servicestate' command definition
command_name check_nt_servicestate
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v
SERVICESTATE -d SHOWALL -l $ARG1$
[...]
Also I check, if the Windows Nagios Service is running:
[...]
# 'check_nsclient' command definition
command_name check_nsclient
command_line $USER1$/check_nt -H $HOSTADDRESS$ -v PROCSTATE
-d SHOWALL -l 'pNSClient.exe'
[...]
I don't want to get any Notifications from the other 'check_nt_*'
checks.
Now I want to define a global Servicedependency for all Windows Servers,
like this:
[...]
## Servicedependency definition
define servicedependency{
hostgroup_name Windows-Server
service_description check_nsclient
dependent_host_name *
dependent_service_description check_nt*
execution_failure_criteria w,u,c
notification_failure_criteria w,u,c
}
[...]
is this possible or is there an other way ?
thanks
Richard
--
Richard Gliebe
Fachhochschule Vorarlberg GmbH / University for Applied Science
Information Services
Hochschulstraße 1, A-6850 Dornbirn
Telefon +43 / (0)5572 / 792-2207
E-Mail: richard.gliebe at fhv.at
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list