Nagios check_cpu_stats not triggering alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ajaybguthi1
Posts: 6
Joined: Mon Mar 09, 2015 10:29 am

Nagios check_cpu_stats not triggering alerts

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios check_cpu_stats not triggering alerts

Post by hsmith »

Are any of your other alerts working?

Can you post the service definition for this check?
Former Nagios Employee.
me.
ajaybguthi1
Posts: 6
Joined: Mon Mar 09, 2015 10:29 am

Re: Nagios check_cpu_stats not triggering alerts

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios check_cpu_stats not triggering alerts

Post 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.
Former Nagios Employee.
me.
ajaybguthi1
Posts: 6
Joined: Mon Mar 09, 2015 10:29 am

Re: Nagios check_cpu_stats not triggering alerts

Post 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
}
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios check_cpu_stats not triggering alerts

Post 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?
Former Nagios Employee.
me.
ajaybguthi1
Posts: 6
Joined: Mon Mar 09, 2015 10:29 am

Re: Nagios check_cpu_stats not triggering alerts

Post by ajaybguthi1 »

It happened last friday , but we didnt receive any alerts.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios check_cpu_stats not triggering alerts

Post by hsmith »

How long did the 75% spike last for?
Former Nagios Employee.
me.
ajaybguthi1
Posts: 6
Joined: Mon Mar 09, 2015 10:29 am

Re: Nagios check_cpu_stats not triggering alerts

Post by ajaybguthi1 »

It was around 30 minutes approx
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios check_cpu_stats not triggering alerts

Post 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?
Former Nagios Employee.
me.
Locked