I noticed that PRTG doesn't store the sensor messages in the historic data. Is there a way to record them so I can search through them?
Is there a way to store sensor messages?
Votes:
0
2 Replies
Votes:
3
Currently we're only storing the numeric results of the actual sensor. There is a built in solution in PRTG for cases like that - the Syslog Receiver Sensor. It will keep the syslog messages up to 400 days, and you can search the results to include only certain sensors or search within a certain timespan.
Setup
- Create a syslog receiver sensor and set the "Purge Messages After" to 400 days.
- Create a new notification, and set it to the following:
- Notification Summarization: Always notify asap
- Enable "Send Syslog Message" and use the following settings:
- Host/IP Your PRTG hostname
- Syslog Port As configured in the syslog receiver sensor (default is 514)
- Facility User-level messages
- Message [%deviceid|%device] [%sensorid|%sensor] [%status] %message
- Save
Then add the notification to the sensors you want to log just as any other notification, preferrably either in the root of your object tree (so they're inherited by their child objects) or via libraries. See also the Paessler website: How to set up notifications via the PRTG web interface.
Set it up for the corresponding triggers as well. The end result will look something like this:
Please note that the syslog receiver cannot be reported upon. So this merely acts as a searchable sensor message archive with a retention of 400 days. If you need more features, feel free to check out the KiWi Syslog Server, which also comes in a free version, which should be sufficient for most scenarios :)
Created on Aug 8, 2016 7:01:50 AM by
Stephan Linke [Paessler Support]
Last change on Jul 26, 2021 10:38:44 AM by
Maike Guba [Paessler Support]
(2,404)
●2
●1
Votes:
0
Hi Stephen,
Thanks for this reply, and will look in to this as we have just put in Graylog for syslogging information as well.
I think we have found another way, which is a little simpler but a bit dirty.
On the original sensor, we have setup a script to rename the log file to a timestamped file and to keep doing this until the sensor returned to an OK results.
The batch file we used is
ren "<prtg installation directory>\logs (sensors)\Result of Sensor <sensorID>.txt" "<sensorID> - %date:/=-% %time::=-%.txt"
Thanks for the official way and I will look to see what info we can get out.
thanks Andy
Add comment