I do it with a check_multi query.
check_multi Command File:
#
# win_citrix.cmd
#
# config file for checking Citrix Presentation Servers
#
# Sebastian Koch, 2008
#
#--- citrix states ---
#state [ WARNING ] = COUNT(WARNING) > 2
#state [ CRITICAL ] = COUNT(CRITICAL) > 2
#--- citrix ports
command[ citrix_cmc_port ] = check_tcp -H $HOSTADDRESS$ -p 2513 -w 2.0 -c 3.0
command[ citrix_ica_port ] = check_tcp -H $HOSTADDRESS$ -p 1494 -w 2.0 -c 3.0
command[ citrix_ima_port ] = check_tcp -H $HOSTADDRESS$ -p 2512 -w 2.0 -c 3.0
command[ citrix_outlook_de ] = check_ica_metaframe_pub_apps.pl -C citrix.mydomain.tld -W "Outlook 2003"
#--- citrix services
command[ service_activesync] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix ActiveSync Service"
command[ service_clientnetwork] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix Client Network"
command[ service_diagnostic] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix Diagnostic Facility COM Server"
command[ service_encryption] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix Encryption Service"
command[ service_management] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix Independent Management Architecture"
command[ service_mfcom] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix MFCOM Service"
command[ service_print] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix Print Manager Service"
command[ service_servicesmgr] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix Services Manager"
command[ service_sma] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix SMA Service"
command[ service_xml] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix XML Service"
command[ service_xte] = check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG2$ -n "Citrix XTE Server"
Check Command Definiton:
$ARG3$ can be used for additional parameters (e.g. -s suppress_perfdata-
define command {
command_name check_multi
command_line $USER1$/check_multi -t 40 -T 180 -f $ARG1$ -l /usr/local/nagios/libexec/ -r 11 $ARG3$
}
Service Definition:
check_command check_multi!/usr/local/nagios/etc/multicommands/win_citrix.cmd!community
Hopefullt this works out for you. Please send me comments if you got additions/corrections.
bohboh,
kratediggah
No comments:
Post a Comment