Monitor alert settings meaning?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Monitor alert settings meaning?

Post 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)?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor alert settings meaning?

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Monitor alert settings meaning?

Post 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)
==========================================================
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?

Post by scottwilkerson »

Sorry, XI was designed to use whole minute increments.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Monitor alert settings meaning?

Post by xpertech »

scottwilkerson wrote:Sorry, XI was designed to use whole minute increments.
So, the shortest alert time will be 2 minutes?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor alert settings meaning?

Post by scottwilkerson »

No, if you set it to 1 it will alert immediately
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Monitor alert settings meaning?

Post 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)
==========================================================
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor alert settings meaning?

Post 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)
==========================================================
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Monitor alert settings meaning?

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor alert settings meaning?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked