Temperature Sensor Connected to Raspberry Pi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
JohnS
Posts: 11
Joined: Sat Nov 21, 2015 9:52 am

Temperature Sensor Connected to Raspberry Pi

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Temperature Sensor Connected to Raspberry Pi

Post 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?
Former Nagios Employee
JohnS
Posts: 11
Joined: Sat Nov 21, 2015 9:52 am

Re: Temperature Sensor Connected to Raspberry Pi

Post 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 ?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Temperature Sensor Connected to Raspberry Pi

Post 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.
You do not have the required permissions to view the files attached to this post.
Former Nagios Employee
JohnS
Posts: 11
Joined: Sat Nov 21, 2015 9:52 am

Re: Temperature Sensor Connected to Raspberry Pi

Post 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.)
Last edited by JohnS on Mon Nov 23, 2015 2:15 pm, edited 1 time in total.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Temperature Sensor Connected to Raspberry Pi

Post 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.
Former Nagios Employee
JohnS
Posts: 11
Joined: Sat Nov 21, 2015 9:52 am

Re: Temperature Sensor Connected to Raspberry Pi

Post 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.
You do not have the required permissions to view the files attached to this post.
JohnS
Posts: 11
Joined: Sat Nov 21, 2015 9:52 am

Re: Temperature Sensor Connected to Raspberry Pi

Post by JohnS »

SNMP is working but no graph... (almost an hour has passed already).
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Temperature Sensor Connected to Raspberry Pi

Post 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>/
Former Nagios Employee
JohnS
Posts: 11
Joined: Sat Nov 21, 2015 9:52 am

Re: Temperature Sensor Connected to Raspberry Pi

Post by JohnS »

The response to:
service crond status
service npcd status
ls -l /usr/local/nagios/share/perfdata/<hostname>/
You do not have the required permissions to view the files attached to this post.
Locked