add ipv4 specific checks and some minor cosmetic fixes
This commit is contained in:
		
							parent
							
								
									e21f5b4966
								
							
						
					
					
						commit
						0795932b01
					
				
					 12 changed files with 153 additions and 3 deletions
				
			
		
							
								
								
									
										8
									
								
								debian/pluginconfig/disk.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								debian/pluginconfig/disk.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								debian/pluginconfig/ftp.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								debian/pluginconfig/ftp.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										34
									
								
								debian/pluginconfig/http.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								debian/pluginconfig/http.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								debian/pluginconfig/ldap.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								debian/pluginconfig/ldap.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										40
									
								
								debian/pluginconfig/mail.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										40
									
								
								debian/pluginconfig/mail.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								debian/pluginconfig/news.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								debian/pluginconfig/news.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								debian/pluginconfig/ntp.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								debian/pluginconfig/ntp.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								debian/pluginconfig/pgsql.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								debian/pluginconfig/pgsql.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								debian/pluginconfig/snmp.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								debian/pluginconfig/snmp.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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$ 
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								debian/pluginconfig/ssh.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								debian/pluginconfig/ssh.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								debian/pluginconfig/tcp_udp.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								debian/pluginconfig/tcp_udp.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								debian/pluginconfig/telnet.cfg
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								debian/pluginconfig/telnet.cfg
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue