Page 1 of 3
Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 12:04 pm
by JohnS
Hi,
I would like to use NagiosXI to plot a graph of temperature variation from one of my sensors in the server room(connected to the RPI).
The NagiosXI server has found the OID of the temperature sensor measurement (SNMP). Is it possible to now plot the graph of these measurments?
If yes, what is the process to achieve this?
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 12:18 pm
by rkennedy
Have you configured a service to check the temperature yet?
If so, navigate to the service from the 'Service Details Page', followed by the 'Advanced Tab'.
Do you see any output next to Performance Data?
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 1:51 pm
by JohnS
Thanks, I now know where the graph is supposed to be. However, it only shows the message "no data to display".
I used SNMPWalk to select a particular OID. The output is in a form of a string e.g. 21700 [in mili deg. Celsius]
I might have made a mistake in filling in the information about OID.
In this case, what should I put in Warning Range / Critical Range / String To Match.
I am interested in the syntax e.g is it okay to write 25000 - 30000 in the Critical Range ?
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 2:10 pm
by rkennedy
rkennedy wrote:Navigate to the service from the 'Service Details Page', followed by the 'Advanced Tab'.
Do you see any output next to Performance Data?
Can you check to see if anything is next to the Performance Data tab? It will look like -
advanced-status-details.PNG
As for what should be the critical / warning variables - not too sure as every device is different.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 2:12 pm
by JohnS
And do you know what is the "String To Match" by any chance ?
I deleted my current service since I would like to change some values.
I will check what you showed me as soon as I fill in these three boxes (String To Match etc.)
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 2:15 pm
by rkennedy
Can you answer the post above?
Code: Select all
-s, --string=STRING
Return OK state (for that OID) if STRING is an exact match
Is this what you're referring to? It lets you specify a string to match that will produce an OK alert if it's specified in the SNMP response.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 3:13 pm
by JohnS
I tried to monitor just CPU temperature of Raspberry Pi and still cannot get any graph though. Even after almost an hour doesnt show up.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 3:15 pm
by JohnS
SNMP is working but no graph... (almost an hour has passed already).
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 3:44 pm
by rkennedy
Can you post the results of the following commands? In the third command, please change <hostname> to the name of the host. (in your case, I think it's raspberrypi) -
Code: Select all
service crond status
service npcd status
ls -l /usr/local/nagios/share/perfdata/<hostname>/
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 4:19 pm
by JohnS
The response to:
service crond status
service npcd status
ls -l /usr/local/nagios/share/perfdata/<hostname>/