IPMI plugin not working
Posted: Mon Oct 16, 2023 1:21 pm
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!
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!