From 34404ee1044acc246150b69bed640f95819299e7 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Tue, 9 Jul 2013 21:31:05 +0000 Subject: [PATCH] add additional argument to a couple of command definitions to be more flexible --- debian/changelog | 14 +++++++++++++ debian/pluginconfig/dhcp.cfg | 4 ++-- debian/pluginconfig/dns.cfg | 4 ++-- debian/pluginconfig/ftp.cfg | 4 ++-- debian/pluginconfig/http.cfg | 36 ++++++++++++++++----------------- debian/pluginconfig/mail.cfg | 24 +++++++++++----------- debian/pluginconfig/mysql.cfg | 8 ++++---- debian/pluginconfig/news.cfg | 4 ++-- debian/pluginconfig/ntp.cfg | 6 +++--- debian/pluginconfig/pgsql.cfg | 4 ++-- debian/pluginconfig/procs.cfg | 4 ++-- debian/pluginconfig/ssh.cfg | 8 ++++---- debian/pluginconfig/tcp_udp.cfg | 8 ++++---- debian/pluginconfig/telnet.cfg | 4 ++-- 14 files changed, 73 insertions(+), 59 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6f28d4d..fe1c336 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,20 @@ nagios-plugins (1.4.16-2) UNRELEASED; urgency=low (Closes: #708343) * Fixing NULL pointer dereference in check_nt (Closes: #714281), thanks to Vaclav Ovsik + * Add additional arguments to command definitions in (Closes: #709297): + - dhcp.cfg + - dns.cfg + - ftp.cfg + - http.cfg + - mail.cfg + - mysql.cfg + - news.cfg + - ntp.cfg + - pgsql.cfg + - procs.cfg + - ssh.cfg + - tcp_udp.cfg + - telnet.cfg -- Jan Wagner Wed, 27 Jun 2012 23:14:40 +0200 diff --git a/debian/pluginconfig/dhcp.cfg b/debian/pluginconfig/dhcp.cfg index 4798d43..a6c0c02 100644 --- a/debian/pluginconfig/dhcp.cfg +++ b/debian/pluginconfig/dhcp.cfg @@ -4,12 +4,12 @@ # 'check_dhcp' command definition define command{ command_name check_dhcp - command_line /usr/lib/nagios/plugins/check_dhcp -s '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_dhcp -s '$HOSTADDRESS$' '$ARG1$' } # 'check_dhcp_interface' command definition define command{ command_name check_dhcp_interface - command_line /usr/lib/nagios/plugins/check_dhcp -s '$HOSTADDRESS$' -i '$ARG1$' + command_line /usr/lib/nagios/plugins/check_dhcp -s '$HOSTADDRESS$' -i '$ARG1$' '$ARG2$' } diff --git a/debian/pluginconfig/dns.cfg b/debian/pluginconfig/dns.cfg index bdc169b..d2363bf 100644 --- a/debian/pluginconfig/dns.cfg +++ b/debian/pluginconfig/dns.cfg @@ -1,11 +1,11 @@ # 'check_dns' command definition define command{ command_name check_dns - command_line /usr/lib/nagios/plugins/check_dns -H www.google.com -s '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_dns -H www.google.com -s '$HOSTADDRESS$' '$ARG1$' } # 'check_dig' command definition define command{ command_name check_dig - command_line /usr/lib/nagios/plugins/check_dig -H '$HOSTADDRESS$' -l '$ARG1$' + command_line /usr/lib/nagios/plugins/check_dig -H '$HOSTADDRESS$' -l '$ARG1$' '$ARG2$' } diff --git a/debian/pluginconfig/ftp.cfg b/debian/pluginconfig/ftp.cfg index d027c0f..79bf2fd 100644 --- a/debian/pluginconfig/ftp.cfg +++ b/debian/pluginconfig/ftp.cfg @@ -1,7 +1,7 @@ # 'check_ftp' command definition define command{ command_name check_ftp - command_line /usr/lib/nagios/plugins/check_ftp -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ftp -H '$HOSTADDRESS$' '$ARG1$' } #### @@ -11,5 +11,5 @@ define command{ # 'check_ftp_4' command definition define command{ command_name check_ftp_4 - command_line /usr/lib/nagios/plugins/check_ftp -H '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_ftp -H '$HOSTADDRESS$' -4 '$ARG1$' } diff --git a/debian/pluginconfig/http.cfg b/debian/pluginconfig/http.cfg index acb1ada..9990066 100644 --- a/debian/pluginconfig/http.cfg +++ b/debian/pluginconfig/http.cfg @@ -1,55 +1,55 @@ # 'check_http' command definition define command{ command_name check_http - command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' '$ARG1$' } # 'check_http_hostname' command definition define command{ command_name check_httpname - command_line /usr/lib/nagios/plugins/check_http -H '$HOSTNAME$' -I '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTNAME$' -I '$HOSTADDRESS$' '$ARG1$' } # 'check_http2' command definition define command{ command_name check_http2 - command_line /usr/lib/nagios/plugins/check_http -H '$ARG1$' -I '$HOSTADDRESS$' -w '$ARG2$' -c '$ARG3$' + command_line /usr/lib/nagios/plugins/check_http -H '$ARG1$' -I '$HOSTADDRESS$' -w '$ARG2$' -c '$ARG3$' '$ARG4$' } # 'check_squid' command definition define command{ command_name check_squid - command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -p '$ARG1$' -u '$ARG2$' -e 'HTTP/1.0 200 OK' + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -p '$ARG1$' -u '$ARG2$' -e 'HTTP/1.0 200 OK' '$ARG3$' } # 'check_https' command definition define command{ command_name check_https - command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' '$ARG1$' } # 'check_https_hostname' command definition define command{ command_name check_https_hostname - command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' '$ARG1$' } # 'check_https_auth' command definition define command{ command_name check_https_auth - command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$' + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$' '$ARG2$' } # 'check_https_auth_hostname' command definition define command{ command_name check_https_auth_hostname - command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' -a '$ARG1$' + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' -a '$ARG1$' '$ARG2$' } # 'check_cups' command definition define command{ command_name check_cups - command_line /usr/lib/nagios/plugins/check_http -I '$HOSTADDRESS$' -p 631 + command_line /usr/lib/nagios/plugins/check_http -I '$HOSTADDRESS$' -p 631 '$ARG1$' } #### @@ -59,53 +59,53 @@ define command{ # '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 + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -4 '$ARG1$' } # 'check_http_hostname_4' command definition define command{ command_name check_httpname_4 - command_line /usr/lib/nagios/plugins/check_http -H '$HOSTNAME$' -I '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTNAME$' -I '$HOSTADDRESS$' -4 '$ARG1$' } # '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 + command_line /usr/lib/nagios/plugins/check_http -H '$ARG1$' -I '$HOSTADDRESS$' -w '$ARG2$' -c '$ARG3$' -4 '$ARG4$' } # '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 + command_line /usr/lib/nagios/plugins/check_http -H '$HOSTADDRESS$' -p '$ARG1$' -u '$ARG2$' -e 'HTTP/1.0 200 OK' -4 '$ARG3$' } # '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 + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -4 '$ARG1$' } # 'check_https_hostname_4' command definition define command{ command_name check_https_hostname_4 - command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME$' -I '$HOSTADDRESS$' -4 '$ARG1$' } # '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 + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -a '$ARG1$' -4 '$ARG2$' } # 'check_https_auth_hostname_4' command definition define command{ command_name check_https_auth_hostname_4 - command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME' -I '$HOSTADDRESS$' -a '$ARG1$' -4 + command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTNAME' -I '$HOSTADDRESS$' -a '$ARG1$' -4 '$ARG2$' } # 'check_cups_4' command definition define command{ command_name check_cups_4 - command_line /usr/lib/nagios/plugins/check_http -I '$HOSTADDRESS$' -p 631 -4 + command_line /usr/lib/nagios/plugins/check_http -I '$HOSTADDRESS$' -p 631 -4 '$ARG1$' } diff --git a/debian/pluginconfig/mail.cfg b/debian/pluginconfig/mail.cfg index b9739f2..1da8050 100644 --- a/debian/pluginconfig/mail.cfg +++ b/debian/pluginconfig/mail.cfg @@ -1,39 +1,39 @@ # 'check_pop' command definition define command { command_name check_pop - command_line /usr/lib/nagios/plugins/check_pop -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_pop -H '$HOSTADDRESS$' '$ARG1$' } # 'check_smtp' command definition define command { command_name check_smtp - command_line /usr/lib/nagios/plugins/check_smtp -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_smtp -H '$HOSTADDRESS$' '$ARG1$' } # 'check_ssmtp' command definition define command { command_name check_ssmtp - command_line /usr/lib/nagios/plugins/check_ssmtp -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ssmtp -H '$HOSTADDRESS$' '$ARG1$' } # 'check_imap' command definition define command { command_name check_imap - command_line /usr/lib/nagios/plugins/check_imap -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_imap -H '$HOSTADDRESS$' '$ARG1$' } # 'check_spop' command definition define command { command_name check_spop - command_line /usr/lib/nagios/plugins/check_pop -p 995 -H '$HOSTADDRESS$' -S + command_line /usr/lib/nagios/plugins/check_pop -p 995 -H '$HOSTADDRESS$' -S '$ARG1$' } # 'check_simap' command definition define command { command_name check_simap - command_line /usr/lib/nagios/plugins/check_imap -p 993 -H '$HOSTADDRESS$' -S + command_line /usr/lib/nagios/plugins/check_imap -p 993 -H '$HOSTADDRESS$' -S '$ARG1$' } #### @@ -43,35 +43,35 @@ define command { # 'check_pop_4' command definition define command { command_name check_pop_4 - command_line /usr/lib/nagios/plugins/check_pop -H '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_pop -H '$HOSTADDRESS$' -4 '$ARG1$' } # 'check_smtp_4' command definition define command { command_name check_smtp_4 - command_line /usr/lib/nagios/plugins/check_smtp -H '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_smtp -H '$HOSTADDRESS$' -4 '$ARG1$' } # 'check_ssmtp_4' command definition define command { command_name check_ssmtp_4 - command_line /usr/lib/nagios/plugins/check_ssmtp -H '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_ssmtp -H '$HOSTADDRESS$' -4 '$ARG1$' } # 'check_imap_4' command definition define command { command_name check_imap_4 - command_line /usr/lib/nagios/plugins/check_imap -H '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_imap -H '$HOSTADDRESS$' -4 '$ARG1$' } # '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 + command_line /usr/lib/nagios/plugins/check_pop -p 995 -H '$HOSTADDRESS$' -S -4 '$ARG1$' } # '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 + command_line /usr/lib/nagios/plugins/check_imap -p 993 -H '$HOSTADDRESS$' -S -4 '$ARG1$' } diff --git a/debian/pluginconfig/mysql.cfg b/debian/pluginconfig/mysql.cfg index a64cf17..e8c8a65 100644 --- a/debian/pluginconfig/mysql.cfg +++ b/debian/pluginconfig/mysql.cfg @@ -1,24 +1,24 @@ # 'check_mysql' command definition define command{ command_name check_mysql - command_line /usr/lib/nagios/plugins/check_mysql -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_mysql -H '$HOSTADDRESS$' '$ARG1$' } # 'check_mysql_cmdlinecred' command definition define command{ command_name check_mysql_cmdlinecred - command_line /usr/lib/nagios/plugins/check_mysql -H '$HOSTADDRESS$' -u '$ARG1$' -p '$ARG2$' + command_line /usr/lib/nagios/plugins/check_mysql -H '$HOSTADDRESS$' -u '$ARG1$' -p '$ARG2$' '$ARG3$' } # 'check_mysql_database' command definition define command{ command_name check_mysql_database - command_line /usr/lib/nagios/plugins/check_mysql -d '$ARG3$' -H '$HOSTADDRESS$' -u '$ARG1$' -p '$ARG2$' + command_line /usr/lib/nagios/plugins/check_mysql -d '$ARG3$' -H '$HOSTADDRESS$' -u '$ARG1$' -p '$ARG2$' '$ARG3$' } # 'check_mysql_slave' command definition define command{ command_name check_mysql_slave - command_line /usr/lib/nagios/plugins/check_mysql -H '$HOSTADDRESS$' -u '$ARG1$' -p '$ARG2$' -S + command_line /usr/lib/nagios/plugins/check_mysql -H '$HOSTADDRESS$' -u '$ARG1$' -p '$ARG2$' -S '$ARG3$' } diff --git a/debian/pluginconfig/news.cfg b/debian/pluginconfig/news.cfg index 2472f70..065b395 100644 --- a/debian/pluginconfig/news.cfg +++ b/debian/pluginconfig/news.cfg @@ -1,7 +1,7 @@ # 'check_nntp' command definition define command{ command_name check_nntp - command_line /usr/lib/nagios/plugins/check_nntp -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_nntp -H '$HOSTADDRESS$' '$ARG1$' } #### @@ -11,5 +11,5 @@ define command{ # 'check_nntp_4' command definition define command{ command_name check_nntp_4 - command_line /usr/lib/nagios/plugins/check_nntp -H '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_nntp -H '$HOSTADDRESS$' -4 '$ARG1$' } diff --git a/debian/pluginconfig/ntp.cfg b/debian/pluginconfig/ntp.cfg index 3cd6e6b..8668718 100644 --- a/debian/pluginconfig/ntp.cfg +++ b/debian/pluginconfig/ntp.cfg @@ -1,17 +1,17 @@ # 'check_ntp' command definition define command{ command_name check_ntp - command_line /usr/lib/nagios/plugins/check_ntp_peer -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ntp_peer -H '$HOSTADDRESS$' '$ARG1$' } # 'check_ntp_ntpq' command definition define command{ command_name check_ntp_ntpq - command_line /usr/lib/nagios/plugins/check_ntp_peer -H '$HOSTADDRESS$' -j 10 -k 15 + command_line /usr/lib/nagios/plugins/check_ntp_peer -H '$HOSTADDRESS$' -j 10 -k 15 '$ARG1$' } # 'check_time' command definition define command{ command_name check_time - command_line /usr/lib/nagios/plugins/check_time -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_time -H '$HOSTADDRESS$' '$ARG1$' } diff --git a/debian/pluginconfig/pgsql.cfg b/debian/pluginconfig/pgsql.cfg index d7213f9..5c7f87c 100644 --- a/debian/pluginconfig/pgsql.cfg +++ b/debian/pluginconfig/pgsql.cfg @@ -1,7 +1,7 @@ # 'check_pgsql' command definition define command{ command_name check_pgsql - command_line /usr/lib/nagios/plugins/check_pgsql -H '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_pgsql -H '$HOSTADDRESS$' '$ARG1$' } #### @@ -11,5 +11,5 @@ define command{ # 'check_pgsql_4' command definition define command{ command_name check_pgsql_4 - command_line /usr/lib/nagios/plugins/check_pgsql -H '$HOSTADDRESS$' -4 + command_line /usr/lib/nagios/plugins/check_pgsql -H '$HOSTADDRESS$' -4 '$ARG1$' } diff --git a/debian/pluginconfig/procs.cfg b/debian/pluginconfig/procs.cfg index 47158e4..ff8819b 100644 --- a/debian/pluginconfig/procs.cfg +++ b/debian/pluginconfig/procs.cfg @@ -1,14 +1,14 @@ # 'check_procs' command definition define command{ command_name check_procs - command_line /usr/lib/nagios/plugins/check_procs -w '$ARG1$' -c '$ARG2$' + command_line /usr/lib/nagios/plugins/check_procs -w '$ARG1$' -c '$ARG2$' '$ARG3$' } # 'check_procs_zombie' command definition define command{ command_name check_procs_zombie - command_line /usr/lib/nagios/plugins/check_procs -w '$ARG1$' -c '$ARG2$' -s Z + command_line /usr/lib/nagios/plugins/check_procs -w '$ARG1$' -c '$ARG2$' -s Z '$ARG3$' } diff --git a/debian/pluginconfig/ssh.cfg b/debian/pluginconfig/ssh.cfg index 29a6d17..ebb3e49 100644 --- a/debian/pluginconfig/ssh.cfg +++ b/debian/pluginconfig/ssh.cfg @@ -1,13 +1,13 @@ # 'check_ssh' command definition define command{ command_name check_ssh - command_line /usr/lib/nagios/plugins/check_ssh '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ssh '$HOSTADDRESS$' '$ARG1$' } # 'check_ssh_port' command definition define command{ command_name check_ssh_port - command_line /usr/lib/nagios/plugins/check_ssh -p '$ARG1$' '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ssh -p '$ARG1$' '$HOSTADDRESS$' '$ARG2$' } #### @@ -17,11 +17,11 @@ define command{ # 'check_ssh_4' command definition define command{ command_name check_ssh_4 - command_line /usr/lib/nagios/plugins/check_ssh -4 '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ssh -4 '$HOSTADDRESS$' '$ARG1$' } # 'check_ssh_port_4' command definition define command{ command_name check_ssh_port_4 - command_line /usr/lib/nagios/plugins/check_ssh -4 -p '$ARG1$' '$HOSTADDRESS$' + command_line /usr/lib/nagios/plugins/check_ssh -4 -p '$ARG1$' '$HOSTADDRESS$' '$ARG2$' } diff --git a/debian/pluginconfig/tcp_udp.cfg b/debian/pluginconfig/tcp_udp.cfg index 5ccd1c2..140e84c 100644 --- a/debian/pluginconfig/tcp_udp.cfg +++ b/debian/pluginconfig/tcp_udp.cfg @@ -1,13 +1,13 @@ # 'check_tcp' command definition define command{ command_name check_tcp - command_line /usr/lib/nagios/plugins/check_tcp -H '$HOSTADDRESS$' -p '$ARG1$' + command_line /usr/lib/nagios/plugins/check_tcp -H '$HOSTADDRESS$' -p '$ARG1$' '$ARG2$' } # 'check_udp' command definition define command{ command_name check_udp - command_line /usr/lib/nagios/plugins/check_udp -H '$HOSTADDRESS$' -p '$ARG1$' + command_line /usr/lib/nagios/plugins/check_udp -H '$HOSTADDRESS$' -p '$ARG1$' '$ARG2$' } #### @@ -17,11 +17,11 @@ define command{ # '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 + command_line /usr/lib/nagios/plugins/check_tcp -H '$HOSTADDRESS$' -p '$ARG1$' -4 '$ARG2$' } # '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 + command_line /usr/lib/nagios/plugins/check_udp -H '$HOSTADDRESS$' -p '$ARG1$' -4 '$ARG2$' } diff --git a/debian/pluginconfig/telnet.cfg b/debian/pluginconfig/telnet.cfg index d6739d6..a87f842 100644 --- a/debian/pluginconfig/telnet.cfg +++ b/debian/pluginconfig/telnet.cfg @@ -1,7 +1,7 @@ # 'check_telnet' command definition define command{ command_name check_telnet - command_line /usr/lib/nagios/plugins/check_tcp -H '$HOSTADDRESS$' -p 23 + command_line /usr/lib/nagios/plugins/check_tcp -H '$HOSTADDRESS$' -p 23 '$ARG1$' } #### @@ -11,5 +11,5 @@ define command{ # '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 + command_line /usr/lib/nagios/plugins/check_tcp -H '$HOSTADDRESS$' -p 23 -4 '$ARG1$' }