From 1e3afdf654d044f6cd74e5d04c1f75793e4df368 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 19 May 2008 07:27:37 +0000 Subject: [PATCH] [project @ peter@palfrader.org-20080519072737-thb0gzi4dvqowtuy] Check that sshd versions are the ones shipped with etch and lenny - that check can probably go away again eventually --- checkcommands.cfg | 4 ++++ nagios-master.cfg | 33 +++++++++++++++++++++++++++++---- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/checkcommands.cfg b/checkcommands.cfg index 88cf91f..f009a9e 100644 --- a/checkcommands.cfg +++ b/checkcommands.cfg @@ -36,6 +36,10 @@ define command{ command_name dsa_check_ssh_port command_line /usr/lib/nagios/plugins/check_ssh -t 40 -H $HOSTADDRESS$ -p $ARG1$ } +define command{ + command_name dsa_check_ssh_port_version + command_line /usr/lib/nagios/plugins/check_ssh -t 40 -H $HOSTADDRESS$ -p $ARG1$ -r "$ARG2$" +} define command{ command_name dsa_check_time command_line /usr/lib/nagios/plugins/check_time -w 5 -c 60 -H $HOSTADDRESS$ diff --git a/nagios-master.cfg b/nagios-master.cfg index 4560c01..2f3dc37 100644 --- a/nagios-master.cfg +++ b/nagios-master.cfg @@ -203,12 +203,12 @@ servers: agricola: address: 82.195.75.86 parents: gw-man-da - hostgroups: computers, porterbox, sw-raid, single-cpu + hostgroups: computers, porterbox, sw-raid, single-cpu, lenny contacts: bzed arcadelt: address: 82.195.75.87 parents: gw-man-da - hostgroups: computers, buildd, sw-raid, single-cpu + hostgroups: computers, buildd, sw-raid, single-cpu, lenny contacts: bzed liszt: address: 82.195.75.100 @@ -282,7 +282,7 @@ servers: argento: address: 195.49.152.174 parents: gw-dg-i.net - hostgroups: computers, buildd, sw-raid, single-cpu + hostgroups: computers, buildd, sw-raid, single-cpu, lenny contacts: bzed pergolesi: @@ -365,7 +365,7 @@ servers: allegri: address: 157.193.39.233 parents: gw-HP-ftc - hostgroups: computers, buildd, postfix-hosts, sw-raid, single-cpu + hostgroups: computers, buildd, postfix-hosts, sw-raid, single-cpu, lenny contacts: luk agnesi: @@ -449,6 +449,10 @@ hostgroups: alias: Hosts with only one CPU private: 1 + lenny: + alias: Hosts running lenny, not etch + private: 1 + syslog-ng-hosts: alias: hosts running syslog-ng instead of sysklogd private: 1 @@ -716,6 +720,27 @@ services: check: dsa_check_ssh_port!443 hosts: gluck normal_check_interval: 180 + + - + name: "network service - sshd - version" + check: "dsa_check_ssh_port_version!22!OpenSSH_4.3p2 Debian-9etch2" + depends: network service - sshd + hostgroups: computers, deadslow + excludehosts: agnesi + excludehostgroups: lenny + normal_check_interval: 360 + - + name: "network service - sshd - version" + check: "dsa_check_ssh_port_version!22!OpenSSH_4.7p1 Debian-9" + depends: network service - sshd + hostgroups: lenny + normal_check_interval: 360 + - + name: "network service - sshd - version - 2260" + check: "dsa_check_ssh_port_version!2260!OpenSSH_4.3p2 Debian-9etch2" + depends: network service - sshd - 2260 + hosts: agnesi + normal_check_interval: 360 #### - name: network service - nrpe -- 2.20.1