Page 2 of 3
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Mon Nov 23, 2015 4:54 pm
by tmcdonald
You might need to delete the RRD and XML files. You said something about deleting the service at one point? If the perfdata has changed from what was being sent before, the RRD won't update.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Tue Nov 24, 2015 5:40 am
by JohnS
Should I just delete these two files? Or along with the service?
Last time I deleted the service and added it again.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Tue Nov 24, 2015 10:17 am
by rkennedy
Delete the two files, RRD and XML. Let us know the result.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Tue Nov 24, 2015 4:32 pm
by JohnS
As for what you suggested. I deleted both RPI_CPU_Temperature.rrd and RPI_CPU_Temperature.xml.
The MySQL crashed after this so I ran the repair script. Nothing changed.
Everything seems to be working fine for the raspberry pi. There are visible performance graphs.
However, still no graph for the SNMP service (reading the CPU temperature of RPI) although the SNMP polling works just fine.
The script I am using to get the CPU temp is just a simple cat command for reading the file where the current temperature is stored.
I extended the NET-SNMP MIB for this script, and got this value in form of a string (OID STRING) which is successfully polled by SNMP as visible in one of the screenshots. I have really no idea why the graph does not show up.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Tue Nov 24, 2015 4:44 pm
by rkennedy
The script I am using to get the CPU temp is just a simple cat command for reading the file where the current temperature is stored.
I extended the NET-SNMP MIB for this script, and got this value in form of a string (OID STRING) which is successfully polled by SNMP as visible in one of the screenshots. I have really no idea why the graph does not show up.
This might be what the issue is now, is your script returning perfdata in a way that's expected?
https://assets.nagios.com/downloads/nag ... fdata.html
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Wed Nov 25, 2015 9:57 am
by JohnS
Thank you for this information. I am using this script now:
https://exchange.nagios.org/directory/P ... mp/details
Still no graphs. I was wondering if the files you asked to delete (.rrd and. xml) are generated automatically? I canont see them in the folder even after starting a new service (with a new script). As I understand they are crucial for the graph to appear arent they?
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Wed Nov 25, 2015 10:13 am
by rkennedy
You may need to delete the old perfdata files that existed if you kept the same host / service name.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Wed Nov 25, 2015 10:17 am
by JohnS
Could you please tell me where can I find these files?
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Wed Nov 25, 2015 10:31 am
by rkennedy
Code: Select all
/usr/local/nagios/share/perfdata/<hostname>/
The same ones that you deleted prior in the above folder.
Re: Temperature Sensor Connected to Raspberry Pi
Posted: Wed Nov 25, 2015 10:45 am
by JohnS
Oh thats what you meant. Ill try this out. Thanks