Page 1 of 1

IPMI plugin not working

Posted: Mon Oct 16, 2023 1:21 pm
by justauser2
I'm setting up Nagios Core 4 on Cent 9 to monitor about 600 clients over IPMI and am having some trouble getting it talking to the machines.
The server itself is up and monitoring our switches and I need it to talk to my Supermicro servers over IPMI. I'm using this plugin https://www.thomas-krenn.com/en/wiki/IP ... jectvars-1
FreeIPMI is installed and configured and it's looking for the CFG here /usr/local/nagios/etc/ipmi-config/ipmi.cfg


Following the instructions I set it up like this:
/usr/local/nagios/etc/commands.cfg
define command{
command_name check_ipmi_sensor
command_line $USER1$/check_ipmi_sensor -H $_HOSTIPMI_IP$ -f $ARG1$
}

/usr/local/nagios/etc/hosts.cfg
define host{
use linux-server
host_name hostname
alias hostname
address x.x.x.x
_ipmi_ip x.x.x.x
}

/usr/local/nagios/etc/services.cfg
define service{
use generic-service
host_name centos4
service_description IPMI
check_command check_ipmi_sensor!/etc/ipmi-config/ipmi.cfg
}

If I manually run ./check_ipmi_sensor it will talk to the host and return all appropriate sensor information but Nagios doesn't even attempt to contact the client machines.
There's nothing in the logs about a communication attempt much less failure, what am I missing?

Thanks!

Re: IPMI plugin not working

Posted: Tue Oct 17, 2023 4:13 pm
by justauser2
I was able to answer my own question.
Copied the check_ipmi_sensor to the plugins folder, created the hosts and service file and it works.

Now I need to filter out the sensors I don't want to monitor but there doesn't seem to be a lot of documentation on this

Re: IPMI plugin not working

Posted: Thu Oct 19, 2023 3:53 pm
by justauser2
For any other noobs setting this up for the first time

Install Nagios Core on Cent 9 https://tecadmin.net/install-nagios-cor ... ntos-rhel/

Download the plugin https://www.thomas-krenn.com/en/wiki/IP ... jectvars-1
extract the files to /usr/local/nagios/libexec/

In the host definition file add "check_command check_ipmi_sensor!/etc/ipmi-config/ipmi.cfg --nosel -x 4091" to get it to talk to your IPMI host
the "-x 4091" means to exclude that particular warning. In this case I'm excluding chassis intrusion and the ipmi.cfg file contains your IPMI user/pass