Alert with more detail
Jon Angliss
jon at netdork.net
Sat Sep 27 02:18:30 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 25 Sep 2008 23:00:11 +0800, "howard chen" <howachen at gmail.com>
wrote:
>Hello,
>
>Sometimes, nagios will alert of high loading of a system via Email,
>with the body:
>
>
>...CRITICAL - load average: 5.42, 6.04, 3.04
>But this information is useless unless you know which process is using
>most of the CPU, e.g. MySQL. Then you can take follow up action to
>prevent it from happen again.
>So are there any easy way to monitor the process CPU utilization when
>the alert is generated using nagios?
>Or other better method?
It looks like you're after a little more than just warning on the
load. I guess advanced notice on the cause of the load increase is
always good, it gives you a good headstart when beginning triage. I
did a quick search on Nagios Exchange (http://www.nagiosexchange.org),
and this came up:
http://www.nagiosexchange.org/cgi-
bin/page.cgi?g=Detailed%2F1932.html;d=1
It looks like it might need a tweak based on the comment, but I'd
imagine it does what you're after. Uses "ps" to list the processes,
and sorts by CPU load. It'll generate a warning when over a certain
(customizable) threshold, and critical over another (also
customizable). It'll then report the process that is sitting at the
top of the heap.
- --
Jon Angliss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64
iEYEARECAAYFAkjde8gACgkQK4PoFPj9H3ODGACfSJ/4L8DvTdaVgD3goo3pLVod
lxcAn0vpv9Nwocv0rO5BwjVCLVkpLJTZ
=iN49
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list