[Pkg-nagios-devel] Bug#717229: nagios-plugins-basic: check_ssh returns warning state incorrectly

Kiko Piris menorqui at pirispons.net
Thu Jul 18 08:27:33 UTC 2013


Package: nagios-plugins-basic
Version: 1.4.16-2
Severity: normal

In /etc/nagios-plugins/config/ssh.cfg, check_ssh is called with a second
argument '$ARG1$' which causes the plugin to return this:

Usage:
check_ssh [-46] [-t <timeout>] [-r <remote version>] [-p <port>] <host>

Making nagios believe that the service is in a warning sate.

Removing that second argument (see following trivial patch as an example) makes
check_ssh work as expected:

---8<---
--- /etc/nagios-plugins/config/ssh.cfg~	2013-07-10 15:45:40.000000000 +0200
+++ /etc/nagios-plugins/config/ssh.cfg	2013-07-18 10:18:58.012645689 +0200
@@ -1,7 +1,7 @@
 # 'check_ssh' command definition
 define command{
 	command_name	check_ssh
-	command_line	/usr/lib/nagios/plugins/check_ssh '$HOSTADDRESS$' '$ARG1$'
+	command_line	/usr/lib/nagios/plugins/check_ssh '$HOSTADDRESS$'
 	}

 # 'check_ssh_port' command definition
---<8---


Thanks.

-- 
Kiko



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10.1 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagios-plugins-basic depends on:
ii  iputils-ping           3:20121221-1
ii  libc6                  2.17-7
ii  libssl1.0.0            1.0.1e-3
ii  nagios-plugins-common  1.4.16-2
ii  procps                 1:3.3.8-2
ii  ucf                    3.0027+nmu1

nagios-plugins-basic recommends no packages.

Versions of packages nagios-plugins-basic suggests:
ii  nagios3  3.4.1-4

-- no debconf information



More information about the Pkg-nagios-devel mailing list