[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freeipmi-devel] hardcoded path to ipmi-sensors in ipmimonitoring script

From: Werner Fischer
Subject: [Freeipmi-devel] hardcoded path to ipmi-sensors in ipmimonitoring script caused problems in Gentoo
Date: Fri, 10 Jun 2011 16:27:02 +0200

Hi Al,

our Nagios/Icinga IPMI is meanwhile available in Gentoo as an ebuild,
just like FreeIPMI is, too:

In a bug report for the plugin Rolf Eike Beer mentions that the
hardcoded path to ipmi-sensors in the ipmimonitoring script of FreeIPMI
1.0.4 caused troubles in Gentoo:
        "Additionally the file /usr/sbin/ipmimonitoring in 1.0.4 has a
        hardcoded path to /usr/local/sbin/ipmi-sensors which is
        in /usr/sbin instead."

The ipmimonitoring script has the following last line:
        exec /usr/local/sbin/ipmi-sensors $options

With the plugin I had the same issue regarding setting the location of
ipmimonitoring. I resolved it there with the following part (but the
plugin requires /bin/bash, I'm not sure whether this works also with
other shells in this way...)
        if [ -x "/usr/sbin/ipmimonitoring" ]; then 
        elif [ -x "/usr/bin/ipmimonitoring" ]; then 
        elif [ -x "/usr/local/sbin/ipmimonitoring" ]; then 

Do you see an option how you could modify the ipmimonitoring script so
that it also works when ipmi-sensors is not in /usr/local/sbin/ but
in /usr/sbin instead?

Best regards,

: Werner Fischer
: Technology Specialist
: Thomas-Krenn.AG | The server-experts
: |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]