Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snmpcustomsensor #8

Closed
stefanbrunner opened this issue May 13, 2015 · 2 comments
Closed

snmpcustomsensor #8

stefanbrunner opened this issue May 13, 2015 · 2 comments

Comments

@stefanbrunner
Copy link

Hallo

Der snmpcustomsensor funktioniert leider bei mir nicht wie gewünscht.
Auf dem Core Server wird nur SNMP Rexuest failed angezeigt. Auf der Probe selber steht im log folgende Zeile: 05/13/2015 22:22:30 - ERROR - Ooops Something went wrong with 'mpsnmpcustom' sensor 2208. Error: NoSuchInstance instance has no attribute 'trunc'
Der SNMP Tester liefert mir aber für die entsprechende OID einen Wert. Leider habe ich keine Kenntnisse in Python, dass ich es selber lösen könnte.
Danke für eine Antwort.

Freundliche Grüsse
Stefan Brunner

@eagle00789
Copy link
Contributor

Could you please do the following for me to further analyse the problem.
Stop the prtgprobe service using:

sudo service prtgprobe stop

and start it again using the following command:

sudo python /probe/probe.py

Then make sure you have the SNMPCustomSensor added to your PRTG installation with the correct OID.
As soon as the SNMPCustomSensor is polled, it should print a traceback log. Please provide us with that traceback log.
Also, What device and OID are you trying to poll?
And last but not least, what is the value that the SNMP Tester returned for the OID?
As soon as you have the traceback log, you can stop the probe using CTRL + C and then starting the probe again using:

sudo service prtgprobe start

@stefanbrunner
Copy link
Author

Problem is solved!
It wasn't the sensor, it was the device.
We monitor a QNAP NAS with the mini probe. The QNAP response a value as a string not as a integer!
To monitor a QNAP with the mini probe, the 9th value has to be count up by 1

e.g.
1.3.6.1.4.1.24681.1.2.11.1.3.3 response --> 31 C/87 F
1.3.6.1.4.1.24681.1.3.11.1.3.3 response --> 31

konstantinpae pushed a commit that referenced this issue Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants