Re: [Nagios-users] Notification Question

2013-02-26 Thread Bruno Martins
Enable_notifications=0 in nagios.cfg


Bruno Martins

 Original message 
Subject: [Nagios-users] Notification Question 
From: Edwin Zoeller edwin.zoel...@ama-assn.org 
To: Nagios Users List (nagios-users@lists.sourceforge.net) 
nagios-users@lists.sourceforge.net 
CC:  

I am in the process of switching over from Nagios core (free) to NagiosXI. Can 
someone tell me where I can stop notifications temporarily until I cutover.

 

Thanks--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
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] Notification Question

2013-02-26 Thread Edwin Zoeller
Thanks

From: Bruno Martins [mailto:bmomart...@sapo.pt]
Sent: Tuesday, February 26, 2013 08:39 AM
To: nagios-users@lists.sourceforge.net nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Notification Question

Enable_notifications=0 in nagios.cfg


Bruno Martins


 Original message 
Subject: [Nagios-users] Notification Question
From: Edwin Zoeller edwin.zoel...@ama-assn.org
To: Nagios Users List (nagios-users@lists.sourceforge.net) 
nagios-users@lists.sourceforge.net
CC:


I am in the process of switching over from Nagios core (free) to NagiosXI. Can 
someone tell me where I can stop notifications temporarily until I cutover.

Thanks
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
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] Notification question

2010-01-19 Thread Morris, Patrick
Steven Battaille wrote:

 I’m having a question about the notifications that are being sent by 
 nagios.

  

 I found out that if you put the notification interval at 0 you only 
 get a mail when the service goes into the type you defined.

  

 I’ll explain my question with an example.

  

 We monitor the disk space of several servers. The 
 threshold for the warning and critical are set to 90 and 95.



 As soon as the service goes into warning because the 
 threshold is at 90% we get an email with a warning status (so far so good)

  

 If the threshold increases to 91% we don’t get an 
 email anymore because the state doesn’t change. (it’s still warning).

  

 We now want Nagios to send an email that as soon as the threshold 
 value has changed we get an email. (from 90 to 91)

  

 We don’t want to get an email as long as the threshold stays at 90%(we 
 already got this by mail)

  

 Does somebody knows a solution for this?

  


You'll probably want to *not* set your notification interval to zero, 
and come up with a custom notification command to do what you want 
(i.e., check if that value has changed, and don't send anything if it 
hasn't).

Naguios generally doesn't care about plugin output; it just looks at the 
result code.  No result code change means, as far as Nagios is 
concerned, nothing has changed. One warning's no different from any 
other as far as the notification logic goes.

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Notification question

2010-01-19 Thread Marc Powell

On Jan 19, 2010, at 10:15 AM, Steven Battaille wrote:

 If the threshold increases to 91% we don’t get an email 
 anymore because the state doesn’t change. (it’s still warning).
  
 We now want Nagios to send an email that as soon as the threshold value has 
 changed we get an email. (from 90 to 91)
  
 We don’t want to get an email as long as the threshold stays at 90%(we 
 already got this by mail)
  
 Does somebody knows a solution for this?

Nagios doesn't work like this. It does not know or care that it changed from 90 
to 91 so it can't do anything with it. This speaks to the core of how nagios 
sees the world.

education
When nagios runs a plugin to check something, it will receive up to 3 things 
back from the plugin -

- a numeric exit code that corresponds to the current state (OK, WARNING, 
CRITICAL, UNKNOWN)
- some text comprised of human readable output[|optional performance data]

Nagios only really cares about the state, everything else is just fluff. 

State changes are the only things that trigger notifications*, unless you have 
'is_volatile' set. If the plugin returns WARNING for 90 and WARNING for 91, 
nagios only sees WARNING for both so the state hasn't changed and a new 
notification isn't necessary. If you set is_volatile, nagios will send a 
notification every time the state is not OK (90, 91, 90, 90, 90 would all 
generate notifications.)

The part that you're interested in doing something with is in the human 
readable output. Nagios does nothing with this. It can be any text in any 
format, depending on what the plugin thinks is useful to you and what you've 
asked it to check. Since there's no possible way to know and parse an 
effectively infinite variety of plugin output content and format, nagios does 
none of it. It just makes it available in the GUI and as a macro for you to do 
whatever you want to with it on your own. Typically it's just sent to the 
notification command for inclusion in the notification.
/education

That being said, what you could do is to add some logic to your notification 
command for this case. Your notification command can be any script at all. The 
default is just a simple mail command but it could be something very complex. 
If you write your own, it would need to do things like keep track of the prior 
state and only send a notification of your criteria were met.


--
Marc

*outside of re-notifications due to notification_interval or escalations...
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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] Notification Question

2010-01-04 Thread Marcel
yeah, just set your normal_check_interval to 6 (minutes if you don't change
the interval_length), and max_check_attempts to 10, then, after 60 minutes
you would be notified. Or the oposite, maybe setting the check interval to
10 and the number of checks to notify to 6. That way you'll always know that
in the last 6 (or 10) checks in the last 60 minutes, you had a threshold
verification alert, but notifications are only sent after reaching the
max_check_attempts.

