define command {
	command_name    notify-dell-host-by-email
	command_line    /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
}

define command {
	command_name    notify-dell-service-by-email
	command_line    /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}

define command {
	command_name    check_dell_oob_server_component_snmp
	command_line    perl /usr/local/monitoring/nagios/dell/scripts/dell_check_idrac_snmp.pl  -H $HOSTADDRESS$  -F $ARG1$   -i $ARG2$
}

define command {
	command_name    check_dell_oob_server_component_wsman
	command_line    perl /usr/local/monitoring/nagios/dell/scripts/dell_check_idrac_wsman.pl  -H $HOSTADDRESS$  -F $ARG1$   -i $ARG2$
}

define command {
	command_name    check-dell-host-alive
	command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}

define command {
	command_name			check-dummy
	command_line			$USER1$/check_dummy $ARG1$ $ARG2$
}

define command {
	command_name			check_alive
	command_line			$USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100%
}

define command {
	command_name			check-host-alive
	command_line			$USER1$/check_icmp -H $HOSTADDRESS$ -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-long
	command_line			$USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -t 60s -n 20 -i 2s
}

define command {
	command_name			check-host-alive-fw-servernet-1
	command_line			$USER1$/check_icmp -H 140.180.220.1 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-fw-servernet-2
	command_line			$USER1$/check_icmp -H 10.6.48.1 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-fw-servernet-3
	command_line			$USER1$/check_icmp -H 10.6.52.1 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-fw-servernet-4
	command_line			$USER1$/check_icmp -H 10.6.63.65 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-fw-servernet-6
	command_line			$USER1$/check_icmp -H 10.6.63.129 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-fw-servernet-7
	command_line			$USER1$/check_icmp -H 140.180.219.1 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-fw-servernet-10
	command_line			$USER1$/check_icmp -H 10.6.0.1 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-fw-servernet-11
	command_line			$USER1$/check_icmp -H 10.6.32.1 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check-host-alive-eisfw-plinknet8
	command_line			$USER1$/check_icmp -H 192.168.9.33 -t 10 -w 3000.0,80% -c 5000.0,100% -n 5
}

define command {
	command_name			check_alive_through_nsclient
	command_line			$USER1$/check_nrpe -p $USER10$ -H $HOSTADDRESS$ -c CheckWMIValue -a 'Query=SELECT StatusCode FROM Win32_PingStatus WHERE Address="$ARG1$"' MaxCrit=1 Check:Status:=StatusCode
}

define command {
	command_name			check_alive_ssh
	command_line			$USER1$/check_generic -e '$USER1$/check_ssh -4 -t $USER3$ $HOSTADDRESS$' -n SSH -t 70 -w '!~/SSH OK/' -o '=~/SSH OK/' -f c -p time
}

define command {
	command_name			check-jnextday
	command_line			$USER1$/check_dummy $ARG1$ $ARG2$
}

define command {
	command_name			check_multi
	command_line			$USER1$/check_multi -l /usr/local/monitoring/nagios/libexec $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

define command {
	command_name			check-test-critical
	command_line			$USER1$/check_dummy 2
}

define command {
	command_name			check_ESXi_CIM
	command_line			$USER1$/check_esxi_hardware.py -H https://$HOSTADDRESS$ -V auto -t $USER3$ -p -U '$USER17$' -P '$USER4$'
}

define command {
	command_name			check_gearman
	command_line			$USER1$/check_gearman -H $ARG1$ -t $USER3$ $ARG2$
}

define command {
	command_name			check_generic
	command_line			$USER1$/check_generic -e '$ARG1$' -t $USER3$ $ARG2$
}

define command {
	command_name			check__lpglog
	command_line			$USER1$/check_log2.pl -l $ARG1$ -s $ARG2$ -p $ARG3$
}

define command {
	command_name			check_apache
	command_line			$USER1$/check_apache.pl -H $HOSTADDRESS$
}

define command {
	command_name			check_biztalk
	command_line			$USER1$/check_biztalk.pl -H $HOSTADDRESS$ -U groundwk -P $USER30$ -w 1 -c 5 -d 1 -D 5 -o 1 -O 5
}

define command {
	command_name			check_by_ssh_apache
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_apache.pl -H $HOSTADDRESS$"
}

define command {
	command_name			check_by_ssh_cpu
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 45 -l "$USER17$" -C "$USER22$/check_cpu $ARG1$:$ARG2$"
}

define command {
	command_name			check_by_ssh_disk
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$"
}

define command {
	command_name			check_by_ssh_load
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_load -w $ARG1$ -c $ARG2$"
}

define command {
	command_name			check_by_ssh_mailq_sendmail
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "sudo $USER22$/check_mailq -w $ARG1$ -c $ARG2$ -M sendmail"
}

define command {
	command_name			check_by_ssh_mem
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_mem.pl -U -w $ARG1$ -c $ARG2$"
}

define command {
	command_name			check_by_ssh_mysql
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_mysql -H $HOSTADDRESS$ -d $ARG1$ -u $ARG2$ -p $ARG3$"
}

define command {
	command_name			check_by_ssh_mysql_engine
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_mysql -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$"
}

define command {
	command_name			check_by_ssh_process_args
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -w $ARG1$ -c $ARG2$ -a $ARG3$"
}

define command {
	command_name			check_by_ssh_process_cmd
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -w $ARG1$ -c $ARG2$ -C $ARG3$"
}

define command {
	command_name			check_by_ssh_process_count
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -w $ARG1$ -c $ARG2$"
}

define command {
	command_name			check_by_ssh_process_crond
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a crond"
}

define command {
	command_name			check_by_ssh_process_named
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -C named -a /etc/named.conf"
}

define command {
	command_name			check_by_ssh_process_proftpd
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a proftpd: (accepting"
}

define command {
	command_name			check_by_ssh_process_sendmail_accept
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a sendmail: accepting con"
}

define command {
	command_name			check_by_ssh_process_sendmail_qrunner
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a sendmail: Queue runner"
}

define command {
	command_name			check_by_ssh_process_slapd
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -w $ARG1$ -c $ARG2$ -C slapd"
}

define command {
	command_name			check_by_ssh_process_xinetd
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a xinetd"
}

define command {
	command_name			check_by_ssh_swap
	command_line			$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_swap -w $ARG1$ -c $ARG2$"
}

define command {
	command_name			check_citrix
	command_line			$USER1$/check_ica_master_browser.pl -I $HOSTADDRESS$ -P $HOSTADDRESS$
}

define command {
	command_name			check_dns
	command_line			$USER1$/check_dns -t $USER3$ -a $HOSTADDRESS$ -H $HOSTALIAS$
}

define command {
	command_name			check_dns_expect
	command_line			$USER1$/check_dns -t $USER3$ -s $HOSTADDRESS$ -H "$ARG1$" -a "$ARG2$" $ARG3$
}

define command {
	command_name			check_dns_generic
	command_line			$USER1$/check_dns -t $USER3$ -H $ARG1$ -a $ARG2$ $ARG3$
}

define command {
	command_name			check_dns_udns
	command_line			$USER1$/check_udns.pl --lookup $ARG1$ --result $ARG2$ --result $ARG3$ --server $ARG4$ --servername $ARG5$ --server $ARG6$ --servername $ARG7$ $ARG8$
}

define command {
	command_name			check_dsml
	command_line			$USER1$/check_dsml.pl -H $HOSTADDRESS$ -b $ARG1$ -a "$ARG2$" -v "$ARG3$" -s "$ARG4$"
}

define command {
	command_name			check email end2end SSL
	command_line			$USER1$/check_email_delivery --plugin "$USER1$/check_smtp_send -H $ARG2$ --ssl --mailfrom $ARG1$@Princeton.EDU --mailto $ARG1$@Princeton.EDU -U $ARG1$ -P $USER30$ --header 'Subject: $ARG2$_$TIMET$' --body Test -w 10 -c 15 -t 20" --plugin "$USER1$/check_imap_receive --ssl -H $ARG3$ -U $ARG1$ -P $USER30$ -s SUBJECT -s $ARG2$_$TIMET$ --imap-retries 10 -w 20 -c 40 -t 60"
}

define command {
	command_name			check email end2end SSL advanced
	command_line			$USER1$/check_email_delivery --plugin "$USER1$/check_smtp_send --ssl --mailfrom $ARG1$ -U $ARG2$ -H $ARG3$ --mailto $ARG4$ -P $USER30$ --header 'Subject: $ARG3$_$TIMET$' --body Test -w 10 -c 15 -t 20" --plugin "$USER1$/check_imap_receive --ssl -U $ARG5$ -H $ARG6$ -P $USER30$ -s SUBJECT -s $ARG3$_$TIMET$ --imap-retries 10 -w 20 -c 40 -t 60"
}

define command {
	command_name			check email end2end TLS
	command_line			$USER1$/check_email_delivery --plugin "$USER1$/check_smtp_send -H $ARG2$ --tls --mailfrom $ARG1$@Princeton.EDU --mailto $ARG1$@Princeton.EDU -U $ARG1$ -P $USER30$ --header 'Subject: $ARG2$_$TIMET$' --body Test -w 10 -c 15 -t 20" --plugin "$USER1$/check_imap_receive --ssl -H $ARG3$ -U $ARG1$@Princeton.EDU -P $USER30$ -s SUBJECT -s $ARG2$_$TIMET$ --imap-retries 10 -w 20 -c 40 -t 60"
}

define command {
	command_name			check email end2end TLS-SSL
	command_line			$USER1$/check_email_delivery --plugin '$USER1$/check_smtp_send --tls --mailfrom $ARG1$ -U $ARG2$ -P "$ARG3$" -H $ARG4$ --mailto $ARG5$ --header "Subject: $ARG4$_$TIMET$" --body Test -w 10 -c 15 -t 20' --plugin '$USER1$/check_imap_receive --ssl -U $ARG6$ -P "$ARG7$" -H $ARG8$ -s SUBJECT -s $ARG4$_$TIMET$ --imap-retries 10 -w 20 -c 40 -t 60' --wait 10
	# -w 30,10,10 -c 220,40,40 -t 230
}

define command {
	command_name			check email end2end ppa
	command_line			$USER1$/check_email_delivery --plugin "$USER1$/check_smtp_send -H $ARG2$ --mailfrom $ARG1$ --mailto $ARG1$ --header 'Subject: $ARG2$_$TIMET$' --body Test -w 10 -c 15 -t 20" --plugin "$USER1$/check_imap_receive --ssl -H $ARG3$ -U $ARG1$ -P $USER30$  -s SUBJECT -s $ARG2$_$TIMET$ --imap-retries 10 -w 20 -c 40 -t 60" --wait 10
}

define command {
	command_name			check email end2end
	command_line			$USER1$/check_email_delivery --plugin "$USER1$/check_smtp_send -H $ARG2$ --mailfrom $ARG1$@Princeton.EDU --mailto $ARG1$@Princeton.EDU --header 'Subject: $ARG2$_$TIMET$' --body Test -w 15 -c 25 -t 29" --plugin "$USER1$/check_imap_receive --ssl -H $ARG3$ -U $ARG1$ -P $USER30$  -s SUBJECT -s $ARG2$_$TIMET$ --imap-retries 5 -w 15 -c 25 -t 29"
}

define command {
	command_name			check email end2end via nrpe
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H princeton-emergencyweb-01.oit.duke.edu -c check_email_delivery -a $ARG1$ $USER30$ $ARG2$
}

define command {
	command_name			check_esx_gw_server_cpu
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l CPU -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_esx_gw_server_mem
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l MEM -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_esx_gw_server_net
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l NET -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_esx_gw_server_netlist
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l NETLIST -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_esx_gw_vm_instance_cpu
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l CPU -v $ARG1$ -w $ARG2$ -c $ARG3$
}

define command {
	command_name			check_esx_gw_vm_instance_list
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l LIST -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_esx_gw_vm_instance_mem
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l MEM -v $ARG1$ -w $ARG2$ -c $ARG3$
}

define command {
	command_name			check_esx_gw_vm_instance_net
	command_line			$USER1$/check_esx_gw -H $HOSTADDRESS$ -C $USER7$ -l NET -v $ARG1$ -w $ARG2$ -c $ARG3$
}

define command {
	command_name			check_ftp
	command_line			$USER1$/check_ftp -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_host_cluster
	command_line			$USER1$/check_cluster_wrapper -h -l "$ARG1$" -d "$ARG2$" $ARG3$ $ARG4$
}

define command {
	command_name			check_hpjd
	command_line			$USER1$/check_hpjd -H $HOSTADDRESS$ -C public
}

define command {
	command_name			check_http
	command_line			$USER1$/check_http -H $HOSTALIAS$ -w "$ARG1$" -c "$ARG2$" -E
}

define command {
	command_name			check_http_sim
	command_line			$USER1$/check_http_sim $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
}

define command {
	command_name			check_http_string
	command_line			$USER1$/check_http_generic $USER1$ '$ARG1$' '$ARG2$' '$ARG3$' '$ARG4$' $ARG5$ "$SERVICEDESC$"
}

define command {
	command_name			check_http_auth
	command_line			$USER1$/check_http -H $HOSTADDRESS$ -a '$ARG1$:$ARG2$' -f "follow" -w "$ARG3$" -c "$ARG4$" -E
}

define command {
	command_name			check_https_auth_ob
	command_line			$USER1$/check_http_auth -t $ARG1$ -U '$ARG2$' -u '$ARG3$' -p '$USER30$' -s $ARG4$ 2>&1
}

define command {
	command_name			check_http_kaltura
	command_line			$USER1$/check_http_kaltura 2>&1
}

define command {
	command_name			check_http_port
	command_line			$USER1$/check_http -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -p "$ARG3$" -E $ARG4$
}

define command {
	command_name			check_http_portnum
	command_line			$USER1$/check_http -H $ARG1$ -p "$ARG2$" -w "$ARG3$" -c "$ARG4$" -E $ARG5$
}

define command {
	command_name			check_http_simple
	command_line			$USER1$/check_http -t $USER3$ -H $ARG1$ -f follow -w "$ARG2$" -c "$ARG3$" -E $ARG4$
}

define command {
	command_name			check_http_script
	command_line			$ARG1$ "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_http_url
	command_line			$USER1$/check_http -t $USER3$ -H $ARG1$ -u "$ARG2$" -f "follow" -w "$ARG3$" -c "$ARG4$" -E $ARG5$
}

define command {
	command_name			check_http_url_custom
	command_line			$USER1$/check_http -t $USER3$ -H $ARG1$ -u "$ARG2$" -E $ARG3$
}

define command {
	command_name			check_http_www_rms
	command_line			$USER1$/check_http_www_rms '$USER15$' '$USER16$' 2>&1
}

define command {
	command_name			check_https
	command_line			$USER1$/check_http -t $USER3$ -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -S $ARG3$ -E
}

define command {
	command_name			check_https_AWS_DUO
	command_line			$USER1$/check_https_aws_duo $USER1$ $ARG1$ $ARG2$ $ARG3$
}

define command {
	command_name			check_https_error_code_OK
	command_line			$USER1$/check_http -t 60 -H $HOSTADDRESS$ -e "$ARG1$" -w "$ARG2$" -c "$ARG3$" -S -f follow -E
}

define command {
	command_name			check_https_CAS_Parental_Access
	command_line			$USER1$/check_https_cas_pa 2>&1
}

define command {
	command_name			check_https_DC
	command_line			$USER1$/check_https_Departmental_Charges tivdc Tiv0DC "DC ADMINISTRATION" 2>&1
}

define command {
	command_name			check_https_CAS
	command_line			$USER1$/check_https_CAS '$ARG1$' $ARG2$ '$ARG3$' 2>&1
}

define command {
	command_name			check_https_CAS_older_version
	command_line			$USER1$/check_https_CAS.older '$ARG1$' $ARG2$ '$ARG3$' 2>&1
}

define command {
	command_name			check_https_CAS_new
	command_line			$USER1$/check_https_CAS_new '$ARG1$' $ARG2$ '$ARG3$' 2>&1
}

define command {
	command_name			check_https_CAS_QA_new
	command_line			$USER1$/check_https_CAS_QA_new '$ARG1$' $ARG2$ '$ARG3$' 2>&1
}

define command {
	command_name			check_https_PUaccess
	command_line			$USER1$/check_https_PUaccess.py '$ARG1$' '$ARG2$' '$ARG3$' 2>&1
}

define command {
	command_name			check_https_Blackboard
	command_line			$USER1$/check_https_Blackboard '$ARG1$' '$ARG2$' '$ARG3$' 2>&1 || exit 2
}

define command {
	command_name			check_https_Blackboard_Browser
	command_line			$USER1$/check_https_Blackboard.py '$ARG1$' '$ARG2$' '$ARG3$' 2>&1
}

define command {
	command_name			check_https_ClearPass
	command_line			$USER1$/check_https_CP.py '$ARG1$' '$ARG2$' '$ARG3$' $ARG4$ 2>&1
}

define command {
	command_name			check_https_iw
	command_line			$USER1$/check_https_iw.py '$ARG1$' '$ARG2$' '$ARG3$'
}

define command {
	command_name			check_https_oamhub
	command_line			$USER1$/check_https_oamhub.py '$ARG1$' '$ARG2$' '$ARG3$'
}

define command {
	command_name			check_https_remote
	command_line			$USER1$/check_https_remote.py '$ARG1$' '$ARG2$' '$ARG3$'
}

define command {
	command_name			check_https_Dump_All_AD_Users
	command_line			$USER1$/check_https_Dump_All_AD_Users 2>&1
}

define command {
	command_name			check_https_lists
	command_line			$USER1$/check_https_lists.py '$ARG1$' '$ARG2$' '$ARG3$'
}

define command {
	command_name			check_https_sdprsa_sc
	command_line			$USER1$/check_https_sdprsa_sc.py $ARG1$ $ARG2$ $ARG3$ 2>&1
}

define command {
	command_name			check_https_sdprsa_ss
	command_line			$USER1$/check_https_sdprsa_ss.py $ARG1$ $ARG2$ $ARG3$ 2>&1
}

define command {
	command_name			check_https_Webspace
	command_line			$USER1$/check_https_webspace.py https://$HOSTALIAS$$ARG1$ '$ARG2$' 'Xythos701&)!' 2>&1 || exit 1
}

define command {
	command_name			check_https_Webspace_backend
	command_line			$USER1$/check_https_webspace_backend $ARG1$ 2>&1 || exit 1
}

define command {
	command_name			check_https_Webspaceqa_backend
	command_line			$USER1$/check_https_webspaceqa_backend $ARG1$ 2>&1 || exit 1
}

define command {
	command_name			check_https_auth_groundwk
	command_line			$USER1$/check_http -t 60 -H $HOSTALIAS$ -f "follow" -a 'groundwk:$USER30$' -w "$ARG1$" -c "$ARG2$" -S -E -u '$ARG3$' $ARG4$ $ARG5$
}

define command {
	command_name			check_https_auth
	command_line			$USER1$/check_http_auth -t $ARG1$ -U '$ARG2$' -u '$ARG3$' -p '$ARG4$' -s $ARG5$ 2>&1
}

define command {
	command_name			check_https_ba
	command_line			$USER1$/check_http -t 60 -H $HOSTADDRESS$ -u "$ARG1$" -p "$ARG2$" -s "$ARG3$" -f "follow" -w "$ARG4$" -c "$ARG5$" -E $ARG6$
}

define command {
	command_name			check_https_port
	command_line			$USER1$/check_http -t $USER3$ -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -p "$ARG3$" -S -E
}

define command {
	command_name			check_https_portnum
	command_line			$USER1$/check_http -t $USER3$ -H $ARG1$ -p "$ARG2$" -w "$ARG3$" -c "$ARG4$" -S -E
}

define command {
	command_name			check_https_simple
	command_line			$USER1$/check_http -t $USER3$ -H $ARG1$ -f follow -w "$ARG2$" -c "$ARG3$" -S -E $ARG4$
}

define command {
	command_name			check_https_um-audiocodes_auth
	command_line			$USER1$/check_http_auth.no_ntlm -t $ARG1$ $ARG2$ -U $ARG3$ -u $ARG4$ -w $ARG5$ -c $ARG6$ -p '$USER18$' 2>&1
}

define command {
	command_name			check_https_url
	#command_line			$USER1$/check_http -t 60 -H $ARG1$ -u "$ARG2$" -p "$ARG3$" -s "$ARG4$" -f "follow" -w "$ARG5$" -c "$ARG6$" --ssl=1 -E
	command_line			$USER1$/check_http -t $USER3$ -H $ARG1$ -u "$ARG2$" -f "follow" -w "$ARG3$" -c "$ARG4$" -S -E $ARG5$
}

define command {
	command_name			check_https_url-tlsv1
	command_line			$USER1$/check_http -t 60 -H $ARG1$ -u "$ARG2$" -f "follow" -w "$ARG3$" -c "$ARG4$" --ssl=1 -E $ARG5$
}

define command {
	command_name			check_https_url_fedqa_135
	command_line			$USER1$/check_http -t $USER3$ -H 3.220.168.135 -u "/cas/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_url_fedqa_44
	command_line			$USER1$/check_http -t $USER3$ -H 3.220.168.44 -u "/cas/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_url_idpqa_125
	command_line			$USER1$/check_http -t $USER3$ -H 100.24.220.125 -u "/idp/profile/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_url_idpqa_83
	command_line			$USER1$/check_http -t $USER3$ -H 18.215.32.83 -u "/idp/profile/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_url_fed_24
	command_line			$USER1$/check_http -t $USER3$ -H 3.220.234.24 -u "/cas/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_url_fed_100
	command_line			$USER1$/check_http -t $USER3$ -H 3.211.185.100 -u "/cas/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_url_idp_95
	command_line			$USER1$/check_http -t $USER3$ -H 18.235.250.95 -u "/idp/profile/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_url_idp_168
	command_line			$USER1$/check_http -t $USER3$ -H 54.159.202.168 -u "/idp/profile/status" -f "follow" -w "$ARG1$" -c "$ARG2$" -S -E $ARG3$
}

define command {
	command_name			check_https_host
	command_line			$USER1$/check_http -H $HOSTADDRESS$ -4NS -f follow -t $USER3$ -E $ARG1$
}

define command {
	command_name			check_https_sp
	command_line			$USER1$/check_https_sp.py $ARG1$ $ARG2$ $USER30$
}

define command {
	command_name			check_https_sp_logos
	command_line			$USER1$/check_https_sp_logos.py $ARG1$ $ARG2$ $USER30$
}

define command {
	command_name			check_https_sp-2016
	command_line			$USER1$/check_https_sp-2016.py $ARG1$ $ARG2$ $USER30$
}

define command {
	command_name			check_https_sp_logos-2016
	command_line			$USER1$/check_https_sp_logos-2016.py $ARG1$ $ARG2$ $USER30$
}

define command {
	command_name			check_https_wase
	command_line			$USER1$/check_https_wase.py
}

define command {
	command_name			check_ifoperstatus
	command_line			$USER1$/check_ifoperstatus -k "$ARG1$" -H $HOSTADDRESS$ -C "$USER7$"
}

define command {
	command_name			check_imap
	command_line			$USER1$/check_imap -t 60 -H $HOSTADDRESS$  -w "$ARG1$" -c "$ARG2$" -p 143
}

define command {
	command_name			check_imap_receive
	command_line			$USER1$/check_imap_receive -H $ARG1$ --username grndwk2 --password $USER30$ --download --search-warning-max 1 --imap-retries 5 --ssl --template -s SENTSINCE -s '{rfc2822dateHeader("now",$ARG2$)}' -s $ARG3$ -s $ARG4$ -s $ARG5$
}

define command {
	command_name			check_imaps
	command_line			$USER1$/check_imap -t 60 -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -p 993 -S
}

define command {
	command_name			check_imapssl
	command_line			$USER1$/check_imap_pu "$HOSTADDRESS$" "$ARG1$" '$USER32$' "30"
}

define command {
	command_name			check_keyserver
	command_line			$USER1$/check_keyserver.sh "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_keyserver_mme_service
	command_line			$USER1$/check_keyserver_mme_service.sh "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_keyserver_service
	command_line			$USER1$/check_keyserver_service.sh "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_ldap
	command_line			$USER1$/check_ldap -3 -4 -t $USER3$ -H $HOSTALIAS$ -b $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
}

define command {
	command_name			check_ldap_host_pu
	command_line			$USER1$/check_ldap_pu -H $ARG1$ -b $ARG2$ -w $ARG3$ -c $ARG4$
}

define command {
	command_name			check_ldap_new
	command_line			$USER1$/check_ldap -t $USER3$ -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -b "$ARG3$"  -a "$ARG4$"
}

define command {
	command_name			check_ldap_pu
	command_line			$USER1$/check_ldap_pu -H $HOSTNAME$.Princeton.EDU -b $ARG1$ -w $ARG2$ -c $ARG3$
}

define command {
	command_name			check_ldap_ssl_host_pu
	command_line			$USER1$/check_ldap_pu -H $ARG1$ -b $ARG2$ -S -w $ARG3$ -c $ARG4$
}

define command {
	command_name			check_ldap_ssl
	command_line			$USER1$/check_ldap -3 -4 -S -t $USER3$ -H $HOSTALIAS$ -b $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
}

define command {
	command_name			check_ldap_ssl_novalcert
	command_line			LDAPTLS_REQCERT=never LDAPTLS_CIPHER_SUITE='DEFAULT:!DH' $USER1$/check_ldap -3 -4 -S -t $USER3$ -H $HOSTALIAS$ -b $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
}

define command {
	command_name			check_ldap_bind_HOSTALIAS_DN_PASS_BASE
	command_line			LDAPTLS_CIPHER_SUITE='DEFAULT:!DH' $USER1$/check_ldap -3 -4 -S -H $HOSTALIAS$ -D $ARG1$ -P $ARG2$ -b $ARG3$ -w $ARG4$ -c $ARG5$
}

define command {
	command_name			check_local_disk
	command_line			$USER1$/check_disk -w "$ARG1$" -c "$ARG2$" -p "$ARG3$"
}

define command {
	command_name			check_local_disk_pu
	command_line			$USER1$/check_disk_pu.pl -f /usr/local/monitoring/princeton/check_disk_pu.cfg -C $ARG1$
}

define command {
	command_name			check_local_load
	command_line			$USER1$/check_load -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_local_mem
	command_line			$USER1$/check_mem.pl -U -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_local_proc_cpu
	command_line			$USER1$/check_procl.sh --cpu -w "$ARG1$" -c "$ARG2$" -p "$ARG3$"
}

define command {
	command_name			check_local_proc_mem
	command_line			$USER1$/check_procl.sh --mem -w "$ARG1$" -c "$ARG2$" -p "$ARG3$"
}

define command {
	command_name			check_local_procs
	command_line			$USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
}

define command {
	command_name			check_local_procs_arg
	command_line			$USER1$/check_procs -w "$ARG1$" -c "$ARG2$" -a "$ARG3$"
}

define command {
	command_name			check_local_procs_string
	command_line			$USER1$/check_procs -w "$ARG1$" -c "$ARG2$" -a "$ARG3$"
}

define command {
	command_name			check_local_swap
	command_line			$USER1$/check_swap -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_local_users
	command_line			$USER1$/check_users -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_msg
	command_line			$USER1$/check_msg.pl $ARG1$ $ARG2$
}

define command {
	command_name			check_msg_negate
	command_line			$USER1$/negate "$USER1$/check_msg.pl $ARG1$ $ARG2$"
}

define command {
	command_name			check_mysql
	command_line			$USER1$/check_mysql -d "$ARG1$" -u "$ARG2$" -p "$ARG3$" $ARG4$
}

define command {
	command_name			check_mysql_engine
	command_line			$USER1$/check_mysql -H $HOSTADDRESS$ -u "$ARG1$" -p "$ARG2$"
}

define command {
	command_name			check_mysql_engine_nopw
	command_line			$USER1$/check_mysql -H $HOSTADDRESS$ -u "$ARG1$"
}

define command {
	command_name			check_mysql_nopw
	command_line			$USER1$/check_mysql -H $HOSTADDRESS$ -d "$ARG1$" -u "$ARG2$"
}

define command {
	command_name			check_nagios
	command_line			$USER1$/check_nagios -F /usr/local/monitoring/naemon/var/status.dat -e 5 -C /usr/local/monitoring/naemon/etc/naemon/naemon.cfg
}

define command {
	command_name			check_nagios_latency
	command_line			$USER1$/check_nagios_latency.pl
}

define command {
	command_name			check_nrpe_nagios_latency
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_nagios_latency
}

define command {
	command_name			check_netapp_cf_interconnect_status
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -v CFINTERCONNECTSTATUS
}

define command {
	command_name			check_netapp_cf_partner_status
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -v CFPARTNERSTATUS
}

define command {
	command_name			check_netapp_cf_settings
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -v CFSETTINGS
}

define command {
	command_name			check_netapp_cf_state
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -v CFSTATE
}

define command {
	command_name			check_netapp_cpuload
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -v CPULOAD -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_netapp_disk_space
	command_line			$USER1$/check_netapp_disk.pl -H $HOSTADDRESS$ -C '$USER7$' -f /usr/local/monitoring/princeton/$HOSTNAME$_$ARG1$
}

define command {
	command_name			check_netapp_disks
	command_line			$USER1$/check_netapp_disk.pl -H $HOSTADDRESS$ -C '$USER7$' -f /usr/local/monitoring/princeton/$HOSTNAME$.cfg
}

define command {
	command_name			check_netapp_failed_disks
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -c 1 -v FAILEDDISK
}

define command {
	command_name			check_netapp_failed_fans
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -c 1 -v FAN
}

define command {
	command_name			check_netapp_failed_psu
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -v PS -c 1
}

define command {
	command_name			check_netapp_miscGlobalStatus
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o 1.3.6.1.4.1.789.1.2.2.4.0 -C '$USER7$' -P1 -c $ARG1$:$ARG2$
}

define command {
	command_name			check_netapp_nvram
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -c 1 -v NVRAM
}

define command {
	command_name			check_netapp_over_temp
	command_line			$USER1$/check_netapp -H $HOSTADDRESS$ -C '$USER7$' -P1 -v TEMP
}

define command {
	command_name			check_netid_avail
	command_line			$USER1$/check_netid_ws_pu.pl -H $HOSTADDRESS$ -i $ARG1$ -t $ARG2$
}

define command {
	command_name			check_nntp
	command_line			$USER1$/check_nntp -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nntps
	command_line			$USER1$/check_nntp -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -p 563 -S
}

define command {
	command_name			check_nrpe
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$
}

define command {
	command_name			check_nrpe_v3
	command_line			$USER1$/check_nrpe_v3 -p $USER10$ -H $HOSTADDRESS$ -E -d 0 -t $USER3$:UNKNOWN -A /usr/local/monitoring/etc/net-ca-chain.pem -L HIGH:MEDIUM -S TLSv1.2+ $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

define command {
	command_name			check_nrpe_agent
	command_line			$USER1$/check_nrpe_agent $HOSTADDRESS$
}

define command {
	command_name			check_nrpe_generic
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}

define command {
	command_name			check_nrpe_very_generic
	command_line			$USER1$/check_nrpe $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
}

define command {
	command_name			check_nrpe_http
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_http -a '$ARG1$' '$ARG2$' '$ARG3$' '$ARG4$'
}

define command {
	command_name			check_nrpe_load
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_load -a $ARG1$ $ARG2$ $ARG3$
}

define command {
	command_name			check_nrpe_nagios
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_nagios
}

define command {
	command_name			check_nrpe_DC_KerberosAuthentications
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_counter_counter -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_nrpe_DC_LDAPBindTime
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_counter_rawcount -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_nrpe_DC_LDAPClientSessions
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_counter_rawcount -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_nrpe_DC_NTLMAuthentications
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $user10$ -c get_counter_counter -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_nrpe_DC_PercentProcessorTime_lsass
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_100nsec_timer -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_nrpe_DC_PercentProcessorTime_ntfrs
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_100nsec_timer -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_nrpe_active_mem
	command_line			$USER1$/check_nrpe -H $HOSTADDRESS$ -p $USER10$ -t 60 -c check_active_mem -a $ARG1$ $ARG2$
}

define command {
	command_name			check_nrpe_asm_disk
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_asm_disk -a $ARG1$ $ARG2$
}

define command {
	command_name			check_nrpe_cpu
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_cpu -a "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$"
}

define command {
	command_name			check_nrpe_cpu_system
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_cpu_system -a "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$"
}

define command {
	command_name			check_nrpe_cpu_user
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_cpu_user -a "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$"
}

define command {
	command_name			check_nrpe_daemon
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_daemon -a "$ARG1$:" "$ARG2$"
}

define command {
	command_name			check_nrpe_dazel_fax_errors
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_dazel_fax_errors
}

define command {
	command_name			check_nrpe_dazel_lpg_log
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_nrpe_lpg_log  -a $ARG1$ $ARG2$ $ARG3$
}

define command {
	command_name			check_nrpe_dazel_status
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_dazel_status
}

define command {
	command_name			check_nrpe_disk
	command_line			$USER1$/check_nrpe -t $USER3$ -u -H $HOSTADDRESS$ -p $USER10$ -c check_disk -a $ARG1$ $ARG2$ '$ARG3$'
}

define command {
	command_name			check_nrpe_disk_all
	#	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_all_disk -a $ARG1$ '$ARG2$ -A -I ^/$ -I ^/var$ -I ^/usr$ -I ^/boot$ -I ^/tmp$ -X tmpfs -X devtmpfs -l -L'
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_all_disk -a $ARG1$ '$ARG2$ -A -I ^/$ -I ^/var$ -I ^/usr$ -I ^/boot$ -I ^/tmp$ -I '/run/docker/' -I '/var/lib/docker/' -X tmpfs -X devtmpfs -l -L'
}

define command {
	command_name			check_nrpe_disk_by_class
	##command_line			$USER1$/check_output_convert check_snmp_storage '-2 -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m $ARG1$ -q FixedDisk -w $ARG2$ -c $ARG3$ $ARG4$' $USER1$/check_snmp_disk_output_convert
	command_line			$USER1$/check_output_convert check_nrpe '-t 60 -H $HOSTADDRESS$ -p $USER10$ -c check_disk_class -a "$ARG1$"' $USER1$/check_snmp_disk_output_convert
	##command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_disk_class -a  "$ARG1$"
}

define command {
	command_name			check_nrpe_disk_by_class2
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_disk_class -a  "$ARG1$"  "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_disk_by_class_all
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_disk_class_all -a  "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_dummy
	command_line			$USER1$/check_nrpe -p $USER10$-t 60 -H $HOSTADDRESS$ -c check_dummy -a $ARG1$
}

define command {
	command_name			check_nrpe_exchange_mailbox_receiveq
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_exchange_mbox_recvq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_exchange_mailbox_sendq
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_exchange_mbox_sendq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_exchange_mta_workq
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_exchange_mta_workq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_exchange_public_receiveq
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_exchange_pub_recvq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_exchange_public_sendq
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_exchange_pub_sendq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_faxq
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_faxq -a  "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_iis_bytes_received
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_bytes_received -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_bytes_sent
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_bytes_sent -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_bytes_total
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_bytes_total -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_current_connections
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_currentconnections -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_current_nonanonymous_users
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_curnonanonusers -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_get_requests
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_get_requests -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_maximum_connections
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_maximumconnections -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_post_requests
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_post_requests -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_iis_private_bytes
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_privatebytes -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_iis_total_not_found_errors
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_iis_totalnotfounderrors -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_ipmi_sun_chassis
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_ipmi_sun_chassis
}

define command {
	command_name			check_nrpe_local_cpu
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -c get_cpu -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_local_disk
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -c get_disk -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_local_memory
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -c get_mem -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_local_pagefile
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -c check_pagefile_counter -a "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_jvm
	command_line			$USER1$/check_nrpe -t $USER3$ -H $HOSTADDRESS$ -p $USER10$ -c check_dspace_jvm -a $ARG1$ $ARG2$ $ARG3$
}

define command {
	command_name			check_nrpe_maestro_carryfwd
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_tws_carryfwd
}

define command {
	command_name			check_nrpe_maestro_msgfilesz
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_tws_msgfilesz
}

define command {
	command_name			check_nrpe_maestro_procs
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_tws_procs
}

define command {
	command_name			check_nrpe_maestro_stdlistsz
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_tws_stdlistsz
}

define command {
	command_name			check_nrpe_maestro_unlink
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_tws_unlink
}

define command {
	command_name			check_nrpe_mem
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_mem -a "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_mounts
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_mounts
}

define command {
	command_name			check_nrpe_mssql_buffer_cache_hits
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_buf_cache_hit -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_mssql_deadlocks
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_deadlocks -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_mssql_full_scans
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_fullscans -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_mssql_lock_wait_time
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_lock_wait_time -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_mssql_lock_waits
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_lock_waits -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_mssql_log_growths
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_log_growth -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_mssql_log_used
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_log_used -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_mssql_memory_grants_pending
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_memgrantspending -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_mssql_transactions
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_transactions -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_mssql_users
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_mssql_users -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_multipath
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_multipath -a $ARG1$ $ARG2$
}

define command {
	command_name			check_nrpe_om
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_om
}

define command {
	command_name			check_nrpe_print_queue
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -c get_printqueue -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_proc_by_size
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_proc_by_size -a "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_proc_count
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_procs -a "$ARG1$" "$ARG2$" "RSZTDO"
}

define command {
	command_name			check_nrpe_proclist
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_proclist -a "$ARG1$"
}

define command {
	command_name			check_nrpe_process
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_proc -a "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_prtdiag
	command_line			$USER1$/check_nrpe_prtdiag_wrapper $HOSTADDRESS$
}

define command {
	command_name			check_nrpe_rds_license_usage
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c check_rds_license_usage -a  "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_swap
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_swap -a "$ARG1$"% "$ARG2$"%
}

define command {
	command_name			check_nrpe_tcp
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $HOSTADDRESS$ -c check_tcp -a '$ARG1$' '$ARG2$' '$ARG3$' '$ARG4$'
}

define command {
	command_name			check_nrpe_unix_lxfiles
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_files -a "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_vvm
	command_line			$USER1$/check_nrpe_unix_vvm_wrapper $HOSTADDRESS$
}

define command {
	command_name			check_nrpe_zfs
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_zfs -a $ARG1$ $ARG2$
}

define command {
	command_name			through_nrpe
	command_line			$USER1$/check_nrpe -p $USER10$ -t $USER3$ -H $ARG1$ -c $ARG2$ -a $ARG3$ $ARG4$
}

define command {
	command_name			check_nt
	command_line			$USER1$/check_nt -p $USER19$ -s $USER4$ -H $HOSTADDRESS$ -v CLIENTVERSION
}

define command {
	command_name			check_nt_counter_disktransfers
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\PhysicalDisk(_Total)\Disk Transfers/sec","PhysicalDisk(_Total) Disk Transfers/sec is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_exchange_mailrq
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\MSExchangeIS Mailbox(_Total)\Receive Queue Size","Receive Queue Size is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_exchange_mailsq
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\MSExchangeIS Mailbox(_Total)\Send Queue Size","Send Queue Size is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_exchange_mtawq
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\MSExchangeMTA\Work Queue Length","Work Queue Length is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_exchange_publicrq
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\MSExchangeIS Public(_Total)\Receive Queue Size","Receive Queue Size is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_exchange_publicsq
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\MSExchangeIS Public(_Total)\Send Queue Size","Send Queue Size is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_memory_pages
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\Memory\Pages/sec","Pages per Sec is %.f" -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_bufcache_hits
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Buffer Manager\Buffer cache hit ratio","SQLServer:Buffer Manager Buffer cache hit ratio is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_deadlocks
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Locks(_Total)\Number of Deadlocks/sec","SQLServer:Locks(_Total) Number of Deadlocks/sec is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_latch_waits
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Latches\Latch Waits/sec","SQLServer:Latches Latch Waits/sec is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_lock_wait_time
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Locks(_Total)\Lock Wait Time (ms)","SQLServer:Locks(_Total) Lock Wait Time (ms) is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_lock_waits
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Locks(_Total)\Lock Waits/sec","SQLServer:Locks(_Total) Lock Waits/sec is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_log_growths
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Databases(_Total)\Log Growths","SQLServer:Databases(_Total) Log Growths is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_log_used
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Databases(_Total)\Percent Log Used","SQLServer:Databases(_Total) Percent Log Used is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_memory_grants_pending
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Memory Manager\Memory Grants Pending","SQLServer:Memory Manager Memory Grants Pending is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_mssql_transactions
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\SQLServer:Databases(_Total)\Transactions/sec","SQLServer:Databases(_Total) Transactions/sec is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_counter_network_interface
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v COUNTER -l "\Network Interface(MS TCP Loopback interface)\Bytes Total/sec","Network Interface(MS TCP Loopback interface) Bytes Total/sec is %.f " -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_cpuload
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v CPULOAD -l "$ARG1$"
}

define command {
	command_name			check_nt_memuse
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v MEMUSE -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_nt_useddiskspace
	command_line			$USER1$/check_nt -H $HOSTADDRESS$ -p $USER19$ -s $USER4$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
}

define command {
	command_name			check_ntp
	command_line			$USER1$/check_ntp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ $ARG3$
}

define command {
	command_name			check_ntp_peer
	command_line			$USER1$/check_ntp_peer -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ $ARG3$
}

define command {
	command_name			check_ntp_time
	command_line			$USER1$/check_ntp_time -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ $ARG3$
}

define command {
	command_name			check_oracle_active_processes
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -i
}

define command {
	command_name			check_oracle_active_sessions
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -a $ARG2$
}

define command {
	command_name			check_oracle_allocate-extents
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -x
}

define command {
	command_name			check_oracle_blocking_locks
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -l
}

define command {
	command_name			check_oracle_cache
	command_line			$USER1$/check_oracle --cache $ARG1$ $USER15$ $USER16$ $ARG2$ $ARG3$
}

define command {
	command_name			check_oracle_extents_used
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -n $ARG2$
}

define command {
	command_name			check_oracle_free_extents
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -f $ARG2$
}

define command {
	command_name			check_oracle_login
	command_line			$USER1$/check_oracle --login $ARG1$
}

define command {
	command_name			check_oracle_sessions
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -s $ARG2$
}

define command {
	command_name			check_oracle_tablespaces
	command_line			$USER1$/check_oracle_instance_gw.pl -u $USER15$ -p $USER16$ -c $ARG1$ -t $ARG2$
}

define command {
	command_name			check_owa
	command_line			$USER1$/check_owa '$ARG1$' '$ARG2$' '$USER32$'
}

define command {
	command_name			check_ping
	command_line			$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}

define command {
	command_name			check_pop3
	command_line			$USER1$/check_pop -H $HOSTADDRESS$
}

define command {
	command_name			check_pop3s
	command_line			$USER1$/check_pop -t 60 -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -S
}

define command {
	command_name			check_proc
	command_line			$USER1$/check_procs -c $ARG1$ -C $ARG2$
}

define command {
	command_name			check_tcp_port
	command_line			$USER1$/check_tcp -H "$ARG1$" -p "$ARG2$"
}

define command {
	command_name			check_sendmail
	command_line			$USER1$/check_smtp -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -C "ehlo groundworkopensource.com" -R "ENHANCEDSTATUSCODES" -f nagios@$HOSTADDRESS$
}

define command {
	command_name			check_service_cluster
	command_line			$USER1$/check_cluster_wrapper -s -l "$ARG1$" -d "$ARG2$" $ARG3$ $ARG4$
}

define command {
	command_name			check_smtp
	command_line			$USER1$/check_smtp -H $HOSTADDRESS$ -t $USER3$ -w "$ARG1$" -c "$ARG2$" $ARG3$
}

define command {
	command_name			check_smtp_tls
	command_line			$USER1$/check_smtp -H $HOSTADDRESS$ -p 587 -S -A LOGIN -U $USER31$ -P '$USER32$' -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_smtps
	command_line			$USER1$/check_ssmtp -H $HOSTADDRESS$ -p 465 -S -w "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_smb_share
	command_line			$USER1$/check_smb_share -H $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}

define command {
	command_name			check_snmp
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o "$ARG1$" -r "$ARG2$" -l "$ARG3$" -C '$USER7$'
}

define command {
	command_name			check_snmp_val
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -C '$USER7$' -P 2c -t $USER3$ -e 5 -l "$ARG1$" -o "$ARG2$" -c "$ARG3$"
}

define command {
	command_name			check_snmp_alive
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -m SNMPv2-MIB -o system.sysDescr.0 -P2c -C '$USER7$' -t 35 -e 3
}

define command {
	command_name			check_snmp_alive-new
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -m SNMPv2-MIB -o system.sysDescr.0 -P2c -C $ARG1$ -t 35 -e 3
}

define command {
	command_name			check_snmp_bandwidth
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -C '$USER7$' -o "IF-MIB::ifInOctets.$ARG1$,IF-MIB::ifOutOctets.$ARG1$,IF-MIB::ifSpeed.$ARG1$"
}

define command {
	command_name			check_snmp_crac_humidity
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -t 30 -P 1 -C $USER29$ -o 1.3.6.1.4.1.476.1.42.3.4.2.2.3.1.3.1 -l 'CURRENT HUMIDITY:'
}

define command {
	command_name			check_snmp_crac_humidity_set_point
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -t 30 -P 1 -C $USER29$ -o 1.3.6.1.4.1.476.1.42.3.4.2.2.1.0 -l 'HUMIDITY SET POINT:'
}

define command {
	command_name			check_snmp_crac_temp
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -t 30 -P 1 -C $USER29$ -o 1.3.6.1.4.1.476.1.42.3.4.1.2.3.1.3.1 -l 'CURRENT TEMP:'
}

define command {
	command_name			check_snmp_crac_temp_set_point
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -t 30 -P 1 -C $USER29$ -o 1.3.6.1.4.1.476.1.42.3.4.1.2.1.0 -l 'TEMP SET POINT:'
}

define command {
	command_name			check_snmp_disk
	##command_line			$USER1$/check_output_convert check_snmp_storage '-2 -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m $ARG1$ -q FixedDisk -w $ARG2$ -c $ARG3$ $ARG4$' $USER1$/check_snmp_disk_output_convert
	command_line			$USER1$/check_snmp_storage -2 -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m '$ARG1$' -q "FixedDisk" -w $ARG2$ -c $ARG3$ $ARG4$
}

define command {
	command_name			check_snmp_disk-new
	command_line			$USER1$/check_snmp_storage -2 -H $HOSTADDRESS$ -C $ARG1$ -t 120 --cache=30 -m '$ARG2$' -q "FixedDisk" -w $ARG3$ -c $ARG4$ $ARG5$
}

define command {
	command_name			check_snmp_any_fs
	##command_line			$USER1$/check_output_convert check_snmp_storage '-2 -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m $ARG1$ -q FixedDisk -w $ARG2$ -c $ARG3$ $ARG4$' $USER1$/check_snmp_disk_output_convert
	command_line			$USER1$/check_snmp_storage -2 -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m '$ARG1$' -w $ARG2$ -c $ARG3$ $ARG4$
}

define command {
	command_name			check_snmp_disk_except
	##command_line			$USER1$/check_output_convert check_snmp_storage '-2 -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m $ARG1$ -q FixedDisk -w $ARG2$ -c $ARG3$ -e $ARG4$' $USER1$/check_snmp_disk_output_convert
	command_line			$USER1$/check_snmp_storage -2 -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m '$ARG1$' -q "FixedDisk" -w $ARG2$ -c $ARG3$ -e $ARG4$
}

define command {
	command_name			check_snmp_emfw
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o "$ARG1$" -c "$ARG2$"
}

define command {
	command_name			check_snmp_esx3_available_mem
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o ".1.3.6.1.4.1.6876.3.2.3.0" -l "Available Mem"  -C '$USER7$'
}

define command {
	command_name			check_snmp_esx3_mem_console_used
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o ".1.3.6.1.4.1.6876.3.2.2.0" -l "Console Used Mem"  -C '$USER7$'
}

define command {
	command_name			check_snmp_esx3_num_system_processes
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o ".1.3.6.1.2.1.25.1.6.0" -l "number_processes"  -C '$USER7$'
}

define command {
	command_name			check_snmp_esx3_num_users
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o ".1.3.6.1.2.1.25.1.5.0" -l "Number of Users"  -C '$USER7$'
}

define command {
	command_name			check_snmp_esx3_total_mem
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o ".1.3.6.1.4.1.6876.3.2.1.0" -l "Total_server_memory"  -C '$USER7$'
}

define command {
	command_name			check_snmp_esx3_uptime
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -o ".1.3.6.1.2.1.25.1.1.0" -r "Timeticks"  -C '$USER7$'
}

define command {
	command_name			check_snmp_fixed_storage
	command_line			$USER1$/check_snmp_storage -H $HOSTADDRESS$ -C $USER7$ -t $USER3$ --cache=30 -m $ARG1$ -q FixedDisk -G -w $ARG2$ -c $ARG3$
}

define command {
	command_name			check_snmp_foundry_active_cxn
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -t 30 -P 1 -C TLimsIs -o 1.3.6.1.4.1.1991.1.1.4.29.2.1.4.1 -l 'ACTIVE CONNECTIONS:'
}

define command {
	command_name			check_snmp_f5_active_cxn
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG3$ -t 30 -P 2c -C $USER7$ -o 1.3.6.1.4.1.3375.2.1.1.2.1.8.0 -l 'Active Connections:'
}

define command {
	command_name			check_snmp_if
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -C '$USER7$' -o "IF-MIB::ifInOctets.$ARG1$,IF-MIB::ifOutOctets.$ARG1$ ,IF-MIB::ifInDiscards.$ARG1$,IF-MIB::ifOutDiscards.$ARG1$,IF-MIB::ifInErrors.$ARG1$,IF-MIB::ifOutErrors.$ARG1$"
}

define command {
	command_name			check_snmp_linux_memory
	command_line			$USER1$/check_snmp_storage -H $HOSTADDRESS$ -C $USER7$ -t 100 --cache=30 -m "(Physical [Mm]emory|Swap [Ss]pace)" -q "Ram|VirtualMemory" -f -w $ARG1$ -c $ARG2$ -s
}

define command {
	command_name			check_snmp_mge_ups_battery_recharge_level
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.5.4.0 -l 'UPS Battery Recharge Level:'
}

define command {
	command_name			check_snmp_mge_ups_battery_time
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.5.1.0 -c 500: -l 'UPS Battery Time (sec.):'
}

define command {
	command_name			check_snmp_mge_ups_input_current
	command_line			$USER1$//check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.6.2.1.6.1,1.3.6.1.4.1.705.1.6.2.1.6.2,1.3.6.1.4.1.705.1.6.2.1.6.3 -l 'UPS Input Current(Amps x10):'
}

define command {
	command_name			check_snmp_mge_ups_input_voltage
	command_line			$USER1$//check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.6.2.1.2.1,1.3.6.1.4.1.705.1.6.2.1.2.2,1.3.6.1.4.1.705.1.6.2.1.2.3 -l 'UPS Input Voltage (Volts x10):' -c 4300:5300,4300:5300,4300:5300
}

define command {
	command_name			check_snmp_mge_ups_output_current
	command_line			$USER1$//check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.7.2.1.5.1,1.3.6.1.4.1.705.1.7.2.1.5.2,1.3.6.1.4.1.705.1.7.2.1.5.3 -l 'UPS Output Current (Amps x10):'
}

define command {
	command_name			check_snmp_mge_ups_output_load_per_phase
	command_line			$USER1$//check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.7.2.1.4.1,1.3.6.1.4.1.705.1.7.2.1.4.2,1.3.6.1.4.1.705.1.7.2.1.4.3 -l 'UPS Output Load Percent per Phase:'
}

define command {
	command_name			check_snmp_mge_ups_output_voltage
	command_line			$USER1$//check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.7.2.1.2.1,1.3.6.1.4.1.705.1.7.2.1.2.2,1.3.6.1.4.1.705.1.7.2.1.2.3 -l 'UPS Output Voltage (Volts x10):' -c 4300:5300,4300:5300,4300:5300
}

define command {
	command_name			check_snmp_mge_ups_status
	command_line			$USER1$/check_snmp -H $HOSTADDRESS$ -P 1 -C $USER28$ -o 1.3.6.1.4.1.705.1.7.3.0 -c 2 -l 'UPS STATUS (2 = OK - 1 = on battery):'
}

define command {
	command_name			check_snmp_nix_memory
	command_line			$USER1$/check_snmp_mem.pl -2 -t $USER3$ -C $USER7$ -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -f 2>&1
}

define command {
	command_name			check_snmp_nix_memory-new
	command_line			$USER1$/check_snmp_mem.pl -2 -t $USER3$ -C $ARG1$ -H $HOSTADDRESS$ -w $ARG2$ -c $ARG3$ -f 2>&1
}

define command {
	command_name			check_snmp_oldfoundry_active_cxn
	command_line			$USER1$/check_old_foundry_active $HOSTADDRESS$  $ARG1$ $ARG2$
}

define command {
	command_name			check_hpasm
	command_line			$USER1$/check_hpasm --community $USER7$ --hostname $HOSTADDRESS$ --timeout $USER3$
}

define command {
	command_name			check_snmp_openmanage
	command_line			$USER1$/check_dell_openmanage.1.3_pu.pl -t 30 -H $HOSTADDRESS$ -C $USER7$ -T $ARG1$
}

define command {
	command_name			check_snmp_openmanage_new
	command_line			$USER1$/check_openmanage -t $USER3$ -H $HOSTADDRESS$ -C $USER7$ -i -s -p -b bat_charge=all/ctrl_fw=all/ctrl_driver=all/ctrl_stdr=all/intr=all $ARG1$ 2>&1
}

define command {
	command_name			check_snmp_process
	command_line			$USER1$/check_snmp_process -H $HOSTADDRESS$ -2 -fA -C $USER7$ -t 120 -n '$ARG1$' -w $ARG2$ -c $ARG3$ $ARG4$
}

define command {
	command_name			check_snmp_process-new
	command_line			$USER1$/check_snmp_process.pl -H $HOSTADDRESS$ -2 -fA -C $USER7$ -t 60 -n '$ARG1$' $ARG2$
}

define command {
	command_name			check_snmp_process-not-matching
	command_line			$USER1$/check_snmp_process.pl -H $HOSTADDRESS$ -2 -fA -C $USER7$ -t 60 -n '$ARG1$' $ARG2$ | /bin/sed 's/matching [^,]+,/with /' && (exit ${PIPESTATUS[0]})
}

define command {
	command_name			check_snmp_process_cpu
	command_line			$USER1$/check_snmp_process -H $HOSTADDRESS$ -2 -fA -C $USER7$ -t 120 -n '$ARG1$' -u $ARG2$ $ARG3$
}

define command {
	command_name			check_snmp_sol_memory
	command_line			$USER1$/check_snmp_storage -H $HOSTADDRESS$ -C $USER7$ -t 100 --cache=30 -m '(Physical|Swap)' -q "Ram|VirtualMemory" -f -w $ARG1$ -c $ARG2$ -s
}

define command {
	command_name			check_snmp_process_mem
	command_line			$USER1$/check_snmp_process -H $HOSTADDRESS$ -C $USER7$ -t $USER3$ -n $ARG1$ -m $ARG2$
}

define command {
	command_name			check_snmp_load
	command_line			$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C $USER7$ -2 -w $ARG1$ -c $ARG2$ -f -t $USER3$ $ARG3$
}

define command {
	command_name			check_snmp_load-new
	command_line			$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C $ARG1$ -2 -w $ARG2$ -c $ARG3$ -f -t $USER3$ $ARG4$
}

define command {
	command_name			check_snmp_int
	command_line			$USER1$/check_snmp_int -H $HOSTADDRESS$ -C $ARG1$ -2 -t $USER3$ -n $ARG2$ -f -e -u -w $ARG3$ -c $ARG4$ $ARG5$
	#Usage: check_snmp_int [-v -V] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>)  [-p <port>] [-t <timeout>] -n <name in desc_oid> [-i -a -r  -D] [-f[eSyY]] [-k[qBMGu] -g -w<warn levels> -c<crit levels> -d<delta>] [-s --label] -K=<min>
}

define command {
	command_name			check_snmptraps
	command_line			$USER1$/check_snmptraps.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}

define command {
	command_name			check_ssh
	command_line			$USER1$/check_ssh -H $HOSTADDRESS$ -t 60
}

define command {
	command_name			check_ssh_response
	command_line			$USER1$/check_ssh_response $HOSTNAME$ $ARG1$
}

define command {
	command_name			check_ssh_using_key
	command_line			$USER1$/check_by_ssh_ng $ARG1$ $ARG2$ $HOSTADDRESS$ '$ARG3$' '$ARG4$'
}

define command {
	command_name			check_by_ssh_using_preloaded_key
	command_line			$USER1$/check_by_ssh_key_wrapper -H $HOSTADDRESS$ $ARG1$ -C '$ARG2$'
}

define command {
	command_name			check_rtmp
	command_line			$USER1$/check_rtmp $ARG1$ $ARG2$
}

define command {
	command_name			check_syslog
	command_line			$USER1$/check_syslog_gw.pl -l /usr/local/nagios/var/log/syslog-ng/$HOSTNAME$.log -s /var/tmp/$HOSTNAME$.tmp -x /usr/local/nagios/regexp/regex.1 -a $HOSTADDRESS$
}

define command {
	command_name			check_tcp
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
}

define command {
	command_name			check_tcp_ftp
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 21
}

define command {
	command_name			check_tcp_https
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 443
}

define command {
	command_name			check_tcp_imap
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 143 -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_tcp_imaps
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 993 -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_tcp_ldap
	command_line			$USER1$/check_tcp -t 60 -H $HOSTADDRESS$ -w 2 -c 4 -p 389
}

define command {
	command_name			check_tcp_multiport
	command_line			$USER1$/check_tcp_multi -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}

define command {
	command_name			check_tcp_nntps
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 563
}

define command {
	command_name			check_tcp_nrpe
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 5666
}

define command {
	command_name			check_tcp_nsca
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p $USER11$
}

define command {
	command_name			check_tcp_oracle
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 1521
}

define command {
	command_name			check_tcp_pop3
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 110  -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_tcp_pop3s
	command_line			$USER1$/check_tcp  -H $HOSTADDRESS$ -p 995 -w $ARG1$ -c $ARG2$-S
}

define command {
	command_name			check_tcp_smtp
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 25 -t 60
}

define command {
	command_name			check_tcp_ssh
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 22
}

define command {
	command_name			check_telnet
	command_line			$USER1$/check_tcp -H $HOSTADDRESS$ -p 23
}

define command {
	command_name			check_trap_OK
	command_line			/bin/echo "OK: No new traps"
}

define command {
	command_name			check_OK
	command_line			/bin/echo "OK: No current results"
}

define command {
	command_name			check_tsm_sessions
	command_line			$USER1$/check_tsm_sessions $ARG1$
}

define command {
	command_name			check_udp
	command_line			$USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$
}

define command {
	command_name			check_udp_dns
	command_line			$USER1$/check_udp -H $HOSTADDRESS$ -p 53 -s "4500 003d 668f 4000 4011 4ce9 c0a8 02f0"
}

define command {
	command_name			check_udp_nsclient
	command_line			$USER1$/check_udp -H $HOSTADDRESS$ -p $USER19$
}

define command {
	command_name			check_wmi_100nsec_timer
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_100nsec_timer -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_wmi_counter_counter
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_counter_counter -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_wmi_counter_rawcount
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_counter_rawcount -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$" "$ARG4$" "$ARG5$"
}

define command {
	command_name			check_wmi_cpu
	command_line			$USER1$/check_nrpe -t 60 -u -H "$USER21$" -c get_cpu -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_disk
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_disk -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_disk_transfers
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_disktransfers -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_exchange_mailbox_receiveq
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_exchange_mbox_recvq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_exchange_mailbox_sendq
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_exchange_mbox_sendq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_exchange_mta_workq
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_exchange_mta_workq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_exchange_public_receiveq
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_exchange_pub_recvq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_exchange_public_sendq
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_exchange_pub_sendq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_iis_bytes_received
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_bytes_received -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_bytes_sent
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_bytes_sent -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_bytes_total
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_bytes_total -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_current_connections
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_currentconnections -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_current_nonanonymous_users
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_curnonanonusers -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_get_requests
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_get_requests -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_maximum_connections
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_maximumconnections -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_post_requests
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_post_requests -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_iis_private_bytes
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_privatebytes -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_iis_total_not_found_errors
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_iis_totalnotfounderrors -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_mem
	command_line			$USER1$/check_nrpe -t 5 -H $USER23$ -c get_mem -a $HOSTADDRESS$ "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_memory_pages
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_swapping -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_mssql_buffer_cache_hits
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_buf_cache_hit -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_mssql_deadlocks
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_deadlocks -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_mssql_full_scans
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_fullscans -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_mssql_lock_wait_time
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_lock_wait_time -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_mssql_lock_waits
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_lock_waits -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_mssql_log_growths
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_log_growth -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_mssql_log_used
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_log_used -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_mssql_memory_grants_pending
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_memgrantspending -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_mssql_transactions
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_transactions -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_wmi_mssql_users
	command_line			$USER1$/check_nrpe -t 60 -u -H $USER21$ -c get_mssql_users -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_wmi_service
	command_line			$USER1$/check_nrpe -H $USER21$ -t 60 -c get_service -a "$HOSTADDRESS$" "$ARG1$"
}

define command {
	command_name			nrpe_exchange_mailbox_receiveq
	command_line			$USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -p $USER10$ -c get_exchange_mbox_recvq -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_https_ShoppingCart
	#command_line			$USER1$/check_nrpe -t 60 -u -H ims205 -p $USER10$ -c check_https_ShoppingCart -a $HOSTNAME$
	command_line			$USER1$/check_https_ShoppingCart $HOSTNAME$ 2>&1
}

define command {
	command_name			check_https_thesis_central
	command_line			$USER1$/check_https_thesis_central.py 'https://$ARG1$' '$ARG2$' '$ARG3$'
}

define command {
	command_name			nrpe_passive
	command_line			$USER1$/check_nrpe_passive $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

define command {
	command_name			process-host-nsca
	command_line			/bin/echo -e "$HOSTNAME$"t$HOSTSTATEID$t$HOSTOUTPUT$t$HOSTPERFDATA$" | /usr/local/nagios/bin/send_nsca -H ims204 -p 9667 -c /usr/local/nagios/etc/send_nsca.cfg
}

define command {
	command_name			process-host-perfdata
	command_line			/usr/bin/printf "%b" "$LASTHOSTCHECK$t$HOSTNAME$t$HOSTSTATE$t$HOSTATTEMPT$t$HOSTSTATETYPE$t$HOSTEXECUTIONTIME$t$HOSTOUTPUT$t$HOSTPERFDATA$n" >> /usr/local/nagios/var/host-perfdata.out
}

define command {
	command_name			process-service-nsca
	command_line			/bin/echo -e "$HOSTNAME$t$SERVICEDESC$t$SERVICESTATEID$t$SERVICEOUTPUT$|$SERVICEPERFDATA$" | /usr/local/nagios/bin/send_nsca -H ims204 -p 9667 -c /usr/local/nagios/etc/send_nsca.cfg
}

define command {
	command_name			process-service-perfdata
	command_line			/usr/bin/printf "%b" "$LASTSERVICECHECK$t$HOSTNAME$t$SERVICEDESC$t$SERVICESTATE$t$SERVICEATTEMPT$t$SERVICESTATETYPE$t$SERVICEEXECUTIONTIME$t$SERVICELATENCY$t$SERVICEOUTPUT$t$SERVICEPERFDATA$n" >> /usr/local/nagios/var/service-perfdata.out
}

define command {
	command_name			test_env_vars
	command_line			$USER1$/test_env_vars
}

define command {
	command_name			gearman_failover
	command_line			$USER2$/gearman_recovery "$SERVICEDESC$" $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
}

define command {
	command_name			gearman_host_recovery
	command_line			$USER2$/gearman_host_recovery "$HOSTNAME$" $HOSTSTATE$ $HOSTSTATETYPE$
}

define command {
	command_name			slave_connection_reset
	command_line			$USER2$/slave_conn_reset "$HOSTNAME$" $SERVICESTATE$ $ARG1$ $SERVICEATTEMPT$
}

define command {
	command_name			gearman_server_fail
	command_line			$USER2$/gearman_server_fail $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
}

define command {
	command_name			gearman_devqa_failover
	command_line			$USER2$/gearman_devqa_recovery "$SERVICEDESC$" $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
}

define command {
	command_name			gearman_devqa_server_fail
	command_line			$USER2$/gearman_dev_qa_server_fail $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$
}

define command {
	command_name			cas_iis_reset
	command_line			$USER2$/cas_iis_reset $HOSTALIAS$ $SERVICESTATE$ $SERVICEATTEMPT$ "$SERVICEOUTPUT$"
}

define command {
	command_name			sdpalc200w_restart
	command_line			$USER2$/auto_restart sdpalc200w "$SERVICENAME$" $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ "$SERVICEOUTPUT$"
}

define command {
	command_name			clearpass_restart
	command_line			$USER2$/cp_restart $HOSTNAME$ "$SERVICENAME$" $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ "$SERVICEOUTPUT$"
}

define command {
	command_name			host-notify-by-email
	command_line			/usr/bin/printf "%b" "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=UP/DOWNnResource=N/AnMetric=N/AnSeverity=$HOSTSTATE$nDescription=$HOSTOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			host-notify-by-email-via-Comcast_Gmail
	command_line			$USER1$/ssh_key_include_wrapper backupvpn.Princeton.EDU 'route -T 1 exec /usr/local/monitoring/libexec/sendEmail -f "Nagios Monitoring<groundwk@Princeton.EDU>" -t $CONTACTEMAIL$ -s smtp.gmail.com:587 -o tls=yes -xu groundwk@Princeton.EDU -xp $USER30$ -u "Host $HOSTSTATE$ alert for $HOSTNAME$!" -m "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n"'
}

define command {
	command_name			host-notify-by-email-via-Verizon_Gmail
	command_line			$USER1$/ssh_key_include_wrapper backupvpn.Princeton.EDU 'route -T 2 exec /usr/local/monitoring/libexec/sendEmail -f "Nagios Monitoring<groundwk@Princeton.EDU>" -t $CONTACTEMAIL$ -s smtp.gmail.com:587 -o tls=yes -xu groundwk@Princeton.EDU -xp $USER30$ -u "Host $HOSTSTATE$ alert for $HOSTNAME$!" -m "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n"'
}

define command {
	command_name			host-notify-by-email-pu
	command_line			/usr/bin/printf "%b" "$HOSTNAME$ $HOSTSTATE$ at $SHORTDATETIME$n$HOSTOUTPUT$n" | $USER1$/custommailsend -H "Subject:$HOSTNAME$ is $HOSTSTATE$" $CONTACTEMAIL$ $CONTACTPAGER$ 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=UP/DOWNnResource=N/AnMetric=N/AnSeverity=$HOSTSTATE$nDescription=$HOSTOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			host-notify-by-epager
	command_line			/usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$nInfo: $HOSTOUTPUT$nTime: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
}

define command {
	command_name			host-notify-by-punotify
	command_line			/usr/bin/printf "%b" "notify_host '$LASTHOSTCHECK$'t'$HOSTNAME$'t'$HOSTGROUPNAMES$'t'$HOSTSTATE$'t'$HOSTSTATETYPE$'t'$HOSTDURATIONSEC$'t'$HOSTOUTPUT$'t'$HOSTPERFDATA$'n" >> /usr/local/monitoring/log/punotify.txt
}

define command {
	command_name			host-notify-by-sendEmail
	command_line			/usr/bin/printf "%b" "<html><b>+++++ HOST $NOTIFICATIONTYPE$ : $HOSTSTATE$ +++++<br>$LONGDATETIME$</b><br>Host: <b>$HOSTALIAS$ ($HOSTADDRESS$)</b></b><br>Message: <b>$HOSTOUTPUT$</b></html>" | $USER1$/sendEmail -q -f $ADMINEMAIL$ -t $CONTACTEMAIL$ -u "[GW] ++ $HOSTNAME$ : $HOSTSTATE$ ++" 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=UP/DOWNnResource=N/AnMetric=N/AnSeverity=$HOSTSTATE$nDescription=$HOSTOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			host-notify-dummy
	command_line			/bin/true
}

define command {
	command_name			host-notify-pu-default
	command_line			$USER1$/pu_host_notify_default.sh '$LASTHOSTCHECK$' '$HOSTNAME$' '$HOSTGROUPNAMES$' '$HOSTSTATE$' '$HOSTSTATETYPE$' '$HOSTDURATIONSEC$' '$HOSTOUTPUT$' '$HOSTPERFDATA$' 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=UP/DOWNnResource=N/AnMetric=N/AnSeverity=$HOSTSTATE$nDescription=$HOSTOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			launch_perfdata_process
	command_line			$USER2$/launch_perf_data_processing
}

define command {
	command_name			notify-by-email
	command_line			/usr/bin/printf "%b" "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=$SERVICEDESC$nResource=N/AnMetric=N/AnSeverity=$SERVICESTATE$nDescription=$SERVICEOUTPUT$  $LONGSERVICEOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			notify-by-epager
	command_line			/usr/bin/printf "%b" "Service: $SERVICEDESC$nHost: $HOSTNAME$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nInfo: $SERVICEOUTPUT$nDate: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
}

define command {
	command_name			process_service_perfdata_db
	command_line			$USER2$/process_service_perf_db.pl "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICEPERFDATA$"
}

define command {
	command_name			process_service_perfdata_db_strings
	command_line			$USER2$/process_service_perf_db_strings.pl "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICEPERFDATA$"
}

define command {
	command_name			process_service_perfdata_file
	command_line			$USER2$/process_service_perf_db_file.pl
}

define command {
	command_name			service-notify-by-email-pu
	command_line			/usr/bin/printf "%b" "$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ at $SHORTDATETIME$nn$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$n" | $USER1$/custommailsend -H "Subject:$HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTEMAIL$ $CONTACTPAGER$ 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=$SERVICEDESC$nResource=N/AnMetric=N/AnSeverity=$SERVICESTATE$nDescription=$SERVICEOUTPUT$  $LONGSERVICEOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			service-notify-by-email-via-Comcast_Gmail
	#command_line			/bin/echo /usr/bin/ssh backupvpn.Princeton.EDU "route -T 1 exec /usr/local/monitoring/libexec/sendEmail -f "Nagios Monitoring<groundwk@Princeton.EDU>" -t $CONTACTEMAIL$ -s smtp.gmail.com:587 -o tls=yes -xu groundwk@Princeton.EDU -xp $USER30$ -u "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$""
	command_line			$USER1$/ssh_key_include_wrapper backupvpn.Princeton.EDU "route -T 1 exec /usr/local/monitoring/libexec/sendEmail -f "Nagios Monitoring<groundwk@Princeton.EDU>" -t $CONTACTEMAIL$ -s smtp.gmail.com:587 -o tls=yes -xu groundwk@Princeton.EDU -xp $USER30$ -u "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$n$LONGSERVICEOUTPUTn""
}

define command {
	command_name			service-notify-by-email-via-Verizon_Gmail
	#command_line			/bin/echo /usr/bin/ssh backupvpn.Princeton.EDU "route -T 2 exec /usr/local/monitoring/libexec/sendEmail -f "Nagios Monitoring<groundwk@Princeton.EDU>" -t $CONTACTEMAIL$ -s smtp.gmail.com:587 -o tls=yes -xu groundwk@Princeton.EDU -xp $USER30$ -u "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$""
	command_line			$USER1$/ssh_key_include_wrapper backupvpn.Princeton.EDU "route -T 2 exec /usr/local/monitoring/libexec/sendEmail -f "Nagios Monitoring<groundwk@Princeton.EDU>" -t $CONTACTEMAIL$ -s smtp.gmail.com:587 -o tls=yes -xu groundwk@Princeton.EDU -xp $USER30$ -u "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$n""
}

define command {
	command_name			service-notify-by-email-pu-high-importance
	command_line			/usr/bin/printf "%b" "$HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ at $SHORTDATETIME$nn$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$n" | $USER1$/custommailsend -H "X-Message-Flag:Follow up" -H "Importance:high" -H "Subject:$HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTEMAIL$ 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=$SERVICEDESC$nResource=N/AnMetric=N/AnSeverity=$SERVICESTATE$nDescription=$SERVICEOUTPUT$  $LONGSERVICEOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			service-notify-by-punotify
	command_line			/usr/bin/printf "%b" "notify_service '$LASTHOSTCHECK$'t'$HOSTNAME$'t'$SERVICEDESC$'t'$HOSTGROUPNAMES$'t'$SERVICEGROUPNAME$'t'$SERVICESTATE$'t'$SERVICESTATETYPE$'t'$SERVICEDURATIONSEC$'t'$HOSTDURATIONSEC$'t'$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$'t'$SERVICEPERFDATA$'n" >> /usr/local/monitoring/log/punotify.txt
}

define command {
	command_name			service-notify-by-sendEmail
	command_line			/usr/bin/printf "%b" "<html><b>+++++ SERVICE $NOTIFICATIONTYPE$ : $SERVICESTATE$ +++++<br>$LONGDATETIME$</b><br>Host: <b>$HOSTALIAS$ ($HOSTADDRESS$)</b></b><br>Message: <b>$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$</b></html>" | $USER1$/sendEmail -q -f $ADMINEMAIL$ -t $CONTACTEMAIL$ -u "[GW] ++ $HOSTNAME$ : $SERVICEDESC$ : $SERVICESTATE$ ++" 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=$SERVICEDESC$nResource=N/AnMetric=N/AnSeverity=$SERVICESTATE$nDescription=$SERVICEOUTPUT$  $LONGSERVICEOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			service-notify-dummy
	command_line			/bin/true
}

define command {
	command_name			service-notify-pu-default
	command_line			$USER1$/pu_service_notify_default.sh '$LASTHOSTCHECK$' '$HOSTNAME$' '$SERVICEDESC$' '$HOSTGROUPNAMES$' '$SERVICEGROUPNAME$' '$SERVICESTATE$' '$SERVICESTATETYPE$' '$SERVICEDURATIONSEC$' '$HOSTDURATIONSEC$' "$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$" "$SERVICEPERFDATA$" 2>>/usr/local/monitoring/log/mail.err$USER9$ /bin/echo -e "Node=$HOSTNAME$nType=$SERVICEDESC$nResource=N/AnMetric=N/AnSeverity=$SERVICESTATE$nDescription=$SERVICEOUTPUT$  $LONGSERVICEOUTPUT$" | /usr/local/monitoring/princeton/puevent ais-sn300w:1024 public 2>>/usr/local/monitoring/log/puevent.log
}

define command {
	command_name			service-notify-pu-igor
	command_line			/bin/echo '$LASTHOSTCHECK$' '$HOSTNAME$' '$SERVICEDESC$' '$HOSTGROUPNAME$' '$SERVICEGROUPNAME$' '$SERVICESTATE$' '$SERVICESTATETYPE$' '$SERVICEDURATIONSEC$' '$HOSTDURATIONSEC$' '$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$' '$SERVICEPERFDATA$' | $USER1$/pu_service_notify_default.sh.igor 2>>/usr/local/monitoring/log/mail.err
}

define command {
	command_name			service-notify-system
	command_line			/usr/bin/printf "%b" "***** Nagios  *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ 2>>/usr/local/monitoring/log/mail.err
}

define command {
	command_name			check_nrpe_win_app_shibboleth
	command_line			$USER1$/check_nrpe -p $USER10$ -t 60 -H $HOSTADDRESS$ -c check_shibboleth
}

define command {
	command_name			check_nrpe_win_counters
	command_line			$USER1$/check_nrpe -u -t $USER3$ -p $USER10$ -H $HOSTADDRESS$ -c check_win_counters -a $ARG1$ "$ARG2$" "$ARG3$" '$ARG4$' '$ARG5$' '$ARG6$'
}

define command {
	command_name			check_nrpe_win_counters_test
	command_line			$USER1$/check_nrpe -t $USER3$ -p $USER10$ -H $HOSTADDRESS$ -c check_win_counters -a "$ARG1$" "$ARG2$" "$ARG3$" '$ARG4$' '$ARG5$' '$ARG6$'
}

define command {
	command_name			check_nrpe_win_cpu_old
	command_line			$USER1$/check_nrpe_win_cpu_wrapper $HOSTADDRESS$ "$NAGIOS_SERVICEDURATION$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_win_cpu
	command_line			$USER1$/check_nrpe -t $USER3$ -p $USER10$ -H $HOSTADDRESS$ -c checkCPU -a warn=$ARG1$ crit=$ARG2$ $ARG3$ ShowAll=long
}

define command {
	command_name			check_nrpe_win_cpu_v3
	command_line			$USER1$/check_nrpe_v3 -p $USER10$ -H $HOSTADDRESS$ -E -d 0 -t $USER3$:UNKNOWN -A /usr/local/monitoring/etc/net-ca-chain.pem -L HIGH:MEDIUM -S TLSv1.2+ -c checkCPU -a warn=$ARG1$ crit=$ARG2$ $ARG3$ ShowAll=long
}

define command {
	command_name			check_nrpe_win_disk_old
	command_line			$USER1$/check_nrpe -t $USER3$ -H $HOSTADDRESS$ -p $USER10$ -c get_disk -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_win_disk
	command_line			$USER1$/check_nrpe -t $USER3$ -H $HOSTADDRESS$ -p $USER10$ -c CheckDriveSize -a ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ $ARG3$
}

define command {
	command_name			check_nrpe_win_disk_v3
	command_line			$USER1$/check_nrpe_v3 -p $USER10$ -H $HOSTADDRESS$ -E -d 0 -t $USER3$:UNKNOWN -A /usr/local/monitoring/etc/net-ca-chain.pem -L HIGH:MEDIUM -S TLSv1.2+ -c CheckDriveSize -a ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ $ARG3$
}

define command {
	command_name			check_nrpe_win_all_disks
	command_line			$USER1$/check_nrpe_wrapper_output_convert $HOSTADDRESS$ CheckDriveSize '-a ShowAll=long CheckAllOthers FilterType=FIXED FilterType=REMOTE Drive=C: MaxWarn=$ARG1$ MaxCrit=$ARG2$' "sed "'s/,/<br>
nn/g'
}

define command {
	command_name			check_nrpe_win_all_disks_except
	command_line			$USER1$/check_nrpe_wrapper_output_convert $HOSTADDRESS$ CheckDriveSize '-a ShowAll=long CheckAllOthers FilterType=FIXED FilterType=REMOTE MaxWarn=$ARG1$ MaxCrit=$ARG2$ $ARG3$' "sed "'s/,/<br>
nn/g'
	##command_line			$USER1$/check_nrpe -t $USER3$ -H $HOSTADDRESS$ -p $USER10$ -c CheckDriveSize -a ShowAll=long CheckAllOthers FilterType=FIXED FilterType=REMOTE MaxWarn=$ARG1$ MaxCrit=$ARG2$ $ARG3$
}

define command {
	command_name			check_nrpe_win_disk_transfers
	command_line			$USER1$/check_nrpe -t $USER3$ -H $HOSTADDRESS$ -p $USER10$ -c get_disktransfers -a "$HOSTADDRESS$" "Name=$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_win_maestro_stdlistsz
	command_line			$USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p $USER10$ -c check_tws_stdlistsz
}

define command {
	command_name			check_nrpe_win_mem_old
	command_line			$USER1$/check_nrpe_win_mem_wrapper $HOSTADDRESS$ "$NAGIOS_SERVICEDURATION$""$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_win_memory_pages
	command_line			$USER1$/check_nrpe -t $USER3$ -H $HOSTADDRESS$ -p $USER10$ -c get_swapping -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_win_mem
	command_line			$USER1$/check_nrpe -t $USER3$ -H $HOSTADDRESS$ -p $USER10$ -c checkMem -a type=$ARG1$ MaxWarn=$ARG2$ MaxCrit=$ARG3$ ShowAll=long
}

define command {
	command_name			check_nrpe_win_mem_v3
	command_line			$USER1$/check_nrpe_v3 -p $USER10$ -H $HOSTADDRESS$ -E -d 0 -t $USER3$:UNKNOWN -A /usr/local/monitoring/etc/net-ca-chain.pem -L HIGH:MEDIUM -S TLSv1.2+ -c checkMem -a type=$ARG1$ MaxWarn=$ARG2$ MaxCrit=$ARG3$ ShowAll=long
}

define command {
	command_name			check_nrpe_win_proc
	command_line			$USER1$/check_nrpe -H $HOSTADDRESS$ -t $USER3$ -p $USER10$ -c get_process -a "$HOSTADDRESS$" "$ARG1$" "$ARG2$" "$ARG3$"
}

define command {
	command_name			check_nrpe_win_service_old
	command_line			$USER1$/check_nrpe -H $HOSTADDRESS$ -t $USER3$ -p $USER10$ -c get_service -a "$HOSTADDRESS$" "$ARG1$"
}

define command {
	command_name			check_nrpe_win_service
	command_line			$USER1$/check_nrpe -H $HOSTADDRESS$ -t $USER3$ -p $USER10$ -c CheckServiceState -a ShowAll $ARG1$
}

define command {
	command_name			check_nrpe_win_service_v3
	command_line			$USER1$/check_nrpe_v3 -p $USER10$ -H $HOSTADDRESS$ -E -d 0 -t $USER3$:UNKNOWN -A /usr/local/monitoring/etc/net-ca-chain.pem -L HIGH:MEDIUM -S TLSv1.2+ -c CheckServiceState -a ShowAll $ARG1$
}

define command {
	command_name			check_nrpe_win_service_not_running
	command_line			$USER1$/check_win_service_norun.pl $HOSTADDRESS$ "$ARG1$"
}

define command {
	command_name			check_nrpe_win_tdpexcc
	command_line			$USER1$/check_win_tdpexcc_pu.pl $HOSTADDRESS$
}

define command {
	command_name			check_nrpe_win_tsm_backup_status
	command_line			$USER1$/check_nrpe -t $USER3$ -p $USER10$ -H $HOSTADDRESS$ -c check_tsm_backup_status -a '$ARG1$' '$ARG2$'
}

define command {
	command_name			check_nrpe_win_vss
	command_line			$USER1$/check_nrpe -t $USER3$ -p $USER10$ -H $HOSTADDRESS$ -c check_vss_writers
}

define command {
	command_name			check_nrpe_winsmtp_local_q
	command_line			$USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p $USER10$ -c get_counter_rawcount -a "$HOSTADDRESS$" Win32_PerfRawData_SMTPSVC_SMTPServer 'Name=_Total' LocalQueueLength "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_winsmtp_local_retry_q
	command_line			$USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p $USER10$ -c get_counter_rawcount -a "$HOSTADDRESS$" Win32_PerfRawData_SMTPSVC_SMTPServer 'Name=_Total' LocalRetryQueueLength "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_winsmtp_remote_q
	command_line			$USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p $USER10$ -c get_counter_rawcount -a "$HOSTADDRESS$" Win32_PerfRawData_SMTPSVC_SMTPServer 'Name=_Total' RemoteQueueLength "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_nrpe_winsmtp_remote_retry_q
	command_line			$USER1$/check_nrpe -t 60 -H $HOSTADDRESS$ -p $USER10$ -c get_counter_rawcount -a "$HOSTADDRESS$" Win32_PerfRawData_SMTPSVC_SMTPServer 'Name=_Total' RemoteRetryQueueLength "$ARG1$" "$ARG2$"
}

define command {
	command_name			check_snmp_win_load
	command_line			$USER1$/check_snmp_load.pl -2 -T stand -f -H $HOSTADDRESS$ -C $USER7$ -t 35 -w $ARG1$ -c $ARG2$
}

define command {
	command_name			check_snmp_win_memory
	command_line			$USER1$/check_snmp_storage -H $HOSTADDRESS$ -C $USER7$ -t 120 --cache=30 -m Memory -q "Ram|VirtualMemory" -f -w $ARG1$ -c $ARG2$ -s
}

define command {
	command_name			check_snmp_win_service
	command_line			$USER1$/check_snmp_win.pl -H $HOSTADDRESS$ -2 -C $USER7$ -t 35 -n $ARG1$ 2>&1
}

