New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Is there a way to store sensor messages?

Votes:

0

Your Vote:

Up

Down

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?

messages sensor syslog

Created on Aug 8, 2016 6:41:21 AM by  Stephan Linke [Paessler Support]



2 Replies

Accepted Answer

Votes:

3

Your Vote:

Up

Down

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

  1. Create a syslog receiver sensor and set the "Purge Messages After" to 400 days.
  2. Create a new notification, and set it to the following:
    1. Notification Summarization: Always notify asap
    2. Enable "Send Syslog Message" and use the following settings:
      1. Host/IP Your PRTG hostname
      2. Syslog Port As configured in the syslog receiver sensor (default is 514)
      3. Facility User-level messages
      4. Message [%deviceid|%device] [%sensorid|%sensor] [%status] %message
    3. 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.
Set it up for the corresponding triggers as well. The end result will look something like this:

Syslog Receiver sensor

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 Aug 8, 2016 7:02:51 AM by  Stephan Linke [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Feb 7, 2019 12:16:03 PM by  Slothy (0) 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.