nt.cfg

Bug #595528 reported by Rob
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nagios-plugins (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: nagios3

Executive Summary: check_nt command is setup incorrectly if you intend to fully use the plugin.

In the file /etc/nagios-plugins/config/nt.cfg you find the following:

# 'check_nt' command definition
..........................

The command should read

/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v $ARG1$ $ARG2$

Otherwise you will not be able to fully use the command to search for services. -p should be configured for the default port instead of being included as an ARG. Otherwise you will get several missing -l switches.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nagios3 (not installed)
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
NonfreeKernelModules: wl
Architecture: amd64
Date: Thu Jun 17 10:58:25 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: nagios3

Chuck Short (zulcss)
affects: nagios3 (Ubuntu) → nagios-plugins (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nagios-plugins - 1.4.14-5ubuntu2

---------------
nagios-plugins (1.4.14-5ubuntu2) maverick; urgency=low

  * debian/pluginconfig/nt.cfg: Fix syntax error. (LP: #595528)
 -- Chuck Short <email address hidden> Mon, 21 Jun 2010 08:58:28 -0400

Changed in nagios-plugins (Ubuntu):
status: New → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

Hi, could you please explain a little more on what was wrong with:
# 'check_nt' command definition
define command {
   command_name check_nt
   command_line /usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$'
}

The debian maintainer (Jan Wagner) had this to say:
 | Sorry, I looked into LP #595528. I can't reproduce the problem described
 | there. Defining more option in $ARG1$ works without trouble (since ages).
 | Anyways ... I'm looking the fix you are using:
 | command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -v $ARG1$ -v $ARG2$
 |
 | This seems not to be the solution the reporter proposed and beside that,
 | what if you need more that 2 arguments? This solution doesn't scale that
 | much. So from my point of view, this bug is invalide and even the actual
 | fix doesn't help much!

I'm going to merge sid version 1.4.15-5, and it seems that the right
thing to do is to drop this change that we made here, unless we fully
understand what it fixes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.