Hi,
can any one please help me in creating a custom powershell sensor? or an example would be greatly appreciated.
thanks
Article Comments
Hi,
You could as well just define a little bit more what you want to monitor and there might even be a ready to use script available already.
Besides that, you will find plenty of examples within your PRTG installation, on the PRTG web site in the online manual and so on.
You will need to have some knowledge about writing PowerShell scripts, besides that it is only about the output that this script will actually give back to PRTG to process.
Hope that helps a bit further... I have a lot of examples written and posted in the PRTG KB here and on my personal blog on my web site - but if you want something specific, I suggest you define it and we see if we can help you out.
Regards
Florian Rossmark
Jul, 2018 - Permalink
Dear amandrekar,
a very simple sensor would be
A more complex example can be reviewed here.
An Exe/Script Advanced sensor however needs to return an XML structure. Documentation, including a simple output example is available here.
Jul, 2018 - Permalink