Page 1 of 1
Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 2:09 am
by xpertech
On the "Monitoring Settings",
==========================================================
Monitoring Settings
Specify the parameters that determine how the service should be monitored.
Under normal circumstances...
Monitor the service every [ A ] minutes.
When a potential problem is first detected...
Re-check the service every [ B ] minutes up to [ C ] times before generating an alert.
Monitor the service with this command... (Advanced users only)
==========================================================
For example I use ping to monitor and "Re-check the service every [ 1 ] minutes up to [ 3 ] times before generating an alert." meaningļ¼
1. Re-check the service every 1 minutes up to 3 times (3 x 1minutes, total 1+1+1+1=4minutes then alert)?
2. Re-check the service every 1 minutes up to 3 times (3 actions in 1minutes, total 1+1=2minutes then alert)?
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 9:32 am
by scottwilkerson
xpertech wrote:1. Re-check the service every 1 minutes up to 3 times (3 x 1minutes, total 1+1+1+1=4minutes then alert)?
2. Re-check the service every 1 minutes up to 3 times (3 actions in 1minutes, total 1+1=2minutes then alert)?
2. would actually be the way Nagios works.
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 9:52 am
by xpertech
scottwilkerson wrote:xpertech wrote:1. Re-check the service every 1 minutes up to 3 times (3 x 1minutes, total 1+1+1+1=4minutes then alert)?
2. Re-check the service every 1 minutes up to 3 times (3 actions in 1minutes, total 1+1=2minutes then alert)?
2. would actually be the way Nagios works.
Can I use like these? (because I want to shorten the alert time)
==========================================================
Monitoring Settings
Specify the parameters that determine how the service should be monitored.
Under normal circumstances...
Monitor the service every [
0.5 ] minutes.
When a potential problem is first detected...
Re-check the service every [
0.5 ] minutes up to [
3 ] times before generating an alert.
Monitor the service with this command... (Advanced users only)
==========================================================
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 9:54 am
by scottwilkerson
Sorry, XI was designed to use whole minute increments.
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 9:56 am
by xpertech
scottwilkerson wrote:Sorry, XI was designed to use whole minute increments.
So, the shortest alert time will be 2 minutes?
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 10:04 am
by scottwilkerson
No, if you set it to 1 it will alert immediately
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 10:07 am
by xpertech
scottwilkerson wrote:No, if you set it to 1 it will alert immediately
Do you mean this...
==========================================================
Monitoring Settings
Specify the parameters that determine how the service should be monitored.
Under normal circumstances...
Monitor the service every [ 1 ] minutes.
When a potential problem is first detected...
Re-check the service every [ 0 ] minutes up to [ 0 ] times before generating an alert.
Monitor the service with this command... (Advanced users only)
==========================================================
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 10:22 am
by scottwilkerson
nope, I mean this
==========================================================
Monitoring Settings
Specify the parameters that determine how the service should be monitored.
Under normal circumstances...
Monitor the service every [ 1 ] minutes.
When a potential problem is first detected...
Re-check the service every [ 1 ] minutes up to [ 1 ] times before generating an alert.
Monitor the service with this command... (Advanced users only)
==========================================================
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 10:50 am
by xpertech
scottwilkerson wrote:nope, I mean this
==========================================================
Monitoring Settings
Specify the parameters that determine how the service should be monitored.
Under normal circumstances...
Monitor the service every [ 1 ] minutes.
When a potential problem is first detected...
Re-check the service every [ 1 ] minutes up to [ 1 ] times before generating an alert.
Monitor the service with this command... (Advanced users only)
==========================================================
I thought the total minutes = first 1 minute + second 1 minute = 2 minutes
=====================================================================
Under normal circumstances...
Monitor the service every [
1 ] minutes.
When a potential problem is first detected...
Re-check the service every [
1 ] minutes up to [
3 ] times before generating an alert.
=====================================================================
0 ---------------------- 1 ---------------------- 2 ---------------------- 3 ---------------------> minutes
^check.................^check.................^check.................^check...... Monitor the service every [ 1 ] minutes.
...............problem^...chk...chk...chk...^alert......Re-check the service every [ 1 ] minutes up to [ 1 ] times before generating an alert.
Re: Monitor alert settings meaning?
Posted: Mon Aug 20, 2012 12:09 pm
by lmiltchev
You need to use "up to [1] times before generating an alert":
Service - max check attempts
This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again.
Parameter name: max_check_attempts
Required: yes