[Pkg-nagios-changes] [pkg-nagios-plugins] 58/413: add ipv4 specific checks and some minor cosmetic fixes
Jan Wagner
waja at moszumanska.debian.org
Tue Nov 26 23:13:06 UTC 2013
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-plugins.
commit 0795932b01022e3c738193173b8ce9ad3280b5c8
Author: Jan Wagner <waja at cyconet.org>
Date: Mon Jan 8 08:15:52 2007 +0000
add ipv4 specific checks and some minor cosmetic fixes
---
debian/pluginconfig/disk.cfg | 8 ++++++++
debian/pluginconfig/ftp.cfg | 9 +++++++++
debian/pluginconfig/http.cfg | 34 ++++++++++++++++++++++++++++++++++
debian/pluginconfig/ldap.cfg | 9 +++++++++
debian/pluginconfig/mail.cfg | 40 ++++++++++++++++++++++++++++++++++++++++
debian/pluginconfig/news.cfg | 9 +++++++++
debian/pluginconfig/ntp.cfg | 1 -
debian/pluginconfig/pgsql.cfg | 9 +++++++++
debian/pluginconfig/snmp.cfg | 2 +-
debian/pluginconfig/ssh.cfg | 10 ++++++++++
debian/pluginconfig/tcp_udp.cfg | 16 +++++++++++++++-
debian/pluginconfig/telnet.cfg | 9 +++++++++
12 files changed, 153 insertions(+), 3 deletions(-)
diff --git a/debian/pluginconfig/disk.cfg b/debian/pluginconfig/disk.cfg
index b44961b..6d39d72 100644
--- a/debian/pluginconfig/disk.cfg
+++ b/debian/pluginconfig/disk.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/ftp.cfg b/debian/pluginconfig/ftp.cfg
index 0561823..1e332bc 100644
--- a/debian/pluginconfig/ftp.cfg
+++ b/debian/pluginconfig/ftp.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/http.cfg b/debian/pluginconfig/http.cfg
index 5295328..60e232a 100644
--- a/debian/pluginconfig/http.cfg
+++ b/debian/pluginconfig/http.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/ldap.cfg b/debian/pluginconfig/ldap.cfg
index 764bf26..d0a560f 100644
--- a/debian/pluginconfig/ldap.cfg
+++ b/debian/pluginconfig/ldap.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/mail.cfg b/debian/pluginconfig/mail.cfg
index d080e97..a5059d3 100644
--- a/debian/pluginconfig/mail.cfg
+++ b/debian/pluginconfig/mail.cfg
@@ -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
+}
diff --git a/debian/pluginconfig/news.cfg b/debian/pluginconfig/news.cfg
index 35a58e4..95379bf 100644
--- a/debian/pluginconfig/news.cfg
+++ b/debian/pluginconfig/news.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/ntp.cfg b/debian/pluginconfig/ntp.cfg
index 6994336..e590c7d 100644
--- a/debian/pluginconfig/ntp.cfg
+++ b/debian/pluginconfig/ntp.cfg
@@ -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
diff --git a/debian/pluginconfig/pgsql.cfg b/debian/pluginconfig/pgsql.cfg
index 43e5a2b..16ea208 100644
--- a/debian/pluginconfig/pgsql.cfg
+++ b/debian/pluginconfig/pgsql.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/snmp.cfg b/debian/pluginconfig/snmp.cfg
index eeebf9b..e00aed0 100644
--- a/debian/pluginconfig/snmp.cfg
+++ b/debian/pluginconfig/snmp.cfg
@@ -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$
}
diff --git a/debian/pluginconfig/ssh.cfg b/debian/pluginconfig/ssh.cfg
index 30ca8b3..01b52f2 100644
--- a/debian/pluginconfig/ssh.cfg
+++ b/debian/pluginconfig/ssh.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/tcp_udp.cfg b/debian/pluginconfig/tcp_udp.cfg
index 3edab52..0aa8731 100644
--- a/debian/pluginconfig/tcp_udp.cfg
+++ b/debian/pluginconfig/tcp_udp.cfg
@@ -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
+ }
diff --git a/debian/pluginconfig/telnet.cfg b/debian/pluginconfig/telnet.cfg
index 740835b..2611368 100644
--- a/debian/pluginconfig/telnet.cfg
+++ b/debian/pluginconfig/telnet.cfg
@@ -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
+ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git
More information about the Pkg-nagios-changes
mailing list