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


Can an SNMP Trap be passed to powershell?

Votes:

0

Your Vote:

Up

Down

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 by  cycotron (0) 1



3 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  cycotron (0) 1



Votes:

0

Your Vote:

Up

Down

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]



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.