Ad Widget

Collapse

IPMI Help...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JSylvia007
    Junior Member
    • Sep 2007
    • 29

    #1

    IPMI Help...

    Howdy all...

    I'm running Zabbix 3.0.4 on Ubuntu 16.04.1.

    Here's my dilema. For some reason, I can't get OpenIPMI to work reliably within zabbix on my Supermicro box.

    Normally, I'd setup a local IPMITOOL command and just have Zabbix read that in with a User Parameter. I can't do that this time, because the host I need to get the data from isn't the same that is providing the data.

    The IPMI data needs to come from my ESXi host, which can't run a client, but my zabbix server (which is a guest) can read the data just fine with IPMITOOL.

    Is there a way I can get the data with IPMITOOL on the Zabbix Server, and apply it to the other host (ESXi Host)??

    Any help would be appreciated. I guess I'm also open to getting OpenIPMI running too, but I've been trying that for a week now with little hope.
  • JSylvia007
    Junior Member
    • Sep 2007
    • 29

    #2
    So... I solved this myself using SSH checks...

    Basically, I created a cron job on the ESXi host:

    I added the below line into the cron (/var/spool/cron/crontabs/root):

    Code:
    #Added for Zabbix
    *    *    *   *   *   rm -f /vmfs/volumes/Local\ SSD\ Storage/stats.txt && /bin/esxcli hardware ipmi sdr list > /vmfs/volumes/Local\ SSD\ Storage/stats.txt
    Once you add it, you need to kill and restart crond:

    Kill:

    Code:
    kill `cat /var/run/crond.pid`
    Restart:

    Code:
    /usr/lib/vmware/busybox/bin/busybox crond
    Then I added SSH items for everything I cared about... Here's an example that I used to get CPU Temp...

    Code:
    cat /vmfs/volumes/Local\ SSD\ Storage/stats.txt | grep 'CPU2 Temp' | awk -F '[[:space:]][[:space:]]+' '{print $4}'

    Now, you may ask, why not just SSH in directly and query the esxicli each time... For some reason on ESXi 6.0 U2, it crashes the hostd daemon, so that's why I have the cronjob generating the file.
    Last edited by JSylvia007; 10-08-2016, 19:16. Reason: Added some more detail...

    Comment

    Working...