HTH.


On Mon, Jan 4, 2010 at 1:52 PM, steve f a31mod...@hotmail.com wrote:

  Hello  Happy New Year,

 Is it possible to have Nagios notify me of a service problem once an hour
 AND tell me how many times it alerted during that hour time frame?

 For example, if I run a plugin, I don't necessarily want to have a
 notification every time the threshold was met but after 1 hour, send me a
 notification that during that hour time period, the threshold was exceeded
 10 times?

 I know that via the notification cfg I can set the time frame for sending a
 notification but can I keep a running total of the number of alerts for that
 1 hour timeframe?

 Thanks,
 Steve

 --
 Hotmail: Trusted email with powerful SPAM protection. Sign up 
 now.http://clk.atdmt.com/GBL/go/177141665/direct/01/


 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and
 easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev
 ___
 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 the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
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] Notification Question

2010-01-04 Thread Jim Avery
2010/1/4 steve f a31mod...@hotmail.com:
 Hello  Happy New Year,

 Is it possible to have Nagios notify me of a service problem once an hour
 AND tell me how many times it alerted during that hour time frame?

 For example, if I run a plugin, I don't necessarily want to have a
 notification every time the threshold was met but after 1 hour, send me a
 notification that during that hour time period, the threshold was exceeded
 10 times?

 I know that via the notification cfg I can set the time frame for sending a
 notification but can I keep a running total of the number of alerts for that
 1 hour timeframe?

Out of the box, no I don't think there is a way you can do that.

If you use ndoutils, I guess you could write a custom notification
command script which gets the information you need by doing a SQL
query of the database.

 Thanks,

I'm not sure you will want to thank me for this advice!  The NDO
schema can be a right pain.

Cheers,

Jim

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
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] Notification Question

2007-06-22 Thread Sapon, Dimitry
I know I know...RTFM right? ;)
 
From the escalations entry at the bottom 
(http://nagios.sourceforge.net/docs/2_0/escalations.html):
 
One last note about notification intervals deals with intervals of 0. An 
interval of 0 means that Nagios should only sent a notification out for the 
first valid notification during that escalation definition. All subsequent 
notifications for the hostgroup or service will be suppressed.
 
Seems to work fine now...I'll report back if it's not functioning as needed.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sapon, Dimitry
Sent: Thursday, June 21, 2007 9:37 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Notification Question


Hi,
 
I have a criteria that only the first two non-OK Hard State notifications need 
to be sent out (at whatever the specified interval is). Afterwards, it's enough 
that it just keeps logging it with Nagios. I thought I could get this done via 
escalations whereby I set the first escalation to sent an email on warning and 
all further escalations to send out on OK status. I realized that when you 
specify states in escalations, the escalations only trigger when the 
host/service hits that state, otherwise, the default profile values get used.
 
Is there any way I can fulfill this criteria? Maybe there's a way to disable 
notifications in the regular service definitions but allow them to be sent out 
on the first two escalations?
 
Any help is appreciated. Thanks in advance.
 
Regards,
Dimitry
___

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 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] notification question...

2007-01-12 Thread Aaron Segura
http://nagios.sourceforge.net/docs/2_0/macros.html#servicedesc

$OUTPUT$ - $HOSTOUTPUT$
$DATETIME$ - either $SHORTDATETIME$ or $LONGDATETIME$

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lacayo,
Luis F
Sent: Friday, January 12, 2007 11:34 AM
To: Nagios Users mailinglist
Subject: [Nagios-users] notification question...

HI all, 

I have a very strange problem.  I just upgrade to NAGIOS 2.6 from a
version 1. (Don't ask please).

On my previous production server, I had the host-notify-by-email command
define as:

define command{
namehost-notify-by-email
command_namehost-notify-by-email
command_line$USER1$/notify-email.pl --HOSTNAME=$HOSTNAME$
--HOSTALIAS=$HOSTALIAS$ --HOSTADDRESS=$HOSTADDRESS$
--LASTSTATECHANGE=$LASTSTATECHANGE$ --TIMET=$TIMET$
--HOSTSTATE=$HOSTSTATE$ --OUTPUT=$OUTPUT$ --DATETIME=$DATETIME$
--NOTIFICATIONTYPE=$NOTIFICATIONTYPE$ | /bin/mail -s 'Host $HOSTSTATE$
alert for $HOSTALIAS$! ($HOSTNAME$)' $CONTACTEMAIL$
}

The same as the new production version, however when I get an alert I am
not getting the same information on the email. 

The $OUTPUT$ and the $DATETIME$ is not being sent on the email. 

It works fine on the previous version. 

Any help is greatly appreciated.

Luis Lacayo


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE
V
___
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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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] notification question...

2007-01-12 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Lacayo, Luis F
 Sent: Friday, January 12, 2007 12:34 PM
 To: Nagios Users mailinglist
 Subject: [Nagios-users] notification question...
 
 HI all,
 
 I have a very strange problem.  I just upgrade to NAGIOS 2.6 from a
 version 1. (Don't ask please).

In addition to the previous response, you'll probably want to look at
the What's New documentation or Changelog to see the other changes
between versions.

--
Marc

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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