Windows Disk Cleanup via Powershell
Posted: Mon Nov 30, 2015 1:17 pm
So my Windows guys created a Powershell script to do some minor C:/ cleanup and want me to add the script to NagiosXI when a Warning is generated. I understand how event handling works in Nagios but my scripting skills are limited. Where do I start, what is best practice? I've scoured old posts and see where some use NCSA or NRPE or some other methodologies I'm not familiar with. We use agent-less monitoring via WMI and I'd love to continue with an agent-less process (or at least pass a Host arg to a Windows gateway server to execute).