Page 1 of 2
Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 10:18 am
by ajaybguthi1
Hello,
I have configured the check_cpu_stats command thru nrpe and even if the user cpu reaches 75% we are not getting any email alerts
here is the command
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
$ARG1$ check_cpu_stats
$ARG2$ -a '-w 55 -c 65'
Thanks
Ajay.
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 10:20 am
by hsmith
Are any of your other alerts working?
Can you post the service definition for this check?
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 10:28 am
by ajaybguthi1
Yes Smith,
we are getting alerts for load , memory and port etc .
am a newbie can you let me know where i can find service definition, i tried under /usr/local/nagiosxi/etc but no luck
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 10:33 am
by hsmith
We all have to start somewhere
There should be a configuration located at
/usr/local/nagios/etc/services/xx.xx.xx.xx.cfg
xx.xx.xx.xx.cfg being your IP address/hostname.
Thanks.
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 10:45 am
by ajaybguthi1
Got i dont have it with hostname but it was under /usr/local/nagios/etc/services/
file name is cpu_stats_author.cfg
define service {
host_name XXXXXX
service_description Author_CPU_Stats
use xiwizard_nrpe_service
check_command check_nrpe!check_cpu_stats!-a '-w 55 -c 65'!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contact_groups xi_contactgroup_all
register 1
}
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 10:53 am
by hsmith
Looks all right there. How often is the remote machine reaching 75%? Are you able to see it on the Nagios web interface?
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 12:03 pm
by ajaybguthi1
It happened last friday , but we didnt receive any alerts.
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 12:07 pm
by hsmith
How long did the 75% spike last for?
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 12:23 pm
by ajaybguthi1
It was around 30 minutes approx
Re: Nagios check_cpu_stats not triggering alerts
Posted: Mon Oct 05, 2015 12:49 pm
by hsmith
Is the plugin working right right now, such as reporting 10% or whatever the current use is? Everything looks pretty normal from your configuration.. Can you compare to some other service checks that are working to see if you are using a different contactgroup perhaps?