All,
I'm wondering if it's possible to monitor CPU usage real time instead of a 5 minute average. In my windows.cfg folder I have the following configuration for cpu load:
define service{
use generic-service
hostgroup_name tt-servers,windows-servers
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
It's set to warn at 80% and critical at 90% for 5 min average but I want real time so I can catch CPU spikes. Can anyone help?
Thanks!
Real time CPU Usage
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Real time CPU Usage
Likely the best way to do this would actually be snmptraps, as they would be generated via the remote system and indexed at all times. Even if you were to monitor every 1 minute or take the exact rate at 5 minute intervals you are likely to miss spikes. The only other option would be another passive check of some sort, however most, like nagios core, run on schedules and not realtime.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.