add ipv4 specific checks and some minor cosmetic fixes

This commit is contained in:
Jan Wagner 2007-01-08 08:15:52 +00:00
parent e21f5b4966
commit 0795932b01
12 changed files with 153 additions and 3 deletions

View file

@ -16,4 +16,12 @@ define command{
command_line /usr/lib/nagios/plugins/check_by_ssh -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$'
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'ssh_disk_4' command definition
define command{
command_name ssh_disk_4
command_line /usr/lib/nagios/plugins/check_by_ssh -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$' -4
}

View file

@ -4,3 +4,12 @@ define command{
command_line /usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_ftp_4' command definition
define command{
command_name check_ftp_4
command_line /usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$ -4
}

View file

@ -29,3 +29,37 @@ define command{
command_line /usr/lib/nagios/plugins/check_http --ssl -H $HOSTADDRESS$ -I $HOSTADDRESS$ -a $ARG1$
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_http_4' command definition
define command{
command_name check_http_4
command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$ -4
}
# 'check_http2_4' command definition
define command{
command_name check_http2_4
command_line /usr/lib/nagios/plugins/check_http -H $ARG1$ -I $HOSTADDRESS$ -w $ARG2$ -c $ARG3$ -4
}
# 'check_squid_4' command definition
define command{
command_name check_squid_4
command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -p $ARG1$ -u $ARG2$ -e 'HTTP/1.0 200 OK' -4
}
# 'check_https_4' command definition
define command{
command_name check_https_4
command_line /usr/lib/nagios/plugins/check_http --ssl -H $HOSTADDRESS$ -I $HOSTADDRESS$ -4
}
# 'check_https_auth_4' command definition
define command{
command_name check_https_auth_4
command_line /usr/lib/nagios/plugins/check_http --ssl -H $HOSTADDRESS$ -I $HOSTADDRESS$ -a $ARG1$ -4
}

View file

@ -4,3 +4,12 @@ define command{
command_line /usr/lib/nagios/plugins/check_ldap -H $HOSTADDRESS$ -b $ARG1$
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_ldap_4' command definition
define command{
command_name check_ldap_4
command_line /usr/lib/nagios/plugins/check_ldap -H $HOSTADDRESS$ -b $ARG1$ -4
}

View file

@ -59,3 +59,43 @@ define command {
command_name check_mailq_qmail
command_line /usr/lib/nagios/plugins/check_mailq -w $ARG1$ -c $ARG2$ -M qmail
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_pop_4' command definition
define command {
command_name check_pop_4
command_line /usr/lib/nagios/plugins/check_pop -H $HOSTADDRESS$ -4
}
# 'check_smtp_4' command definition
define command {
command_name check_smtp_4
command_line /usr/lib/nagios/plugins/check_smtp -H $HOSTADDRESS$ -4
}
# 'check_ssmtp_4' command definition
define command {
command_name check_ssmtp_4
command_line /usr/lib/nagios/plugins/check_ssmtp -H $HOSTADDRESS$ -4
}
# 'check_imap_4' command definition
define command {
command_name check_imap_4
command_line /usr/lib/nagios/plugins/check_imap -H $HOSTADDRESS$ -4
}
# 'check_spop_4' command definition
define command {
command_name check_spop_4
command_line /usr/lib/nagios/plugins/check_pop -p 995 -H $HOSTADDRESS$ -S -4
}
# 'check_simap_4' command definition
define command {
command_name check_simap_4
command_line /usr/lib/nagios/plugins/check_imap -p 993 -H $HOSTADDRESS$ -S -4
}

View file

@ -4,3 +4,12 @@ define command{
command_line /usr/lib/nagios/plugins/check_nntp -H $HOSTADDRESS$
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_nntp_4' command definition
define command{
command_name check_nntp_4
command_line /usr/lib/nagios/plugins/check_nntp -H $HOSTADDRESS$ -4
}

View file

@ -4,7 +4,6 @@ define command{
command_line /usr/lib/nagios/plugins/check_ntp -H $HOSTADDRESS$
}
# 'check_ntp_ntpq' command definition
define command{
command_name check_ntp_ntpq

View file

@ -4,3 +4,12 @@ define command{
command_line /usr/lib/nagios/plugins/check_pgsql -H $HOSTADDRESS$
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_pgsql_4' command definition
define command{
command_name check_pgsql_4
command_line /usr/lib/nagios/plugins/check_pgsql -H $HOSTADDRESS$ -4
}

View file

@ -106,7 +106,7 @@ define command{
# 'check_snmp_bgpstate' command definition
define command{
command_name check_snmp_bgpstate
command_line /usr/lib/nagios/plugins/check_bgpstate -H $HOSTADDRESS$ -C public
command_line /usr/lib/nagios/plugins/check_bgpstate -H $HOSTADDRESS$ -C $ARG1$
}

View file

@ -3,3 +3,13 @@ define command{
command_name check_ssh
command_line /usr/lib/nagios/plugins/check_ssh $HOSTADDRESS$
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_ssh_4' command definition
define command{
command_name check_ssh_4
command_line /usr/lib/nagios/plugins/check_ssh $HOSTADDRESS$ -4
}

View file

@ -4,10 +4,24 @@ define command{
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p $ARG1$
}
# 'check_udp' command definition
define command{
command_name check_udp
command_line /usr/lib/nagios/plugins/check_udp -H $HOSTADDRESS$ -p $ARG1$
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_tcp_4' command definition
define command{
command_name check_tcp_4
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p $ARG1$ -4
}
# 'check_udp_4' command definition
define command{
command_name check_udp_4
command_line /usr/lib/nagios/plugins/check_udp -H $HOSTADDRESS$ -p $ARG1$ -4
}

View file

@ -4,3 +4,12 @@ define command{
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p 23
}
####
# use these checks, if you want to test IPv4 connectivity on IPv6 enabled systems
####
# 'check_telnet_4' command definition
define command{
command_name check_telnet_4
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p 23 -4
}