## An example of using check_by_ssh as an active service check # 'ssh_disk' command definition define command{ command_name ssh_disk command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C '$USER1$/check_disk -w 85% -c 95% -p $ARG1$' } ## Check CLAMAV daemon responce via TCP # 'check_clamd' command definition define command{ command_name check_clamd command_line $USER1$/check_clamd -H $HOSTADDRESS$ -p 3310 $ARG1$ } #%nagios_plugdir/check_cluster # no access to cluster setup -- can't test settings ## Check DNS server via dig: ARG1 - query string, ARG2 - DNS query type # 'check_dig' command definition define command{ command_name check_dig command_line $USER1$/check_dig -H $HOSTADDRESS$ -l $ARG1$ -T $ARG2$ } ## Check DNS server via nslookup # 'check_dns' command definition define command{ command_name check_dns command_line $USER1$/check_dns -H www.ru -s $HOSTADDRESS$ $ARG1$ } ## Check DHCP server # 'check_dhcp' command definition -- check_dhcp must be owned by root # and SUID bit must be set. define command{ command_name check_dhcp command_line $USER1$/check_dhcp -s $HOSTADDRESS$ -i $ARG1$ } ## Check if a host is alive by doing a fast ping instead of a regular ping # 'check-fast-alive' command definition define command{ command_name check-fast-alive command_line $USER1$/check_fping -H $HOSTADDRESS$ $ARG1$ } # Check FTP service # 'check_ftp' command definition define command{ command_name check_ftp command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ } # Check HTTP service (see check_http -h for details) # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$ } # 'check_http2' command definition define command{ command_name check_http2 command_line $USER1$/check_http -H $ARG1$ -I $HOSTADDRESS$ -w $ARG2$ -c $ARG3$ } ## Check HTTP proxy ## This is a command for checking squid or other proxy servers which uses check ## http to ensure an HTTP 200 comes back ..... i.e. squid actually ## serves the page and not an error message. ## Using check_http will allow verification of authenticated proxies ## ## Note:: This used to call "check_reply" which was pretty close to check_tcp ## The functionality of check_reply has been merged into check_tcp # 'check_squid' command definition define command{ command_name check_squid command_line $USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$ -u $ARG2$ -e 'HTTP/1.0 200 OK' } # 'check_icmp' command definition -- check_icmp must be owned by root # and SUID bit must be set. define command{ command_name check_icmp command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ } ## Check if the IMAP service is alive (default port=143) # 'check_imap' command definition define command{ command_name check_imap command_line $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$ } ## Check if the IMAP-SSL service is alive (default port=993) # 'check_simap' command definition define command{ command_name check_simap command_line $USER1$/check_simap -H $HOSTADDRESS$ -p 993 $ARG1$ } ## Check if the JABBER service is alive (default port=5222) # 'check_jabber' command definition define command{ command_name check_jabber command_line $USER1$/check_jabber -H $HOSTADDRESS$ $ARG1$ } ## Check if the NNTP (news) service is alive (default port=119) # 'check_nntp' command definition define command{ command_name check_nntp command_line $USER1$/check_nntp -H $HOSTADDRESS$ $ARG1$ } ## Check if the NNTP-SSL (news) service is alive (default port=563) # 'check_nntps' command definition define command{ command_name check_nntps command_line $USER1$/check_nntps -H $HOSTADDRESS$ $ARG1$ } # This plugin collects data from the NSClient service running on a # Windows NT/2000/XP/2003 server. # 'check_nt' command definition define command{ command_name check_nt command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ } ## This plugin checks the selected ntp server # 'check_ntp' command definition define command{ command_name check_ntp command_line $USER1$/check_ntp -H $HOSTADDRESS$ } #%nagios_plugdir/check_ntp_peer -- not work, need to be debuged ## This plugin checks the clock offset between the local host and a ## remote NTP server. It is independent of any commandline programs or ## external libraries. # 'check_ntp_time' command definition define command{ command_name check_ntp_time command_line $USER1$/check_ntp_time -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2 $ARG3$ } ## NetWare checks via check_nwstat ( see "check_nwstat -h" for more options). ## This plugin attempts to contact the MRTGEXT NLM running on a Novell server ## to gather the requested system information. # how many current logins # 'check_netware_logins' command definition define command{ command_name check_netware_logins command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v "LOGINS" -w $ARG1$ -c $ARG2$ } # how many current connections # 'check_nwstat_conns' command definition define command{ command_name check_nwstat_conns command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v CONNS -w $ARG1$ -c $ARG2$ } # 1 minute avg cpu load # 'check_netware_1load' command definition define command{ command_name check_netware_1load command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v "LOAD1" -w 70 -c 90 } # 5 minute avg cpu load # 'check_netware_5load' command definition define command{ command_name check_netware_5load command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v "LOAD5" -w 70 -c 90 } # 15 minute avg cpu load # 'check_netware_15load' command definition define command{ command_name check_netware_15load command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v "LOAD15" -w 70 -c 90 } # Disk volume (% free) # 'check_nwstat_vol_p' command definition define command{ command_name check_nwstat_vol_p command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v VPF$ARG1$ -w $ARG2$ -c $ARG3$ } # Disk volume (KB free) # 'check_nwstat_vol_k' command definition define command{ command_name check_nwstat_vol_k command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v VKF$ARG1$ -w $ARG2$ -c $ARG3$ } # % Long term cache hits # 'check_nwstat_ltch' command definition define command{ command_name check_nwstat_ltch command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v LTCH -w $ARG1$ -c $ARG2$ } # % (of max) used packet receive buffers # 'check_nwstat_puprb' command definition define command{ command_name check_nwstat_puprb command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v PUPRB -w $ARG1$ -c $ARG2$ } # Check to see if the DS database is open # 'check_nwstat_dsdb' command definition define command{ command_name check_nwstat_dsdb command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v DSDB } # Netware 5 abends # 'check_netware_abend' command definition define command{ command_name check_netware_abend command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v "ABENDS" -w 10 -c 30 } # Netware 5 number of current service procs # 'check_nwstat_csprocs' command definition define command{ command_name check_nwstat_csprocs command_line $USER1$/check_nwstat -H $HOSTADDRESS$ -v CSPROCS -w $ARG1$ -c $ARG2$ } ## This plugin attempts to contact the Over-CR collector daemon running on the ## remote UNIX server in order to gather the requested system information. # 'check_overcr' command definition define command{ command_name check_overcr command_line $USER1$/check_overcr -H $HOSTADDRESS$ -p 2000 -w $ARG1$ -c $ARG2$ -v $ARG3$ } ## Check if the POP3 service is alive (default port=110) # 'check_pop' command definition define command{ command_name check_pop command_line $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$ } ## Check if the POP3-SSL service is alive (default port=993) # 'check_simap' command definition define command{ command_name check_spop command_line $USER1$/check_simap -H $HOSTADDRESS$ -p 995 $ARG1$ } ## Check RealAudio url # 'check_real_url' command definition define command{ command_name check_real_url command_line $USER1$/check_real $HOSTADDRESS$ -p $ARG1$ -wt $ARG2$ -ct $ARG3$ -to 5 -u $ARG4$ } ## Check RealAudio server response # 'check_real' command definition define command{ command_name check_real command_line $USER1$/check_real $HOSTADDRESS$ -p $ARG1$ -wt $ARG2$ -ct $ARG3$ -to 5 } ## Check if the SMTP service is alive (default port=25) # 'check_smtp' command definition define command{ command_name check_smtp command_line $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$ } ## Check if the SMTP-SSL service is alive (default port=465) # 'check_ssmtp' command definition define command{ command_name check_ssmtp command_line $USER1$/check_ssmtp -H $HOSTADDRESS$ $ARG1$ } ## Check if the SSH service is alive (default port=22) # 'check_ssh' command definition define command{ command_name check_ssh command_line $USER1$/check_ssh -H $HOSTADDRESS$ $ARG1$ } # This plugin tests TCP connections with the specified host. # 'check_tcp' command definition define command{ command_name check_tcp command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ } ## This plugin will check the time on the specified host via time service ## (tcp/udp port 37). # 'check_time' command definition define command{ command_name check_time command_line $USER1$/check_timr -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ } ## This plugin tests UDP connections with the specified host. # 'check_udp' command definition define command{ command_name check_udp command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ -w $ARG2$ -c $ARG3$ -s $ARG3$ -e $ARG4$ } ## This plugin tests the UPS service on the specified host. ## Network UPS Tools from www.networkupstools.org must be running on taget ## host for this plugin to work. # 'check_ups' command definition define command{ command_name check_ups command_line $USER1$/check_ups -H $HOSTADDRESS$ -u $ARG1$ }