[Pkg-nagios-devel] Bug#661528: /etc/nagios-plugins/config/ipmi_sensor.cfg: Duplicate definition found for command 'check_ipmi_sensor'

Florian Ernst florian_ernst at gmx.net
Mon Feb 27 20:44:29 UTC 2012


Package: nagios-plugins-contrib
Version: 1.20120220
Severity: grave
File: /etc/nagios-plugins/config/ipmi_sensor.cfg
Tags: patch
Justification: renders package unusable

Hello there,

the default ipmi_sensor.cfg ships a duplicate definition for
check_ipmi_sensor which causes icinga to fail:

| Processing object config file '/etc/nagios-plugins/config/ipmi_sensor.cfg'...
| Warning: Duplicate definition found for command 'check_ipmi_sensor' (config file '/etc/nagios-plugins/config/ipmi_sensor.cfg', starting on line 15)
| Error: Could not add object property in file '/etc/nagios-plugins/config/ipmi_sensor.cfg' on line 16.
|    Error processing object config files!
| [...]
| ***> One or more problems was encountered while processing the config files...
| 
|      Check your configuration file(s) to ensure that they contain valid
|      directives and data definitions.  If you are upgrading from a previous
|      version of Icinga, you should be aware that some variables/definitions
|      may have been removed or modified in this version.  Make sure to read
|      the HTML documentation regarding the config files, as well as the
|      'Whats New' section to find out what has changed.
| 
| errors in config! ... failed!
|  failed!

So, merely by installing this package, I couldn't start my monitoring
setup anymore without modifying this file. Of course that can be easily
fixed, but the package as shipped breaks other software.

Cheers,
Flo

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

nagios-plugins-contrib depends on no packages.

Versions of packages nagios-plugins-contrib recommends:
ii  freeipmi-tools           <none>
ii  libc6                    2.13-26
ii  libio-socket-ssl-perl    1.54-1
ii  libmail-imapclient-perl  <none>
ii  libmemcached9            <none>
ii  libnagios-plugin-perl    0.36-1
ii  libnet-dns-perl          0.66-2+b2
ii  libnet-smtp-tls-perl     0.12-1
ii  libnet-ssleay-perl       1.42-1+b1
ii  libreadonly-perl         1.03-3

Versions of packages nagios-plugins-contrib suggests:
pn  cciss-vol-status  <none>
pn  mpt-status        <none>

-- Configuration Files:
/etc/nagios-plugins/config/ipmi_sensor.cfg changed:
define command{
        command_name    check_ipmi_sensor
        command_line    /usr/lib/nagios/plugins/check_ipmi_sensor -H $_HOSTIPMI_IP$ -f $ARG1$
}
define command{
        command_name    check_ipmi_sensor_exclude
        command_line    /usr/lib/nagios/plugins/check_ipmi_sensor -H $_HOSTIPMI_IP$ -f $ARG1$ -x $ARG2$
}


-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: duplicate_check_ipmi_sensor.diff
Type: text/x-diff
Size: 706 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20120227/762c27ee/attachment.diff>


More information about the Pkg-nagios-devel mailing list