[Possible?] Alert CPU usage 80% for 15+ sec and list top processes

Started by Senri, July 04, 2016, 05:11:04 PM

Previous topic - Next topic

Senri

Hi,

We are a Windows only environment. Right now we are using PRTG to monitor servers.

NetXMS looks very configurable and I am wondering if I can at least do more with it.

As the title mentions. Is it possible to set CPU thresholds such as that if CPU Usage goes over 80% for 15+ seconds, send alert listing top processes and Windows Event Logs.

PRTG has the something called Threshold Trigger that does the above conditions but it can only send generic alerts without any information attached. Even if I use a PowerShell script it can only capture one line string output.

Thanks!
Senri




Tursiops

Personally I haven't done this yet, but I would try this:
- Create a PowerShell script that collects all the data you want/need. The script should either push all that information into a separate event log entry or mail it straight out (I would assume both of these would work with PRTG monitoring, too?)
- Create an Action in the agent's configuration file to run that PowerShell script
- Create a new event and configure event processing policies to trigger the action you just created when your newly created event is triggered
- Configure the CPU DCI to probably check every 5 seconds, set the threshold to trigger the event you created on three consecutive values over 80%

If your script just sends a mail directly, that'd be it.

If the script creates an event log entry, you'd also have to set up event log monitoring in NetXMS for your Windows system and create another event (in NetXMS) and action to be triggered (moving the email/SMS or whichever action you wish to trigger to the NetXMS server). See https://wiki.netxms.org/wiki/UM:Log_Monitoring