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.
Nagios check_cpu_stats not triggering alerts
-
ajaybguthi1
- Posts: 6
- Joined: Mon Mar 09, 2015 10:29 am
Re: Nagios check_cpu_stats not triggering alerts
Are any of your other alerts working?
Can you post the service definition for this check?
Can you post the service definition for this check?
Former Nagios Employee.
me.
me.
-
ajaybguthi1
- Posts: 6
- Joined: Mon Mar 09, 2015 10:29 am
Re: Nagios check_cpu_stats not triggering alerts
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
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
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.
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.
me.
-
ajaybguthi1
- Posts: 6
- Joined: Mon Mar 09, 2015 10:29 am
Re: Nagios check_cpu_stats not triggering alerts
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
}
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
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.
me.
-
ajaybguthi1
- Posts: 6
- Joined: Mon Mar 09, 2015 10:29 am
Re: Nagios check_cpu_stats not triggering alerts
It happened last friday , but we didnt receive any alerts.
Re: Nagios check_cpu_stats not triggering alerts
How long did the 75% spike last for?
Former Nagios Employee.
me.
me.
-
ajaybguthi1
- Posts: 6
- Joined: Mon Mar 09, 2015 10:29 am
Re: Nagios check_cpu_stats not triggering alerts
It was around 30 minutes approx
Re: Nagios check_cpu_stats not triggering alerts
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.
me.