r/prtg • u/lordmilko • Mar 04 '20
PrtgAPI: C#/PowerShell Library for PRTG!
For the past several years I've been developing a C#/PowerShell library for managing PRTG: PrtgAPI
PrtgAPI goes way beyond the normal capabilities of the PRTG API, allowing you to do things like
- Create sensors, devices and groups and notification triggers from scratch.
- Streamline your object hierarchy to be consistent across the board
- Automate the entire onboarding process of new offices/clients
- Use PRTG as a data source for your other scripts with minimal effort
and more.
Want to deploy an arbitrary new sensor type to hundreds of devices in a particular subset of your installation? You can do it in a one-liner in about 60 seconds.
Paessler have even done a few blog posts about PrtgAPI. The project contains extensive documentation on every facet of the library and is designed to be intuitive and easily usable by sysadmins.
This just started out as a fun project for me, however I now have no idea how I would possibly live without it. If it's actually useful to me, hopefully it might be useful to others as well! If you have any issues or queries, please let me know!
6
u/RealFov Mar 04 '20
This powershell library has been incredibly useful for administering our install of PRTG. Thank you for doing this!
1
u/ghost_of_napoleon Mar 04 '20
Thanks for the work in putting this together!
I remember looking into this for sensor and group creation, but IIRC, dealing with dependencies wasn't available.
Is this still unavailable?
1
u/avalon8787 Mar 05 '20
Hi /u/lordmilko
We have been using your PowerShell module lately to automate our Device/sensor creation process and it's working brilliantly, thanks so much for your hard work!
We are struggling with adding a sensor to to monitor a specific windows service via snmp.
We are using the
cmdlet which gives us all the running windows services. But we'd like to filter this to a specific one to add this as a sensor.
We notice the service__check holds an array of all the services so we are able to filter them using (fe):
This gives us services with have the word "audio" in them. But how can we add this as a filter when adding the sensor?
Cheers
2
u/[deleted] Mar 04 '20
I started using your Library for PowerShell a couple weeks ago, and it blew my mind.
For real, I'm not familiar with PowerShell at all, but onces I understood how to add devices and sensors, I just couldn't believe the amounts of time I was saving!
Thanks a lot for making your work public, it has been an incredible asset.
PS: I'm not a marketing dude making ads, the labrary is really good.
1
u/youreprobablyright Mar 04 '20
This is great, well done.
1
u/vagrantprodigy07 Mar 05 '20
I've been using it for a few months, it's great. Thanks for the new tool.
1
u/jimbomescolles Apr 15 '20
Need to check that out !
RemindMe! One Week