Re: Check_temp.pl No sensors found on Nagios
Posted: Tue Oct 29, 2019 12:55 pm
Sorry for the confusion - here is my setup: Physical server running CentOS is a remote machine to Nagios which is running on the Ubuntu. I've the NRPE agent installed on the CentOS. It does the SSH, load, root partition, ping and the other checks. One of the thing I also want to monitor is the core temperature of this physical machine and then there are other physical machines which I'd like to be monitored remotely by Nagios Core.
In this process I've the plugin in the /usr/local/nagios/libexec directory named as "Check_temp.pl" I've then installed the Lm-sensors been thorough their questionnaire and got the core temp output when I type in the command "sensors". Now that I see the output, I check if Nagios server would fetch the results for me automatically without me logging in to the physical machine to check the core temp all the time. This is where I get the "no sensors detected" message.
As far as the command which sensor goes, I've run the command on the Nagios and the physical machine. I get the same output of /bin/usr if I run as root. If i run it as Nagios usr on the Nagios server I obviously get /usr/bin/sensors.
In this process I've the plugin in the /usr/local/nagios/libexec directory named as "Check_temp.pl" I've then installed the Lm-sensors been thorough their questionnaire and got the core temp output when I type in the command "sensors". Now that I see the output, I check if Nagios server would fetch the results for me automatically without me logging in to the physical machine to check the core temp all the time. This is where I get the "no sensors detected" message.
As far as the command which sensor goes, I've run the command on the Nagios and the physical machine. I get the same output of /bin/usr if I run as root. If i run it as Nagios usr on the Nagios server I obviously get /usr/bin/sensors.