Monitor alert settings meaning?
Monitor alert settings meaning?
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)?
==========================================================
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)?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor alert settings meaning?
2. would actually be the way Nagios works.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)?
Re: Monitor alert settings meaning?
scottwilkerson wrote:2. would actually be the way Nagios works.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)?
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)
==========================================================
Last edited by xpertech on Mon Aug 20, 2012 9:54 am, edited 1 time in total.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor alert settings meaning?
Sorry, XI was designed to use whole minute increments.
Re: Monitor alert settings meaning?
So, the shortest alert time will be 2 minutes?scottwilkerson wrote:Sorry, XI was designed to use whole minute increments.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor alert settings meaning?
No, if you set it to 1 it will alert immediately
Re: Monitor alert settings meaning?
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)
==========================================================
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor alert settings meaning?
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?
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?
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
Be sure to check out our Knowledgebase for helpful articles and solutions!