Temperature Sensor Connected to Raspberry Pi
Re: Temperature Sensor Connected to Raspberry Pi
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.
Former Nagios employee
Re: Temperature Sensor Connected to Raspberry Pi
Should I just delete these two files? Or along with the service?
Last time I deleted the service and added it again.
Last time I deleted the service and added it again.
Re: Temperature Sensor Connected to Raspberry Pi
Delete the two files, RRD and XML. Let us know the result.
Former Nagios Employee
Re: Temperature Sensor Connected to Raspberry Pi
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.
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.
You do not have the required permissions to view the files attached to this post.
Re: Temperature Sensor Connected to Raspberry Pi
This might be what the issue is now, is your script returning perfdata in a way that's expected?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.
https://assets.nagios.com/downloads/nag ... fdata.html
Former Nagios Employee
Re: Temperature Sensor Connected to Raspberry Pi
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?
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?
Last edited by JohnS on Wed Nov 25, 2015 10:15 am, edited 1 time in total.
Re: Temperature Sensor Connected to Raspberry Pi
You may need to delete the old perfdata files that existed if you kept the same host / service name.
Former Nagios Employee
Re: Temperature Sensor Connected to Raspberry Pi
Could you please tell me where can I find these files?
Re: Temperature Sensor Connected to Raspberry Pi
Code: Select all
/usr/local/nagios/share/perfdata/<hostname>/Former Nagios Employee
Re: Temperature Sensor Connected to Raspberry Pi
Oh thats what you meant. Ill try this out. Thanks