Hi Al,

our Nagios/Icinga IPMI is meanwhile available in Gentoo as an ebuild,
just like FreeIPMI is, too:
http://packages.gentoo.org/package/net-analyzer/nagios-check_ipmi_sensor
http://packages.gentoo.org/package/sys-libs/freeipmi

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."
See: http://bugs.gentoo.org/show_bug.cgi?id=367357#c1

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 
IPMICOMMAND="/usr/sbin/ipmimonitoring"
        elif [ -x "/usr/bin/ipmimonitoring" ]; then 
IPMICOMMAND="/usr/bin/ipmimonitoring"
        elif [ -x "/usr/local/sbin/ipmimonitoring" ]; then 
IPMICOMMAND="/usr/local/sbin/ipmimonitoring"
        fi

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

-- 
: Werner Fischer
: Technology Specialist
: Thomas-Krenn.AG | The server-experts
: http://www.thomas-krenn.com | http://www.thomas-krenn.com/wiki


_______________________________________________
Freeipmi-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to