What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

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

Can an SNMP Trap be passed to powershell?

Votes:

0

I've been researching this but couldn't find a clear answer.

What I would like to do is once a specific trap is received, pass that to powershell for some custom handling related to the message. It is possible to do this? If not, I guess I need to use a second SNMP Trap receiver that is capable of allowing me to run a custom script referencing the trap that was received?

powershell snmp trap

Created on Jun 2, 2020 6:43:58 PM



3 Replies

Votes:

0

Hi there,

you can create a notification which triggers a script to execute. In this way, you can execute a script if a certain trap was received.

Created on Jun 3, 2020 7:57:37 AM by  Moritz Heller [Paessler Support]



Votes:

0

Can the content of the trap be passed to powershell? My goal is to receive traps with specific information and then update that database in a separate database from PRTG.

Created on Jun 3, 2020 7:01:47 PM



Votes:

0

You can use a placeholder for example "%trapmessages" to forward the content of a trap message.

Created on Jun 4, 2020 1:33:01 PM by  Moritz Heller [Paessler Support]




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.