PDA

View Full Version : Monitoring CPU eating processes


yatesco
01-07-2010, 05:15
Hi,

I occasionally get an email from Zabbix stating that the CPU is wigging out on one of my machines - it would be really neat if there was a way in zabbix to see the process list for that machine at that time. At the moment I am having to go use splunk, which is a bit of a heavy weight beast just for this.

What do you do to solve this fairly common usecase?

Thanks,

Col

Wonderer
01-07-2010, 07:09
I think there is no direct way of doing this.

One possible tricky solution that I have in my mind, is to have a "RemoteCommand" with some special script in the action list for the corresponding trigger. (And the RemoteCommand support enabled on the host)
And the RemoteCommand script itself will use zabbix_sender to put a list of processes into the separate ZabbixTrapper item, and a separate trigger watching this item.
So after you receive notification about high CPU usage, you should receive another one with the process list.

Tricky, is not it? :)

yatesco
01-07-2010, 10:27
I think there is no direct way of doing this.

One possible tricky solution that I have in my mind, is to have a "RemoteCommand" with some special script in the action list for the corresponding trigger. (And the RemoteCommand support enabled on the host)
And the RemoteCommand script itself will use zabbix_sender to put a list of processes into the separate ZabbixTrapper item, and a separate trigger watching this item.
So after you receive notification about high CPU usage, you should receive another one with the process list.

Tricky, is not it? :)
I see - fair enough :)

jerrylenk
05-07-2010, 15:43
Here is my suggestion:

http://www.zabbix.com/forum/showthread.php?t=17874
Jerry

yatesco
05-07-2010, 17:06
Nice one - thanks, I shall have a look.