Hello!

I have a prtg map that shows Down Sensors and it's sort by "down for" column. The first item is the oldest sensor down. I really need sort it by the newest sensor down.

How can I do that?

Thank you!

Sena


Article Comments

Hi there,

What exact map-icon did you used? If you are using a custom one, please forward us the map objects source code.

Best regards.


Mar, 2017 - Permalink

Hi, thanks for your reply. It is a default data table alarms map.


Mar, 2017 - Permalink

Hi there,

I assume that you are using the "DOWN Sensors" map object under "Data Tables", correct? If so, then open the "tableA1.htm" file on the PRTG Core Server, located under "C:\Program Files (x86)\PRTG Network Monitor\webroot\mapobjects\", change line 13 to:

columns="sensor,status,lastvalue,minigraph,priority,favorite,probegroupdevice,message,downtimesince"

and line 14 to:

sortby="-downtimesince"

This way the table will be sorted by the downtimesince and the newest alarm will be on top.

Best regards.


Mar, 2017 - Permalink

Hi!

Thanks for your reply. That is right, it is a DOWN sensors map under data tables. I've already did that editing before posting here. Take a look:

columns="downtimesince,device,sensor,message"

sortby="downtimesince"

Even editing like that, the first collumn shows the oldest alarms on the top.

Thanks

Sena


Mar, 2017 - Permalink

Hi Sena,

You are using:

sortby="downtimesince"

My solution is using:

sortby="-downtimesince"

Please note the additional "-" in front of the column name. :)

Best regards.


Mar, 2017 - Permalink

wow! I am sorry! I didn't notice that. It works!

Thank you so much!!! =D


Mar, 2017 - Permalink