Page 1 of 1

CPU alert not coming properly.

Posted: Wed May 18, 2016 7:49 am
by njain213
Hi Team,

I have setup CPU and memory usage alerts for one machine and alert I am getting is shown below.

***** Nagios XI Alert *****

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: CPU Stats
Host: 10.72.25.211
Address: 10.72.25.211
State: CRITICAL
Info:
(Return code of 255 is out of bounds)
Date/Time: 2016-05-18 17:39:45


But I want alert should come as shown below.

Summary output : CPU load high: 90% (> 90%)
Host : hostname
Description :
Test : CPU
First alert :
Last update : 2016-05-13 10:23:30
Details
User Sys Total Max Alert Warn
72% 18% 90% 90% 90% 85%


Could you please let me know how to configure this so that I will receive alerts in above format.

Thanks
Naman

Re: CPU alert not coming properly.

Posted: Wed May 18, 2016 12:20 pm
by hsmith
This generally happens if something is misconfigured with NRPE. Are other checks from that host working? Can you try to run the check from the command line and see if it works?

Re: CPU alert not coming properly.

Posted: Wed May 18, 2016 12:34 pm
by tmcdonald
Check this doc out for customizing your notification messages:

https://assets.nagios.com/downloads/nag ... iables.pdf