Public bug reported: Binary package hint: nagios-plugins-basic
Nagios plugin check_by_ssh doesn't work as expected in passive mode. The output file is created, but not populated, same check in active mode completes successfully. Same exact check executed by a newer version of the plugin, built from source, populates the output file with the result of the check as expected. 1) The release of Ubuntu, via 'lsb_release -rd': Description: Ubuntu 8.04.2 Release: 8.04 2) The version of the package, via 'apt-cache policy nagios-plugins-basic': nagios-plugins-basic: Installed: 1.4.11-1ubuntu5 Candidate: 1.4.11-1ubuntu5 Version table: *** 1.4.11-1ubuntu5 0 500 http://ca.archive.ubuntu.com hardy/main Packages 100 /var/lib/dpkg/status 3) What I expect to happen: When check_by_ssh is ran in passive mode, it should output the result of the remote check command to the explicitly specified output file. This result should already be in passive check result format (see below) so it can be easily appended to Nagios external command file. Here's an example: $ ./check_by_ssh -H remotehost -n testhost -s apt -C "/usr/lib/nagios/plugins/check_apt" -O /tmp/result $ cat /tmp/result [1242858973] PROCESS_SERVICE_CHECK_RESULT;testhost;apt;0;APT OK: 0 packages available for upgrade (0 critical updates). I was able to achieve the desired behaviour by running newer version of the check_by_ssh plugin, which I manually complied from official 1.4.13 source package. 4) What happened instead: When I ran the latest binary Hardy (i386) version of the plugin $ ./check_by_ssh -H remotehost -n testhost -s apt -C "/usr/lib/nagios/plugins/check_apt" -O /tmp/result APT OK: 0 packages available for upgrade (0 critical updates). $ The active check result was printed to stdout, but nothing was printed to /tmp/result. It's almost as if plugin is executing in active, rather than passive mode. Not sure if it matters, but I'm running Ubuntu JeOS as VMware gues OS. I believe this is the source package for this binary package: https://launchpad.net/ubuntu/hardy/+source/nagios-plugins/1.4.11-1ubuntu5 ** Affects: nagios-plugins (Ubuntu) Importance: Undecided Status: New ** Tags: nagios nagios-plugins passive plugin -- check_by_ssh does not populate output file in passive mode https://bugs.launchpad.net/bugs/379093 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nagios-plugins in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs