[Nagios-users] Send notification if state doesn't change

2007-05-30 Thread chiel
hi all,

I got some passive services checks in nagios. When this services goes into 
critical state I get a notification.
But everytime I need to reset the service to OK by submitting a passive check 
through the nagios webinterface. Because if I leave it in critical I will not 
send a other notification if a other critical result occurs, because the 
service is already in a critical state.

Is there something to keep sending notification for a passive check (maybe 
active check to) even if that service is already in, for example, critical?

chiel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Send notification if state doesn't change

2007-05-30 Thread Sapon, Dimitry
From what I understand, the notification_interval option defined in the
service definition is what tells Nagios how often to resend the message.
Default is 60 hence why you might never have gotten another one. Try
lowering that value and that should work.



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of chiel
Sent: Wednesday, May 30, 2007 8:58 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Send notification if state doesn't change


hi all,
 
I got some passive services checks in nagios. When this services goes
into critical state I get a notification.
But everytime I need to reset the service to OK by submitting a passive
check through the nagios webinterface. Because if I leave it in critical
I will not send a other notification if a other critical result occurs,
because the service is already in a critical state.
 
Is there something to keep sending notification for a passive check
(maybe active check to) even if that service is already in, for example,
critical?
 
chiel
 
 
___

This email is intended only for the use of the individual(s) to whom it is 
addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive This e-mail in 
error, please advise immediately and delete the original message. 
This message may have been altered without your or our knowledge and the sender 
does not accept any liability for any errors or omissions in the message.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits 
et obligations qui s'y rapportent. 
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il 
contient par une personne autre que le (les) destinataire(s) désigné(s) est 
interdite.
Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par 
retour de courriel ou par un autre moyen.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Send notification if state doesn't change

2007-05-30 Thread chiel
That is not execly what I mean. The notivication_interval will resend a 
notification after a period of time.
I use passive checks, and the only thing that this check will recieve is 
critical states. So every time I recieve a pasive check I want a notification.

  - Original Message - 
  From: Sapon, Dimitry 
  To: nagios-users@lists.sourceforge.net 
  Sent: Wednesday, May 30, 2007 3:10 PM
  Subject: Re: [Nagios-users] Send notification if state doesn't change


  From what I understand, the notification_interval option defined in the 
service definition is what tells Nagios how often to resend the message. 
Default is 60 hence why you might never have gotten another one. Try lowering 
that value and that should work.



--
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of chiel
  Sent: Wednesday, May 30, 2007 8:58 AM
  To: nagios-users@lists.sourceforge.net
  Subject: [Nagios-users] Send notification if state doesn't change


  hi all,

  I got some passive services checks in nagios. When this services goes into 
critical state I get a notification.
  But everytime I need to reset the service to OK by submitting a passive check 
through the nagios webinterface. Because if I leave it in critical I will not 
send a other notification if a other critical result occurs, because the 
service is already in a critical state.

  Is there something to keep sending notification for a passive check (maybe 
active check to) even if that service is already in, for example, critical?

  chiel


___

This email is intended only for the use of the individual(s) to whom it is 
addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive This e-mail in 
error, please advise immediately and delete the original message. 
This message may have been altered without your or our knowledge and the sender 
does not accept any liability for any errors or omissions in the message.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits 
et obligations qui s'y rapportent. 
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il 
contient par une personne autre que le (les) destinataire(s) désigné(s) est 
interdite.
Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par 
retour de courriel ou par un autre moyen.

--


  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/


--


  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
  ::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
  ::: Messages without supporting info will risk being sent to /dev/null-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Send notification if state doesn't change

2007-05-30 Thread Sapon, Dimitry
Ok gotcha.
 
How about this alternative (just trying to throw possibilities out there). Are 
you able to slightly change the output message sent to Nagios through the 
passive check? Maybe a variable that gets auto incremented to show the message 
number or something simple like that? If so, you can take advantaged of state 
stalking: http://nagios.sourceforge.net/docs/2_0/stalking.html
 
Hopefully that'll help. :)



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of chiel
Sent: Wednesday, May 30, 2007 9:34 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Send notification if state doesn't change


That is not execly what I mean. The notivication_interval will resend a 
notification after a period of time.
I use passive checks, and the only thing that this check will recieve is 
critical states. So every time I recieve a pasive check I want a notification.
 

- Original Message - 
From: Sapon, Dimitry mailto:[EMAIL PROTECTED]  
To: nagios-users@lists.sourceforge.net 
Sent: Wednesday, May 30, 2007 3:10 PM
Subject: Re: [Nagios-users] Send notification if state doesn't change

From what I understand, the notification_interval option defined in the 
service definition is what tells Nagios how often to resend the message. 
Default is 60 hence why you might never have gotten another one. Try lowering 
that value and that should work.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of chiel
Sent: Wednesday, May 30, 2007 8:58 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Send notification if state doesn't change


hi all,
 
I got some passive services checks in nagios. When this services goes 
into critical state I get a notification.
But everytime I need to reset the service to OK by submitting a passive 
check through the nagios webinterface. Because if I leave it in critical I will 
not send a other notification if a other critical result occurs, because the 
service is already in a critical state.
 
Is there something to keep sending notification for a passive check 
(maybe active check to) even if that service is already in, for example, 
critical?
 
chiel
 
 
___

This email is intended only for the use of the individual(s) to whom it 
is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive This 
e-mail in error, please advise immediately and delete the original message. 
This message may have been altered without your or our knowledge and 
the sender does not accept any liability for any errors or omissions in the 
message.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas 
aux droits et obligations qui s'y rapportent. 
Toute diffusion, utilisation ou copie de ce message ou des 
renseignements qu'il contient par une personne autre que le (les) 
destinataire(s) désigné(s) est interdite.
Si vous recevez ce courriel par erreur, veuillez m'en aviser 
immédiatement, par retour de courriel ou par un autre moyen.








-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/ 







___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

___

This email is intended only for the use of the individual(s) to whom it is 
addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive This e-mail in 
error, please advise immediately and delete the original message. 
This message may have been altered without your or our knowledge and the sender 
does not accept any liability for any errors or omissions in the message.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits 
et obligations qui s'y rapportent. 
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il 
contient par une personne autre que le (les) destinataire(s) désigné(s) est 
interdite.
Si

Re: [Nagios-users] Send notification if state doesn't change

2007-05-30 Thread Thomas Guyot-Sionnest
For notification_interval to work Nagios must receive another passive
check or send another active check. Here's an example showing how it works:

In this example:
- check frequency is 5 minutes
- notification interval is 6 minutes

On a service failure you would get:

0m Service enters HARD CRITICAL state
0m Nagios sends notification
5m Service still in HARD CRITICAL state
5m Nagios not sending notifications because less than 6 minutes have passed
6m Nothing happens because the next check is scheduled at 10 minutes
10m Service still in HARD CRITICAL state
10m Nagios sends notification

For passive checks you should enable freshness checking so that if no
checks comes in Nagios will keep things going.


If you really want one notification per passive check and/or your
passive checks only comes in when there's a problem (ex. SNMP traps)
then what you'll want is to set-up a volatile service. With volatile
services you can still play with active/passive and freshness settings
to change the exact behavior, so I recommend that you experiment
yourself until you get the desired results.

Thomas

On 30/05/07 09:10 AM, Sapon, Dimitry wrote:
 From what I understand, the notification_interval option defined in the
 service definition is what tells Nagios how often to resend the message.
 Default is 60 hence why you might never have gotten another one. Try
 lowering that value and that should work.
 
 
 *From:* [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] *On Behalf Of *chiel
 *Sent:* Wednesday, May 30, 2007 8:58 AM
 *To:* nagios-users@lists.sourceforge.net
 *Subject:* [Nagios-users] Send notification if state doesn't change
 
 hi all,
  
 I got some passive services checks in nagios. When this services goes
 into critical state I get a notification.
 But everytime I need to reset the service to OK by submitting a passive
 check through the nagios webinterface. Because if I leave it in critical
 I will not send a other notification if a other critical result occurs,
 because the service is already in a critical state.
  
 Is there something to keep sending notification for a passive check
 (maybe active check to) even if that service is already in, for example,
 critical?
  
 chiel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Send notification if state doesn't change

2007-05-30 Thread Morris, Patrick
 I got some passive services checks in nagios. When this 
 services goes into critical state I get a notification.
 But everytime I need to reset the service to OK by submitting 
 a passive check through the nagios webinterface. Because if I 
 leave it in critical I will not send a other notification if 
 a other critical result occurs, because the service is 
 already in a critical state.
  
 Is there something to keep sending notification for a passive 
 check (maybe active check to) even if that service is already 
 in, for example, critical?

Set is_volatile 1 on your service

http://nagios.sourceforge.net/docs/2_0/volatileservices.html

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null