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

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Comments tab - populate on creation (custom exe/script sensor)

Votes:

0

Your Vote:

Up

Down

Hello

I have a custom sensor (well several hundred of the same type, which is why I don't want to do this manually, but happy to delete the sensors and let automation re-add them) where once added, populates 2 channels and sets a limit on one as seen below:

{ "prtg": { "result": [ { "channel": "appealMediaTypeDaysRemaining", "value": "65041" }, { "channel": "appealDaysRemaining", "value": "65041", "limitmode": "1", "limitminwarning": "30", "limitminerror": "4" } ], "text": "" }

There's no problem with the above and it all works fine. I want to add to the comments tab when its first run, like the limit thresholds. I figure I'm either missing a field name in the right place in the json results, or it's not possible.

Is there any way I can specify it in the initial results like the limiters so it gets populated.

I am aware I could set it at sensor add time, or bulk change it after they are added. If the above idea works that's an easier method than changing the buildout automation.

Thank you for any ideas suggested.

Wayne

automation comment-tab custom-exe json json-results script

Created on Dec 2, 2021 1:24:48 PM by  Wayne (20) 1



Replies

Nobody has replied yet

Why not be the first?

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.