Newbie plugin question....
Posted: Thu Sep 26, 2024 9:47 am
Hi all,
First of all this is an all Linux environment (we have a couple of FreeBSD machines too).
I'm trying to develop a plugin that will collect the BMC temperatures for inlet & outlet from our servers. I can successfully retrieve this with ipmitool when logged in as root.
It is my understanding that plugin scripts (for us in /usr/lib64/nagios/plugins) are run on remote machines as user nrpe (in our case). This will not allow access to the ipmitool (or more precisely, won't allow access to /dev/ipmi0, which is only accessible by root).
What would be the best way around this?
Alternately if there is another plugin (or method) that someone can suggest that would do the job.
Cheers.
Phill.
First of all this is an all Linux environment (we have a couple of FreeBSD machines too).
I'm trying to develop a plugin that will collect the BMC temperatures for inlet & outlet from our servers. I can successfully retrieve this with ipmitool when logged in as root.
It is my understanding that plugin scripts (for us in /usr/lib64/nagios/plugins) are run on remote machines as user nrpe (in our case). This will not allow access to the ipmitool (or more precisely, won't allow access to /dev/ipmi0, which is only accessible by root).
What would be the best way around this?
Alternately if there is another plugin (or method) that someone can suggest that would do the job.
Cheers.
Phill.