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 
Subject: Re: [Nagios-users] Notification Question

Enable_notifications=0 in nagios.cfg


Bruno Martins


 Original message 
Subject: [Nagios-users] Notification Question
From: Edwin Zoeller 
To: "Nagios Users List (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 Bruno Martins
Enable_notifications=0 in nagios.cfg


Bruno Martins

 Original message 
Subject: [Nagios-users] Notification Question 
From: Edwin Zoeller  
To: "Nagios Users List (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

[Nagios-users] Notification Question

2013-02-26 Thread Edwin Zoeller
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 did not execute

2012-08-30 Thread Patrick Morris
On 8/29/2012 3:54 AM, Net Warrior wrote:
> Cannot do that cuz it-s a production server, I have a testing server
> where I test the alarms with the same configuration and it works
> If I find something I will let you know.
>
> Thanks
>
>
> 2012/8/28 Travis Runyard :
>> That is really strange. Have you tried changing its ip to an invalid one and
>> see if you can recreate the problem?
>>
>> On Aug 28, 2012 5:29 PM, "Net Warrior"  wrote:
>>> Thanks for your advice, I know what you mean, but this is not the case
>>> unfortunately, In the logs I can see the 3 time check was reached and
>>> the alarm did not fired, now the server is up and I did not get the
>>> notification the server is back on line either.
>>>
>>> Is critical and not SOFT for the host and the service
>>> [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out)
>>> [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL -
>>> Socket timeout after 30 seconds
>>>
>>> [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss =
>>> 0%, RTA = 4.84 ms
>>>
>>> This is weird.
>>>
>>> Thanks for your time and support
>>> Regards
>>>
>>>
>>> 2012/8/28 Travis Runyard :
 Your should look at the log before the service notification was
 suppressed
 because the host was down. I'm 90% sure the reason why your host down
 notification was not sent was because the host was in a soft state type
 and
 came back online before it was determined to be in a hard state. And you
 didn't post your linux-server template config so you will have to check
 your
 and retry_interval definition.

 For my host objects I set a retry_interval of 1 and max_check_attemps of
 2
 in the template so I get notified a little quicker when a host goes
 down.

 http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html

 -Travis Runyard


I would also check to make sure host or global notifications were not 
disabled at that point in time, and that flap detection had not kicked 
in.  Those are the most likely reasons I can think of for no 
notification to happen even though the host was in a hard critical state.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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 did not execute

2012-08-29 Thread Net Warrior
Cannot do that cuz it-s a production server, I have a testing server
where I test the alarms with the same configuration and it works
If I find something I will let you know.

Thanks


2012/8/28 Travis Runyard :
> That is really strange. Have you tried changing its ip to an invalid one and
> see if you can recreate the problem?
>
> On Aug 28, 2012 5:29 PM, "Net Warrior"  wrote:
>>
>> Thanks for your advice, I know what you mean, but this is not the case
>> unfortunately, In the logs I can see the 3 time check was reached and
>> the alarm did not fired, now the server is up and I did not get the
>> notification the server is back on line either.
>>
>> Is critical and not SOFT for the host and the service
>> [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out)
>> [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL -
>> Socket timeout after 30 seconds
>>
>> [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss =
>> 0%, RTA = 4.84 ms
>>
>> This is weird.
>>
>> Thanks for your time and support
>> Regards
>>
>>
>> 2012/8/28 Travis Runyard :
>> > Your should look at the log before the service notification was
>> > suppressed
>> > because the host was down. I'm 90% sure the reason why your host down
>> > notification was not sent was because the host was in a soft state type
>> > and
>> > came back online before it was determined to be in a hard state. And you
>> > didn't post your linux-server template config so you will have to check
>> > your
>> > and retry_interval definition.
>> >
>> > For my host objects I set a retry_interval of 1 and max_check_attemps of
>> > 2
>> > in the template so I get notified a little quicker when a host goes
>> > down.
>> >
>> > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html
>> >
>> > -Travis Runyard
>> >
>> > On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior 
>> > wrote:
>> >>
>> >> Hi there guys.
>> >>
>> >> I have face something weird, I did not get a notificationn of a down
>> >> state for a particular host,
>> >> this is the host config.
>> >>
>> >> define service{
>> >> use local-service ; Name
>> >> of service template to use
>> >> host_name   hostname
>> >> service_description SSH
>> >> check_command   check_ssh
>> >> flap_detection_enabled  0
>> >> notifications_enabled   1
>> >> notification_optionsw,u,r,c
>> >> check_period24x7
>> >> check_interval  1
>> >> max_check_attempts  3
>> >> first_notification_delay0
>> >> notification_interval   10
>> >> }
>> >>
>> >>
>> >>
>> >> define host{
>> >> use linux-server; Name of host
>> >> template to use
>> >> ; This host
>> >> definition will inherit all variables that are defined
>> >> ; in (or
>> >> inherited by) the linux-server host template definition.
>> >> host_name   hostname
>> >> alias   the alias
>> >> address x.x.x.x
>> >> contact_groups  admins
>> >> contactsnagiosadmin
>> >> check_interval  1
>> >> max_check_attempts  3
>> >> notification_interval   10
>> >> flap_detection_enabled  0
>> >> first_notification_delay0
>> >> }
>> >>
>> >> and in the logs I got
>> >> [1346196987.097821] [032.0] [pid=21145] ** Service Notification
>> >> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,
>> >> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969
>> >> [1346196987.097843] [032.1] [pid=21145] The host is either down or
>> >> unreachable, so we won't notify contacts about this service.
>> >> [1346196987.097851] [032.0] [pid=21145] Notification viability test
>> >> failed.  No notification will be sent out.
>> >>
>> >> The host is either down or unreachable --- Of coure, so why the
>> >> notification was not fired?
>> >>
>> >> Any idea what could be wrong?, I got some notification with other host
>> >> and all have the same configuration, I have already restarted nagios
>> >>
>> >> Thanks for your time and support
>> >> Best regards.
>> >>
>> >>
>> >>
>> >> --
>> >> Live Security Virtual Conference
>> >> Exclusive live event will cover all the ways today's security and
>> >> threat landscape has changed and how IT managers can respond.
>> >> Discussions
>> >> will include endpoint security, mobile security and the latest in
>> >> malware
>> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> >> ___

Re: [Nagios-users] Notification did not execute

2012-08-28 Thread Travis Runyard
That is really strange. Have you tried changing its ip to an invalid one
and see if you can recreate the problem?
On Aug 28, 2012 5:29 PM, "Net Warrior"  wrote:

> Thanks for your advice, I know what you mean, but this is not the case
> unfortunately, In the logs I can see the 3 time check was reached and
> the alarm did not fired, now the server is up and I did not get the
> notification the server is back on line either.
>
> Is critical and not SOFT for the host and the service
> [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out)
> [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL -
> Socket timeout after 30 seconds
>
> [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss =
> 0%, RTA = 4.84 ms
>
> This is weird.
>
> Thanks for your time and support
> Regards
>
>
> 2012/8/28 Travis Runyard :
> > Your should look at the log before the service notification was
> suppressed
> > because the host was down. I'm 90% sure the reason why your host down
> > notification was not sent was because the host was in a soft state type
> and
> > came back online before it was determined to be in a hard state. And you
> > didn't post your linux-server template config so you will have to check
> your
> > and retry_interval definition.
> >
> > For my host objects I set a retry_interval of 1 and max_check_attemps of
> 2
> > in the template so I get notified a little quicker when a host goes down.
> >
> > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html
> >
> > -Travis Runyard
> >
> > On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior 
> > wrote:
> >>
> >> Hi there guys.
> >>
> >> I have face something weird, I did not get a notificationn of a down
> >> state for a particular host,
> >> this is the host config.
> >>
> >> define service{
> >> use local-service ; Name
> >> of service template to use
> >> host_name   hostname
> >> service_description SSH
> >> check_command   check_ssh
> >> flap_detection_enabled  0
> >> notifications_enabled   1
> >> notification_optionsw,u,r,c
> >> check_period24x7
> >> check_interval  1
> >> max_check_attempts  3
> >> first_notification_delay0
> >> notification_interval   10
> >> }
> >>
> >>
> >>
> >> define host{
> >> use linux-server; Name of host
> >> template to use
> >> ; This host
> >> definition will inherit all variables that are defined
> >> ; in (or
> >> inherited by) the linux-server host template definition.
> >> host_name   hostname
> >> alias   the alias
> >> address x.x.x.x
> >> contact_groups  admins
> >> contactsnagiosadmin
> >> check_interval  1
> >> max_check_attempts  3
> >> notification_interval   10
> >> flap_detection_enabled  0
> >> first_notification_delay0
> >> }
> >>
> >> and in the logs I got
> >> [1346196987.097821] [032.0] [pid=21145] ** Service Notification
> >> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,
> >> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969
> >> [1346196987.097843] [032.1] [pid=21145] The host is either down or
> >> unreachable, so we won't notify contacts about this service.
> >> [1346196987.097851] [032.0] [pid=21145] Notification viability test
> >> failed.  No notification will be sent out.
> >>
> >> The host is either down or unreachable --- Of coure, so why the
> >> notification was not fired?
> >>
> >> Any idea what could be wrong?, I got some notification with other host
> >> and all have the same configuration, I have already restarted nagios
> >>
> >> Thanks for your time and support
> >> Best regards.
> >>
> >>
> >>
> --
> >> Live Security Virtual Conference
> >> Exclusive live event will cover all the ways today's security and
> >> threat landscape has changed and how IT managers can respond.
> Discussions
> >> will include endpoint security, mobile security and the latest in
> malware
> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> ___
> >> 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 did not execute

2012-08-28 Thread Net Warrior
Thanks for your advice, I know what you mean, but this is not the case
unfortunately, In the logs I can see the 3 time check was reached and
the alarm did not fired, now the server is up and I did not get the
notification the server is back on line either.

Is critical and not SOFT for the host and the service
[1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out)
[1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL -
Socket timeout after 30 seconds

[1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss =
0%, RTA = 4.84 ms

This is weird.

Thanks for your time and support
Regards


2012/8/28 Travis Runyard :
> Your should look at the log before the service notification was suppressed
> because the host was down. I'm 90% sure the reason why your host down
> notification was not sent was because the host was in a soft state type and
> came back online before it was determined to be in a hard state. And you
> didn't post your linux-server template config so you will have to check your
> and retry_interval definition.
>
> For my host objects I set a retry_interval of 1 and max_check_attemps of 2
> in the template so I get notified a little quicker when a host goes down.
>
> http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html
>
> -Travis Runyard
>
> On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior 
> wrote:
>>
>> Hi there guys.
>>
>> I have face something weird, I did not get a notificationn of a down
>> state for a particular host,
>> this is the host config.
>>
>> define service{
>> use local-service ; Name
>> of service template to use
>> host_name   hostname
>> service_description SSH
>> check_command   check_ssh
>> flap_detection_enabled  0
>> notifications_enabled   1
>> notification_optionsw,u,r,c
>> check_period24x7
>> check_interval  1
>> max_check_attempts  3
>> first_notification_delay0
>> notification_interval   10
>> }
>>
>>
>>
>> define host{
>> use linux-server; Name of host
>> template to use
>> ; This host
>> definition will inherit all variables that are defined
>> ; in (or
>> inherited by) the linux-server host template definition.
>> host_name   hostname
>> alias   the alias
>> address x.x.x.x
>> contact_groups  admins
>> contactsnagiosadmin
>> check_interval  1
>> max_check_attempts  3
>> notification_interval   10
>> flap_detection_enabled  0
>> first_notification_delay0
>> }
>>
>> and in the logs I got
>> [1346196987.097821] [032.0] [pid=21145] ** Service Notification
>> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,
>> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969
>> [1346196987.097843] [032.1] [pid=21145] The host is either down or
>> unreachable, so we won't notify contacts about this service.
>> [1346196987.097851] [032.0] [pid=21145] Notification viability test
>> failed.  No notification will be sent out.
>>
>> The host is either down or unreachable --- Of coure, so why the
>> notification was not fired?
>>
>> Any idea what could be wrong?, I got some notification with other host
>> and all have the same configuration, I have already restarted nagios
>>
>> Thanks for your time and support
>> Best regards.
>>
>>
>> --
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> ___
>> 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
>
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/1

Re: [Nagios-users] Notification did not execute

2012-08-28 Thread Travis Runyard
Your should look at the log before the service notification
was suppressed because the host was down. I'm 90% sure the reason why your
host down notification was not sent was because the host was in a soft
state type and came back online before it was determined to be in a hard
state. And you didn't post your linux-server template config so you will
have to check your and retry_interval definition.

For my host objects I set a retry_interval of 1 and max_check_attemps of 2
in the template so I get notified a little quicker when a host goes down.

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html

-Travis Runyard

On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior wrote:

> Hi there guys.
>
> I have face something weird, I did not get a notificationn of a down
> state for a particular host,
> this is the host config.
>
> define service{
> use local-service ; Name
> of service template to use
> host_name   hostname
> service_description SSH
> check_command   check_ssh
> flap_detection_enabled  0
> notifications_enabled   1
> notification_optionsw,u,r,c
> check_period24x7
> check_interval  1
> max_check_attempts  3
> first_notification_delay0
> notification_interval   10
> }
>
>
>
> define host{
> use linux-server; Name of host
> template to use
> ; This host
> definition will inherit all variables that are defined
> ; in (or
> inherited by) the linux-server host template definition.
> host_name   hostname
> alias   the alias
> address x.x.x.x
> contact_groups  admins
> contactsnagiosadmin
> check_interval  1
> max_check_attempts  3
> notification_interval   10
> flap_detection_enabled  0
> first_notification_delay0
> }
>
> and in the logs I got
> [1346196987.097821] [032.0] [pid=21145] ** Service Notification
> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,
> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969
> [1346196987.097843] [032.1] [pid=21145] The host is either down or
> unreachable, so we won't notify contacts about this service.
> [1346196987.097851] [032.0] [pid=21145] Notification viability test
> failed.  No notification will be sent out.
>
> The host is either down or unreachable --- Of coure, so why the
> notification was not fired?
>
> Any idea what could be wrong?, I got some notification with other host
> and all have the same configuration, I have already restarted nagios
>
> Thanks for your time and support
> Best regards.
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> 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
>
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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

[Nagios-users] Notification did not execute

2012-08-28 Thread Net Warrior
Hi there guys.

I have face something weird, I did not get a notificationn of a down
state for a particular host,
this is the host config.

define service{
use local-service ; Name
of service template to use
host_name   hostname
service_description SSH
check_command   check_ssh
flap_detection_enabled  0
notifications_enabled   1
notification_optionsw,u,r,c
check_period24x7
check_interval  1
max_check_attempts  3
first_notification_delay0
notification_interval   10
}



define host{
use linux-server; Name of host
template to use
; This host
definition will inherit all variables that are defined
; in (or
inherited by) the linux-server host template definition.
host_name   hostname
alias   the alias
address x.x.x.x
contact_groups  admins
contactsnagiosadmin
check_interval  1
max_check_attempts  3
notification_interval   10
flap_detection_enabled  0
first_notification_delay0
}

and in the logs I got
[1346196987.097821] [032.0] [pid=21145] ** Service Notification
Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0,
Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969
[1346196987.097843] [032.1] [pid=21145] The host is either down or
unreachable, so we won't notify contacts about this service.
[1346196987.097851] [032.0] [pid=21145] Notification viability test
failed.  No notification will be sent out.

The host is either down or unreachable --- Of coure, so why the
notification was not fired?

Any idea what could be wrong?, I got some notification with other host
and all have the same configuration, I have already restarted nagios

Thanks for your time and support
Best regards.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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


[Nagios-users] Notification Issue - Only Executing One Method

2012-08-03 Thread Net Warrior
Hi there list.
I'm having an issue with the notifiactions, I 'm using
nagios-3.4.1-2.el6.x86_64, this is my configuration:



define contact{
contact_namenagiosadmin ; Short name of user
use generic-contact ; Inherit
default values from generic-contact template (defined above)
alias   Administrador Nagios; Full name
of user
host_notifications_enabled  1
service_notifications_enabled   1
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,u,r
service_notification_commands   send-sms
service_notification_commands   notify-service-by-email
host_notification_commands  notify-host-by-email
email   u...@domain.com
can_submit_commands 1
}

My aim with this configuration is to receive an SMS along with the email
notification, but only one of them is executed, with the configuration
above on the the sms is received
if I comment the send-sms method I receive the mail, but both enabled do
not work, I enabled some debug and there is no errors such as , cannot
execute one or another, in
the logs I only see that only one is executed but not both.

Any ideas what am I doing wrong? If you need more information just let me
know.

Thanks for your time and support
Best regards
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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 bug in Nagios Core 3.4.1

2012-07-17 Thread Mark Elsen
>  I have upgraded to Nagios Core 3.4.1 last week. There are a couple of
> issues I noticed.
>
> 1. notification for service check failures are being sent when the host is
> in downtime.
> 2. downtime are not being remove when it is expired.
>
>
>
 http://tracker.nagios.org/view.php?id=338

M.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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

[Nagios-users] notification bug in Nagios Core 3.4.1

2012-07-17 Thread Chung, Jeff
I have upgraded to Nagios Core 3.4.1 last week. There are a couple of issues I 
noticed.

1. notification for service check failures are being sent when the host is in 
downtime.
2. downtime are not being remove when it is expired.


For issue #1, here is what I did to test.
schedule downtime for host dsmgtbal800 and make service TEST_SERVICE critical 
to see if a notification will be sent.
Here is the syslog entry for submitting the downtime.
Jul 16 09:19:16 dsmgtbal800 nagios: EXTERNAL COMMAND: 
SCHEDULE_HOST_DOWNTIME;dsmgtbal800;1342444731;1342445451;1;0;7200;chung;testing 
notification

Here is the hostdowntime entry in status.dat.
hostdowntime {
host_name=dsmgtbal800
downtime_id=13047
entry_time=1342444756
start_time=1342444731
end_time=1342445451
triggered_by=0
fixed=1
duration=720
is_in_effect=1
author=chung
comment=testing notification
}

Here are the debug file entries with debug_level=32.
[1342444913.262290] [032.0] [pid=721] ** Service Notification Attempt ** Host: 
'dsmgtbal800', Service: 'TEST_SERVICE', Type: 0, Options: 0, Current Stat
e: 2, Last Notification: Wed Dec 31 19:00:00 1969
[1342444913.262371] [032.0] [pid=721] Notification viability test passed.
[1342444913.262378] [032.1] [pid=721] Current notification number: 1 
(incremented)
[1342444913.262384] [032.2] [pid=721] Creating list of contacts to be notified.
[1342444913.262437] [032.1] [pid=721] Service notification will NOT be 
escalated.
[1342444913.262451] [032.1] [pid=721] Adding normal contacts for service to 
notification list.
[1342444913.262459] [032.2] [pid=721] ** Checking service notification 
viability for contact 'chung-email'...
[1342444913.262474] [032.2] [pid=721] ** Service notification viability for 
contact 'chung-email' PASSED.
[1342444913.262481] [032.2] [pid=721] Adding contact 'chung-email' to 
notification list.
[1342444913.262526] [032.2] [pid=721] ** Notifying contact 'chung-email'


For issue #2, the host downtime entry in status.dat is still there after the 
downtime expired.


Anyone else having these issues?





IMPORTANT: The information contained in this email and/or its attachments is 
confidential. If you are not the intended recipient, please notify the sender 
immediately by reply and immediately delete this message and all its 
attachments. Any review, use, reproduction, disclosure or dissemination of this 
message or any attachment by an unintended recipient is strictly prohibited. 
Neither this message nor any attachment is intended as or should be construed 
as an offer, solicitation or recommendation to buy or sell any security or 
other financial instrument. Neither the sender, his or her employer nor any of 
their respective affiliates makes any warranties as to the completeness or 
accuracy of any of the information contained herein or that this message or any 
of its attachments is free of viruses.
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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 emails

2011-12-03 Thread Claudio Kuenzler
So much to what I wrote a few days ago...: you also checked them with your
Nagios user, not root, right?

But at least it works now ;-)

On Sat, Dec 3, 2011 at 12:58 PM, Nick Price  wrote:

> Stupid  I  forgot that bit
>
> ** **
>
> Did chmod 5777 sendmail  and it works now
>
> ** **
>
> Thanks for the help
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> *From:* Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
> *Sent:* Friday, December 02, 2011 12:54
> *To:* nagios-users@lists.sourceforge.net
>
> *Subject:* Re: [Nagios-users] notification emails
>
> ** **
>
> On 02.12.2011 12:36, Nick Price wrote: 
>
> No  its still activated
>
>  
>
> I even copied the configs from the old server.
>
>  
>
> It seems it’s just fedora 16 that has the problem. 
>
>  
>
> This version of Nagios works fine with fedora 16.
>
>  
>
> I looked on tactical view
>
>  
>
> Everything is enabled except SSH localhost
>
>  
>
>  
>
> *From:* Claudio Kuenzler 
> [mailto:c...@claudiokuenzler.com]
>
> *Sent:* Friday, December 02, 2011 12:14
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] notification emails
>
>  
>
> Did you by accident disable the notifications?
>
> On the Nagios web interface, click on Tactical Overview.
> At the end of the page (Monitoring Features) check that Notifications are
> green/enabled.
>
> It would make sense as you don't have SELinux and all commands seem to
> work from command-line (you also checked them with your Nagios user, not
> root, right?).
>
> On Fri, Dec 2, 2011 at 11:30 AM, Nick Price  wrote:
>
> Ok
>
>  
>
> I am getting in the debug log
>
>  
>
> Notification viability test failed. No  notification will be sent.
>
>  
>
> What is this and how to troubleshoot it.
>
>  
>
> I can send emails from command line.
>
> Selinux is disabled
>
>  
>
>  
>
>  
>
>  
>
>  
>
> *From:* m...@catsnest.co.uk [mailto:m...@catsnest.co.uk]
> *Sent:* Friday, December 02, 2011 10:23
>
>
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] notification emails
>
>  
>
>  
>
> On Fri, Dec 2, 2011 at 8:14 AM, Nick Price  wrote:
>
> Yes  printf works
>
> I had the same version of Nagios with the same config files working OK
> with fedora 14
>
> It is only when I installed it on fedora 16 the notifications don’t work**
> **
>
> I think it’s a bug within Nagios
>
>  
>
> I doubt that its a bug in Nagios, as Nagios just uses your system's
> commands to send notifications.
> What is your notification config? can you run the commands the
> notification uses as the Nagios user?
> Is there some security such as SE Linux running?
>
> You could try adding logging to the Notification command eg add a ">>
> /var/tmp/Notification.log"
>
> or instead of the Notification command being a direct command, make a
> script for it instead.
>
> Ritchie,
>
> --
> <-- http://23.me.uk/2 -->
> <--Time flies like an arrow; fruit flies like a banana.  -->
>   
>
>  
>
>  
>
> Did you also do
>
> printf ‘this is a test’ | /bin/mail  –s  test_email  em...@mydomain.com
>
> ?
>
> On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:
>
> The defaults are there.
>
>  
>
>  
>
> I didecho ‘this is a test’ | /bin/mail  –s  test_email
> em...@mydomain.com
>
>  
>
>  
>
> That went out Ok
>
>  
>
> What to look at next
>
>  
>
>  
>
>  
>
> *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com]
> *Sent:* Wednesday, November 30, 2011 12:37
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] notification emails
>
>  
>
> Did you check the command which is used to send notifications in
> command.cfg or checkcommand.cfg ?
> Maybe you don't have the binary or you need to rename the command.
>
> By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.*
> ***
>
> On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:
>
> Hello
>
> I am not sure if this is a bug or config issue.
>
> I have a clean install of fedora 16 32 bit  with a manual install of nagios
> 3.3.1  and nagios plugins 1.4.15.
>
> I see in the debug log
>
> Notification viability test f

Re: [Nagios-users] notification emails

2011-12-03 Thread Nick Price
Stupid  I  forgot that bit

 

Did chmod 5777 sendmail  and it works now

 

Thanks for the help

 

 

 

 

From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at] 
Sent: Friday, December 02, 2011 12:54
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] notification emails

 

On 02.12.2011 12:36, Nick Price wrote: 

No  its still activated

 

I even copied the configs from the old server.

 

It seems it's just fedora 16 that has the problem. 

 

This version of Nagios works fine with fedora 16.

 

I looked on tactical view

 

Everything is enabled except SSH localhost

 

 

From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] 
Sent: Friday, December 02, 2011 12:14
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

Did you by accident disable the notifications?

On the Nagios web interface, click on Tactical Overview.
At the end of the page (Monitoring Features) check that Notifications are
green/enabled.

It would make sense as you don't have SELinux and all commands seem to work
from command-line (you also checked them with your Nagios user, not root,
right?).

On Fri, Dec 2, 2011 at 11:30 AM, Nick Price  wrote:

Ok

 

I am getting in the debug log

 

Notification viability test failed. No  notification will be sent.

 

What is this and how to troubleshoot it.

 

I can send emails from command line.

Selinux is disabled

 

 

 

 

 

From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] 
Sent: Friday, December 02, 2011 10:23


To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

 

On Fri, Dec 2, 2011 at 8:14 AM, Nick Price  wrote:

Yes  printf works

I had the same version of Nagios with the same config files working OK with
fedora 14

It is only when I installed it on fedora 16 the notifications don't work

I think it's a bug within Nagios

 

I doubt that its a bug in Nagios, as Nagios just uses your system's commands
to send notifications.
What is your notification config? can you run the commands the notification
uses as the Nagios user?
Is there some security such as SE Linux running?

You could try adding logging to the Notification command eg add a ">>
/var/tmp/Notification.log"

or instead of the Notification command being a direct command, make a script
for it instead.

Ritchie,

--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->
  

 

 

Did you also do 

printf 'this is a test' | /bin/mail  -s  test_email  em...@mydomain.com

?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:

The defaults are there.

 

 

I didecho 'this is a test' | /bin/mail  -s  test_email
em...@mydomain.com

 

 

That went out Ok

 

What to look at next

 

 

 

From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] 
Sent: Wednesday, November 30, 2011 12:37
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

Did you check the command which is used to send notifications in command.cfg
or checkcommand.cfg ?
Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:

Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of nagios
3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.


the contact, which will be shown some lines above (always post a complete
debug log for a notification!), did not pass the viability tests. this can
be notification_options, notification_period, notifications_disabled, etc.
so to conclude with, i'd highly advise you to

1/ post the contact object definition from the objects.cache
2/ post the complete service object definition from the objects.cache
3/ post the complete debug for this service and contact notification






I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 



--
All the data continuously generated in your IT infrastruct

Re: [Nagios-users] notification emails

2011-12-02 Thread Michael Friedrich

On 02.12.2011 12:36, Nick Price wrote:


No  its still activated

I even copied the configs from the old server.

It seems it's just fedora 16 that has the problem.

This version of Nagios works fine with fedora 16.

I looked on tactical view

Everything is enabled except SSH localhost

*From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com]
*Sent:* Friday, December 02, 2011 12:14
*To:* Nagios Users List
*Subject:* Re: [Nagios-users] notification emails

Did you by accident disable the notifications?

On the Nagios web interface, click on Tactical Overview.
At the end of the page (Monitoring Features) check that Notifications 
are green/enabled.


It would make sense as you don't have SELinux and all commands seem to 
work from command-line (you also checked them with your Nagios user, 
not root, right?).


On Fri, Dec 2, 2011 at 11:30 AM, Nick Price <mailto:np...@hotmail.com>> wrote:


Ok

I am getting in the debug log

Notification viability test failed. No  notification will be sent.

What is this and how to troubleshoot it.

I can send emails from command line.

Selinux is disabled

*From:*m...@catsnest.co.uk <mailto:m...@catsnest.co.uk> 
[mailto:m...@catsnest.co.uk <mailto:m...@catsnest.co.uk>]

*Sent:* Friday, December 02, 2011 10:23


*To:* Nagios Users List
*Subject:* Re: [Nagios-users] notification emails

On Fri, Dec 2, 2011 at 8:14 AM, Nick Price <mailto:np...@hotmail.com>> wrote:


Yes  printf works

I had the same version of Nagios with the same config files working OK 
with fedora 14


It is only when I installed it on fedora 16 the notifications don't work

I think it's a bug within Nagios

I doubt that its a bug in Nagios, as Nagios just uses your system's 
commands to send notifications.
What is your notification config? can you run the commands the 
notification uses as the Nagios user?

Is there some security such as SE Linux running?

You could try adding logging to the Notification command eg add a ">> 
/var/tmp/Notification.log"


or instead of the Notification command being a direct command, make a 
script for it instead.


Ritchie,

--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->

Did you also do

printf 'this is a test' | /bin/mail  --s  test_email
em...@mydomain.com <mailto:em...@mydomain.com>

?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price mailto:np...@hotmail.com>> wrote:

The defaults are there.

I didecho 'this is a test' | /bin/mail  --s  test_email
em...@mydomain.com <mailto:em...@mydomain.com>

That went out Ok

What to look at next

*From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com
<mailto:c...@claudiokuenzler.com>]
*Sent:* Wednesday, November 30, 2011 12:37
*To:* Nagios Users List
*Subject:* Re: [Nagios-users] notification emails

Did you check the command which is used to send notifications in
command.cfg or checkcommand.cfg ?
Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not
mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price mailto:np...@hotmail.com>> wrote:

Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install
of nagios
3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.



the contact, which will be shown some lines above (always post a 
complete debug log for a notification!), did not pass the viability 
tests. this can be notification_options, notification_period, 
notifications_disabled, etc. so to conclude with, i'd highly advise you to


1/ post the contact object definition from the objects.cache
2/ post the complete service object definition from the objects.cache
3/ post the complete debug for this service and contact notification




I can send test emails from this server using sendmail and that
bit works


Is there a solution for this.

Regards

Nick



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
<mailto: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 withou

Re: [Nagios-users] notification emails

2011-12-02 Thread Nick Price
No  its still activated

 

I even copied the configs from the old server.

 

It seems it's just fedora 16 that has the problem. 

 

This version of Nagios works fine with fedora 16.

 

I looked on tactical view

 

Everything is enabled except SSH localhost

 

 

From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] 
Sent: Friday, December 02, 2011 12:14
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

Did you by accident disable the notifications?

On the Nagios web interface, click on Tactical Overview.
At the end of the page (Monitoring Features) check that Notifications are
green/enabled.

It would make sense as you don't have SELinux and all commands seem to work
from command-line (you also checked them with your Nagios user, not root,
right?).

On Fri, Dec 2, 2011 at 11:30 AM, Nick Price  wrote:

Ok

 

I am getting in the debug log

 

Notification viability test failed. No  notification will be sent.

 

What is this and how to troubleshoot it.

 

I can send emails from command line.

Selinux is disabled

 

 

 

 

 

From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] 
Sent: Friday, December 02, 2011 10:23


To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

 

On Fri, Dec 2, 2011 at 8:14 AM, Nick Price  wrote:

Yes  printf works

I had the same version of Nagios with the same config files working OK with
fedora 14

It is only when I installed it on fedora 16 the notifications don't work

I think it's a bug within Nagios

 

I doubt that its a bug in Nagios, as Nagios just uses your system's commands
to send notifications.
What is your notification config? can you run the commands the notification
uses as the Nagios user?
Is there some security such as SE Linux running?

You could try adding logging to the Notification command eg add a ">>
/var/tmp/Notification.log"

or instead of the Notification command being a direct command, make a script
for it instead.

Ritchie,

--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->
  

 

 

Did you also do 

printf 'this is a test' | /bin/mail  -s  test_email  em...@mydomain.com

?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:

The defaults are there.

 

 

I didecho 'this is a test' | /bin/mail  -s  test_email
em...@mydomain.com

 

 

That went out Ok

 

What to look at next

 

 

 

From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] 
Sent: Wednesday, November 30, 2011 12:37
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

Did you check the command which is used to send notifications in command.cfg
or checkcommand.cfg ?
Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:

Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of nagios
3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.

I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk tak

Re: [Nagios-users] notification emails

2011-12-02 Thread Claudio Kuenzler
Did you by accident disable the notifications?

On the Nagios web interface, click on Tactical Overview.
At the end of the page (Monitoring Features) check that Notifications are
green/enabled.

It would make sense as you don't have SELinux and all commands seem to work
from command-line (you also checked them with your Nagios user, not root,
right?).

On Fri, Dec 2, 2011 at 11:30 AM, Nick Price  wrote:

> Ok
>
> ** **
>
> I am getting in the debug log
>
> ** **
>
> Notification viability test failed. No  notification will be sent.
>
> ** **
>
> What is this and how to troubleshoot it.
>
> ** **
>
> I can send emails from command line.
>
> Selinux is disabled
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> *From:* m...@catsnest.co.uk [mailto:m...@catsnest.co.uk]
> *Sent:* Friday, December 02, 2011 10:23
>
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] notification emails
>
> ** **
>
> ** **
>
> On Fri, Dec 2, 2011 at 8:14 AM, Nick Price  wrote:
>
> Yes  printf works
>
> I had the same version of Nagios with the same config files working OK
> with fedora 14
>
> It is only when I installed it on fedora 16 the notifications don’t work**
> **
>
> I think it’s a bug within Nagios
>
>  
>
> I doubt that its a bug in Nagios, as Nagios just uses your system's
> commands to send notifications.
> What is your notification config? can you run the commands the
> notification uses as the Nagios user?
> Is there some security such as SE Linux running?
>
> You could try adding logging to the Notification command eg add a ">>
> /var/tmp/Notification.log"
>
> or instead of the Notification command being a direct command, make a
> script for it instead.
>
> Ritchie,
>
> --
> <-- http://23.me.uk/2 -->
> <--Time flies like an arrow; fruit flies like a banana.  -->
>   
>
>  
>
>  
>
> Did you also do
>
> printf ‘this is a test’ | /bin/mail  –s  test_email  em...@mydomain.com
>
> ?
>
> On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:
>
> The defaults are there.
>
>  
>
>  
>
> I didecho ‘this is a test’ | /bin/mail  –s  test_email
> em...@mydomain.com
>
>  
>
>  
>
> That went out Ok
>
>  
>
> What to look at next
>
>  
>
>  
>
>  
>
> *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com]
> *Sent:* Wednesday, November 30, 2011 12:37
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] notification emails
>
>  
>
> Did you check the command which is used to send notifications in
> command.cfg or checkcommand.cfg ?
> Maybe you don't have the binary or you need to rename the command.
>
> By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.*
> ***
>
> On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:
>
> Hello
>
> I am not sure if this is a bug or config issue.
>
> I have a clean install of fedora 16 32 bit  with a manual install of nagios
> 3.3.1  and nagios plugins 1.4.15.
>
> I see in the debug log
>
> Notification viability test failed. No notification will be sent out.
>
> I can send test emails from this server using sendmail and that bit works
>
>
> Is there a solution for this.
>
> Regards
>
> Nick
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> 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
>
>  
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> Nagios-users mailing list
&g

Re: [Nagios-users] notification emails

2011-12-02 Thread Nick Price
Ok

 

I am getting in the debug log

 

Notification viability test failed. No  notification will be sent.

 

What is this and how to troubleshoot it.

 

I can send emails from command line.

Selinux is disabled

 

 

 

 

 

From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] 
Sent: Friday, December 02, 2011 10:23
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

 

On Fri, Dec 2, 2011 at 8:14 AM, Nick Price  wrote:

Yes  printf works

I had the same version of Nagios with the same config files working OK with 
fedora 14

It is only when I installed it on fedora 16 the notifications don’t work

I think it’s a bug within Nagios

 

I doubt that its a bug in Nagios, as Nagios just uses your system's commands to 
send notifications.
What is your notification config? can you run the commands the notification 
uses as the Nagios user?
Is there some security such as SE Linux running?

You could try adding logging to the Notification command eg add a ">> 
/var/tmp/Notification.log"

or instead of the Notification command being a direct command, make a script 
for it instead.

Ritchie,

--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->
  

 

 

Did you also do 

printf ‘this is a test’ | /bin/mail  –s  test_email  em...@mydomain.com

?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:

The defaults are there.

 

 

I didecho ‘this is a test’ | /bin/mail  –s  test_email  
em...@mydomain.com

 

 

That went out Ok

 

What to look at next

 

 

 

From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] 
Sent: Wednesday, November 30, 2011 12:37
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

Did you check the command which is used to send notifications in command.cfg or 
checkcommand.cfg ?
Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:

Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of nagios
3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.

I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Nagios-users mailing li

Re: [Nagios-users] notification emails

2011-12-02 Thread Michael Friedrich

On 02.12.2011 09:14, Nick Price wrote:


Yes  printf works

I had the same version of Nagios with the same config files working OK 
with fedora 14


It is only when I installed it on fedora 16 the notifications don't work

I think it's a bug within Nagios



nagios just calls the command forking into a shell, so i'd rather guess 
this will be affected by turned on selinux. provide the output of


# getenforce



Did you also do

printf 'this is a test' | /bin/mail  --s  test_email 
em...@mydomain.com <mailto:em...@mydomain.com>


?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price <mailto:np...@hotmail.com>> wrote:


The defaults are there.

I didecho 'this is a test' | /bin/mail  --s  test_email 
em...@mydomain.com <mailto:em...@mydomain.com>


That went out Ok

What to look at next

*From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com 
<mailto:c...@claudiokuenzler.com>]

*Sent:* Wednesday, November 30, 2011 12:37
*To:* Nagios Users List
*Subject:* Re: [Nagios-users] notification emails

Did you check the command which is used to send notifications in 
command.cfg or checkcommand.cfg ?

Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price <mailto:np...@hotmail.com>> wrote:


Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of 
nagios

3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.

I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
<mailto: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


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
<mailto: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



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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 emails

2011-12-02 Thread mail
On Fri, Dec 2, 2011 at 8:14 AM, Nick Price  wrote:

> Yes  printf works
>
> I had the same version of Nagios with the same config files working OK
> with fedora 14
>
> It is only when I installed it on fedora 16 the notifications don’t work**
> **
>
> I think it’s a bug within Nagios
>
> ** **
>
> **
>
I doubt that its a bug in Nagios, as Nagios just uses your system's
commands to send notifications.
What is your notification config? can you run the commands the notification
uses as the Nagios user?
Is there some security such as SE Linux running?

You could try adding logging to the Notification command eg add a ">>
/var/tmp/Notification.log"

or instead of the Notification command being a direct command, make a
script for it instead.

Ritchie,

--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->


>  **
>
> ** **
>
> Did you also do
>
> printf ‘this is a test’ | /bin/mail  –s  test_email  em...@mydomain.com
>
> ?
>
> On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:
>
> The defaults are there.
>
>  
>
>  
>
> I didecho ‘this is a test’ | /bin/mail  –s  test_email
> em...@mydomain.com
>
>  
>
>  
>
> That went out Ok
>
>  
>
> What to look at next
>
>  
>
>  ****
>
>  
>
> *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com]
> *Sent:* Wednesday, November 30, 2011 12:37
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] notification emails
>
>  
>
> Did you check the command which is used to send notifications in
> command.cfg or checkcommand.cfg ?
> Maybe you don't have the binary or you need to rename the command.
>
> By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.*
> ***
>
> On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:
>
> Hello
>
> I am not sure if this is a bug or config issue.
>
> I have a clean install of fedora 16 32 bit  with a manual install of nagios
> 3.3.1  and nagios plugins 1.4.15.
>
> I see in the debug log
>
> Notification viability test failed. No notification will be sent out.
>
> I can send test emails from this server using sendmail and that bit works
>
>
> Is there a solution for this.
>
> Regards
>
> Nick
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> 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
>
>  
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> 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
>
> ** **
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> 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
>
--
All the data continuousl

Re: [Nagios-users] notification emails

2011-12-02 Thread Nick Price
Yes  printf works

I had the same version of Nagios with the same config files working OK with
fedora 14

It is only when I installed it on fedora 16 the notifications don't work

I think it's a bug within Nagios

 

 

 

Did you also do 

printf 'this is a test' | /bin/mail  -s  test_email  em...@mydomain.com

?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:

The defaults are there.

 

 

I didecho 'this is a test' | /bin/mail  -s  test_email
em...@mydomain.com

 

 

That went out Ok

 

What to look at next

 

 

 

From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] 
Sent: Wednesday, November 30, 2011 12:37
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

Did you check the command which is used to send notifications in command.cfg
or checkcommand.cfg ?
Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:

Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of nagios
3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.

I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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 emails

2011-12-01 Thread Claudio Kuenzler
Did you also do

printf ‘this is a test’ | /bin/mail  –s  test_email  em...@mydomain.com

?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price  wrote:

> The defaults are there.
>
> ** **
>
> ** **
>
> I didecho ‘this is a test’ | /bin/mail  –s  test_email
> em...@mydomain.com
>
> ** **
>
> ** **
>
> That went out Ok
>
> ** **
>
> What to look at next
>
> ** **
>
> ** **
>
> ** **
>
> *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com]
> *Sent:* Wednesday, November 30, 2011 12:37
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] notification emails
>
> ** **
>
> Did you check the command which is used to send notifications in
> command.cfg or checkcommand.cfg ?
> Maybe you don't have the binary or you need to rename the command.
>
> By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.*
> ***
>
> On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:
>
> Hello
>
> I am not sure if this is a bug or config issue.
>
> I have a clean install of fedora 16 32 bit  with a manual install of nagios
> 3.3.1  and nagios plugins 1.4.15.
>
> I see in the debug log
>
> Notification viability test failed. No notification will be sent out.
>
> I can send test emails from this server using sendmail and that bit works
>
>
> Is there a solution for this.
>
> Regards
>
> Nick
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> 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
>
> ** **
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> 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
>
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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 emails

2011-11-30 Thread Nick Price
The defaults are there.

 

 

I didecho 'this is a test' | /bin/mail  -s  test_email
em...@mydomain.com

 

 

That went out Ok

 

What to look at next

 

 

 

From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] 
Sent: Wednesday, November 30, 2011 12:37
To: Nagios Users List
Subject: Re: [Nagios-users] notification emails

 

Did you check the command which is used to send notifications in command.cfg
or checkcommand.cfg ?
Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:

Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of nagios
3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.

I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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

 

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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 emails

2011-11-30 Thread Claudio Kuenzler
Did you check the command which is used to send notifications in
command.cfg or checkcommand.cfg ?
Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price  wrote:

> Hello
>
> I am not sure if this is a bug or config issue.
>
> I have a clean install of fedora 16 32 bit  with a manual install of nagios
> 3.3.1  and nagios plugins 1.4.15.
>
> I see in the debug log
>
> Notification viability test failed. No notification will be sent out.
>
> I can send test emails from this server using sendmail and that bit works
>
>
> Is there a solution for this.
>
> Regards
>
> Nick
>
>
>
> --
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> ___
> 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
>
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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 emails

2011-11-30 Thread Nick Price
Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of nagios
3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.

I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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


[Nagios-users] notification files

2011-07-05 Thread Rhian Mikisa
where can i find the notification files in the source code that trigger the 
error reports 
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
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 configuration (Was [Nagios-devel] RFC/RFP: Service parents)

2011-05-18 Thread Andreas Ericsson
On 05/18/2011 02:12 PM, Max Schubert wrote:
> Andreas,
> 
> On Tue, May 17, 2011 at 7:57 AM, Andreas Ericsson  wrote:
>>> Any plans to detatch notification attributes from service / host
>>> definitions in 4.x and make them their own top-level configuration
>>> class like escalations  to make it easier to scale notification
>>> definitions for large projects?
>>>
>>
>> Not really. What would such an object look like? How would it add
>> additional benefit compared to using templates for hosts and services?
>> I think if I could just see some sort of example definition of it I'd
>> get an inkling of why some seem to think it's such a great idea. Right
>> now, I see no additional benefit to it.
> 
> It would look just like an escalation.

So why not just use normal escalations then? The normal case is not
the global superlarge company, but a team of admins all sharing
responsibility for a limited number of hosts.

>  What doesn't work well for
> large configurations with notification policies being stuck into host
> and service objects is this scenario (which is the one we are in at
> work by design):
> * Multiple configuration editors who own various parts of the Nagios
> configuration tree - in our case this used to be one big tree, now we
> have set up separate trees for separate projects - we have about 20-30
> people who can edit their project-specific configurations.

Again not the normal case.

> * A set of services that are global in nature - service ->  hostgroup
> ->  host -  baseline monitoring required by all projects using
> standards established by multiple organizations in our company - for
> our example, base host monitoring with an SNMP agent (6 services
> across every host) - we have other global services as well and a core
> team who develop, maintain an augment both our distributed Nagios
> software and these global services and configurations
> * A set of services that are specific to each project using our
> distributed variant of Nagios - managed by subject matter experts on
> each team.
> 



> With this scenario, how do we let each group that is responsible for
> hosts that have these global services on them create individually
> tailored notification policies since there is one notification policy
> per service?
> * We configure our base service and host to 'notify' on every state
> change using the command name do_nothing
> * We created a custom patch so that when the string 'do_nothing'  is
> seen in the command name this  state change only increments the
> notification count - it does not trigger any external command to run

Good example of "making the unusual possible". Would it suffice to
add an internal command in Nagios so that some magic marker, such as
':' (without the quotes) causes no command to be run? The nifty part
of using the common colon as a magic thing for this is that it's sort
of backwards compatible, as it's been a builtin version of "/bin/true"
in shells since forever.

> * We created a patch (partial - no serialization to disk) for
> escalation logic that tracks in memory when a fault escalation was
> sent so that OK escalations are only sent in response to something
> that was in a fault state.  We are working on completing this patch so
> that across restarts the state is saved.

Nice!

I'd implement this as an external list of contacts that have been
notified of the problem state and therefore should be notified of
the recovery. Make the list accessable through a hash table with
the object name as the key and just walk the (sorted) list of
contacts to be notified when the problem goes away and you'll have
the complete list of contacts to notify to. Unfortunately, adding
additional pointers in the object is a no-go due to ABI compatibility.

I'd happily accept such a patch in a heartbeat, as it'd remove a
bit of complexity in the current code without altering or removing
any API's that broker modules might use.


> * We have all groups use escalations to define their notification
> policies - the service and host notification commands then trigger our
> distributed pollers to send escalation requests to a network-based
> notification service we have that then lets the notification requests
> trigger email, SMS, SNMP traps, etc without having to re-configure
> Nagios for every notification transport /. method change.
> 
> Yeah, it is very ugly, and why?  Because 1 notification policy per
> service, that doesn't scale well when taking advantage of service ->
> hostgroup ->  host mappings, which is a critical pattern to use when
> scaling a configuration.
> 

In your case, I'd probably implement the notification logic outside
of Nagios. That would give you all the flexibility you need, and it
certainly seems like you have the manpower and experience to hack up
such a NagINot (Nagios Intelligent Notifications) addon. I could
imagine it being extremely useful as well, in particular if it uses
either an external daemon or an sqlite database so it's easy to use.


Re: [Nagios-users] Notification configuration (Was [Nagios-devel] RFC/RFP: Service parents)

2011-05-18 Thread Max Schubert
Andreas,

On Tue, May 17, 2011 at 7:57 AM, Andreas Ericsson  wrote:
>> Any plans to detatch notification attributes from service / host
>> definitions in 4.x and make them their own top-level configuration
>> class like escalations  to make it easier to scale notification
>> definitions for large projects?
>>
>
> Not really. What would such an object look like? How would it add
> additional benefit compared to using templates for hosts and services?
> I think if I could just see some sort of example definition of it I'd
> get an inkling of why some seem to think it's such a great idea. Right
> now, I see no additional benefit to it.

It would look just like an escalation.  What doesn't work well for
large configurations with notification policies being stuck into host
and service objects is this scenario (which is the one we are in at
work by design):
* Multiple configuration editors who own various parts of the Nagios
configuration tree - in our case this used to be one big tree, now we
have set up separate trees for separate projects - we have about 20-30
people who can edit their project-specific configurations.
* A set of services that are global in nature - service -> hostgroup
-> host -  baseline monitoring required by all projects using
standards established by multiple organizations in our company - for
our example, base host monitoring with an SNMP agent (6 services
across every host) - we have other global services as well and a core
team who develop, maintain an augment both our distributed Nagios
software and these global services and configurations
* A set of services that are specific to each project using our
distributed variant of Nagios - managed by subject matter experts on
each team.

With this scenario, how do we let each group that is responsible for
hosts that have these global services on them create individually
tailored notification policies since there is one notification policy
per service?
* We configure our base service and host to 'notify' on every state
change using the command name do_nothing
* We created a custom patch so that when the string 'do_nothing'  is
seen in the command name this  state change only increments the
notification count - it does not trigger any external command to run
* We created a patch (partial - no serialization to disk) for
escalation logic that tracks in memory when a fault escalation was
sent so that OK escalations are only sent in response to something
that was in a fault state.  We are working on completing this patch so
that across restarts the state is saved.
* We have all groups use escalations to define their notification
policies - the service and host notification commands then trigger our
distributed pollers to send escalation requests to a network-based
notification service we have that then lets the notification requests
trigger email, SMS, SNMP traps, etc without having to re-configure
Nagios for every notification transport /. method change.

Yeah, it is very ugly, and why?  Because 1 notification policy per
service, that doesn't scale well when taking advantage of service ->
hostgroup -> host mappings, which is a critical pattern to use when
scaling a configuration.

We have over 9000 hosts being monitored by our distributed framework
(and growing) with around 30 configuration editors and 120+ users.
Our distributed framework was centralized and a ''one project for all"
but now is a cluster of distributed set ups, one distributed set up
per project, which is scaling nicely.  Our largest distributed
installations have 3900 and 5100 hosts in them respectively - we have
4 other distributed instances that are just getting ramped up and only
have a few dozen hosts apiece at this point.

So while this is ugly, it works!  All editors can define escalation
objects that take into account both their individual needs for global
service notifications as well as any project-specific notifications -
and by putting project-specific hosts in project-specific host groups,
for most groups, two escalation policy definitions are all that are
needed per project - one for hosts, one for services.

If all notifications were just done through an escalation like
configuration object, life for a big project would be much easier.
1) Having notifications clearly separated as their own configuration
template in the Nagios DSL makes it much less confusing for people new
to Nagios to understand 'where to configure notifications'
2) The configuration flexibility of the escalation template makes it
very easy to work with for a large configuration.

Our global and project specific scenario and all the notification
changes we made is also serving us very well as we grow.

Notifications as separate objects would let us back out a number of
patches and would reallly simplify our configuraiton and let our
pollers run hotter .

- Max

--
What Every C/C++ and Fortran developer Should Know!
Read t

Re: [Nagios-users] Notification after Acknowledgment

2011-05-13 Thread Jim Avery
On 13 May 2011 09:01, Andre Kruger  wrote:

> I just read how non-sticky acknowledgments work from 3.2.3. I think this
> solves my problem.
>
> http://wiki.nagios.org/index.php/Acknowledgementlogic


Neat!  Thanks I hadn't noticed that.

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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 after Acknowledgment

2011-05-13 Thread Andre Kruger
Yes, it was to stop the notifications, but I would then like to receive 
notifications again when the service that was acknowledged goes into a critical 
state. But non-sticky acknowledgments has solved this problem for me.
 
I think I am going to change my default to non-sticky.

>>> Yueh-Hung Liu  2011/05/13 10:07 >>>
what's the purpose of acknowledging the service problems?
just to suppress the notifications or ?


On Fri, May 13, 2011 at 3:34 PM, Andre Kruger  wrote:
> Hi
>
> Can you guys please give me your input on how you handle the following
> situation.
>
> Lets take monitoring a disk as an example. For arguments sake lets say when
> the disk reaches 80% capacity I send out a warning and at 90% I send out a
> critical. There is also a Service Escalation configured to send out
> notifications when this service reaches critical.
>
> So at 80 percent I get my notification all is well. I then go ahead and
> acknowledge the event and in doing so Nagios will not send out any further
> notifications. Which according to the Nagios logic is correct.
>
> The problem is if the disk in the mean time reaches critical, 90% capacity,
> I won't get another notification. Not even the Service Escalation helps
> here, because the event has already been acknowledged.
>
> Do you guys have any suggestions on how this problem can be solved?
>
> Regards
> Andre
>
> P Please consider your environmental responsibility before printing this
> e-mail or any other document. Ask yourself whether you need a hard copy.
> --
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> ___
> 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
>

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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


Please consider your environmental responsibility before printing this e-mail 
or any other document. Ask yourself whether you need a hard copy.

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
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 after Acknowledgment

2011-05-13 Thread Deborah Martin
Andre,

I wouldn't acknowledge it unless you plan to actually do something about it.

I use escalations which instigate callouts to engineers. When the oncall 
engineer acks an alert it means they are investigating. It would be pointless 
surely to ack something which you aren't going to do anything about.

Also, think about why you'd ack at 80% if it's just a warning. We have 
thresholds of 85% for disk usage warnings but in all honesty it's there as 
exactly that - a warning. We don't send notifications for warnings on disk 
usage. We just monitor via the web interface. Notifications are sent on 
critical alerts because that is the time when action needs to be taken and 
users need to pay attention.

But this is all based on our requirements rather than yours so this is just my 
tuppence worth!

Regards,
Deborah




From: Andre Kruger [mailto:andre.kru...@trw.com]
Sent: 13 May 2011 08:35
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Notification after Acknowledgment

Hi

Can you guys please give me your input on how you handle the following 
situation.

Lets take monitoring a disk as an example. For arguments sake lets say when the 
disk reaches 80% capacity I send out a warning and at 90% I send out a 
critical. There is also a Service Escalation configured to send out 
notifications when this service reaches critical.

So at 80 percent I get my notification all is well. I then go ahead and 
acknowledge the event and in doing so Nagios will not send out any further 
notifications. Which according to the Nagios logic is correct.

The problem is if the disk in the mean time reaches critical, 90% capacity, I 
won't get another notification. Not even the Service Escalation helps here, 
because the event has already been acknowledged.

Do you guys have any suggestions on how this problem can be solved?

Regards
Andre


P Please consider your environmental responsibility before printing this e-mail 
or any other document. Ask yourself whether you need a hard copy.


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
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 after Acknowledgment

2011-05-13 Thread Yueh-Hung Liu
what's the purpose of acknowledging the service problems?
just to suppress the notifications or ?


On Fri, May 13, 2011 at 3:34 PM, Andre Kruger  wrote:
> Hi
>
> Can you guys please give me your input on how you handle the following
> situation.
>
> Lets take monitoring a disk as an example. For arguments sake lets say when
> the disk reaches 80% capacity I send out a warning and at 90% I send out a
> critical. There is also a Service Escalation configured to send out
> notifications when this service reaches critical.
>
> So at 80 percent I get my notification all is well. I then go ahead and
> acknowledge the event and in doing so Nagios will not send out any further
> notifications. Which according to the Nagios logic is correct.
>
> The problem is if the disk in the mean time reaches critical, 90% capacity,
> I won't get another notification. Not even the Service Escalation helps
> here, because the event has already been acknowledged.
>
> Do you guys have any suggestions on how this problem can be solved?
>
> Regards
> Andre
>
> P Please consider your environmental responsibility before printing this
> e-mail or any other document. Ask yourself whether you need a hard copy.
> --
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> ___
> 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
>

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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 after Acknowledgment

2011-05-13 Thread Andre Kruger
Hi
 
Thanks for that.
 
I just read how non-sticky acknowledgments work from 3.2.3. I think this solves 
my problem.
 
http://wiki.nagios.org/index.php/Acknowledgementlogic
 

Assuming you have a service with notifications enabled for all states with a 
max retry attempts of 1, these are the notifications you should get based on 
the following transitions: 
service in OK 
service goes into WARNING - notification sent 
non-sticky acknowledgement applied 
service goes into CRITICAL. Acknowledgement removed. Notification sent 
non-sticky acknowledgement applied 
service goes into WARNING. Acknowledgement removed. Notification sent 
non-sticky acknowledgement applied 
service goes into CRITICAL. Acknowledgement removed. Notification sent 
service goes into OK. Recovery notification sent 


>>> Jim Avery  2011/05/13 09:57 >>>
On 13 May 2011 08:34, Andre Kruger  wrote:
> Hi
>
> Can you guys please give me your input on how you handle the following
> situation.
>
> Lets take monitoring a disk as an example. For arguments sake lets say when
> the disk reaches 80% capacity I send out a warning and at 90% I send out a
> critical. There is also a Service Escalation configured to send out
> notifications when this service reaches critical.
>
> So at 80 percent I get my notification all is well. I then go ahead and
> acknowledge the event and in doing so Nagios will not send out any further
> notifications. Which according to the Nagios logic is correct.
>
> The problem is if the disk in the mean time reaches critical, 90% capacity,
> I won't get another notification. Not even the Service Escalation helps
> here, because the event has already been acknowledged.
>
> Do you guys have any suggestions on how this problem can be solved?
>
> Regards
> Andre


The way I sometimes use for prolonged issues like this is I will
acknowledge the alert, but then raise the warning and critical
thresholds in Nagios.  The problem with this approach is that Nagios
then reports the status as "OK" which might give a false impression to
other users.  It is also important to remember to reduce the warning
threshold back to its usual level once the issue is resolved.

For issues which might be fast-moving I would suggest that it is not
appropriate to acknowledge the issue unless you are in a postion
actively to manage it until resolution.

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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


Please consider your environmental responsibility before printing this e-mail 
or any other document. Ask yourself whether you need a hard copy.

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
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 after Acknowledgment

2011-05-13 Thread Jim Avery
On 13 May 2011 08:34, Andre Kruger  wrote:
> Hi
>
> Can you guys please give me your input on how you handle the following
> situation.
>
> Lets take monitoring a disk as an example. For arguments sake lets say when
> the disk reaches 80% capacity I send out a warning and at 90% I send out a
> critical. There is also a Service Escalation configured to send out
> notifications when this service reaches critical.
>
> So at 80 percent I get my notification all is well. I then go ahead and
> acknowledge the event and in doing so Nagios will not send out any further
> notifications. Which according to the Nagios logic is correct.
>
> The problem is if the disk in the mean time reaches critical, 90% capacity,
> I won't get another notification. Not even the Service Escalation helps
> here, because the event has already been acknowledged.
>
> Do you guys have any suggestions on how this problem can be solved?
>
> Regards
> Andre


The way I sometimes use for prolonged issues like this is I will
acknowledge the alert, but then raise the warning and critical
thresholds in Nagios.  The problem with this approach is that Nagios
then reports the status as "OK" which might give a false impression to
other users.  It is also important to remember to reduce the warning
threshold back to its usual level once the issue is resolved.

For issues which might be fast-moving I would suggest that it is not
appropriate to acknowledge the issue unless you are in a postion
actively to manage it until resolution.

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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


[Nagios-users] Notification after Acknowledgment

2011-05-13 Thread Andre Kruger
Hi
 
Can you guys please give me your input on how you handle the following 
situation.
 
Lets take monitoring a disk as an example. For arguments sake lets say when the 
disk reaches 80% capacity I send out a warning and at 90% I send out a 
critical. There is also a Service Escalation configured to send out 
notifications when this service reaches critical.
 
So at 80 percent I get my notification all is well. I then go ahead and 
acknowledge the event and in doing so Nagios will not send out any further 
notifications. Which according to the Nagios logic is correct.
 
The problem is if the disk in the mean time reaches critical, 90% capacity, I 
won't get another notification. Not even the Service Escalation helps here, 
because the event has already been acknowledged.
 
Do you guys have any suggestions on how this problem can be solved?
 
Regards
Andre


Please consider your environmental responsibility before printing this e-mail 
or any other document. Ask yourself whether you need a hard copy.

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
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 Emails

2011-05-04 Thread Daniel Ceola
Thank you all for the help.

At first I thought we had an issue with Exchange, but then found I could send 
mail through command line on my Nagios system and it worked fine.  I actually 
found the below information that Richard shared  earlier this afternoon and 
reconfigured PostFix to route all mail through our exchange server. At this 
time, everything is working fine.

I appreciate all of the input and assistance!

Thanks,

Daniel Ceola

From: Richard Clark [mailto:n...@fohnet.co.uk]
Sent: Wednesday, May 04, 2011 12:58 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

On 4 May 2011, at 16:03, Daniel Ceola mailto:dce...@twgi.net>> 
wrote:

Hello all!

My company recently migrated to a new exchange email server (ex03 -> ex10).  
Nagios has been up and running wonderfully in our environment for some while 
(was running when I started working here).

I have discovered that the notification emails were being routed through the 
now nonexistent ex03 server in our network.  Since we have taken that system 
down, we are now not getting any notification emails.

>From what I understand, and have been told - our Nagios installation was 
>performed on Ubuntu, basically using the info I the quick-start install guide. 
> As such, this should mean that the system is using mailx to send emails (as 
>its own mail server) and thus simply using our internal MX records to route 
>email to our mail server.  Our MX record was updated on the day that we made 
>the final server cutover, and it didn't affect receiving email from Nagios.


The question here is this:  Is there somewhere within Nagios or the Ubuntu OS 
that I need to make a config change to route the notification email through the 
new internal mail server to the recipients?

I know we are still ironing out some kinks in our new exchange system, so if 
there is not a configuration within Nagios/Ubuntu that affects this, I will 
continue the search for resolution through my exchange system.

Thanks,

Daniel Ceola
Systems & DB Admin
Nagios doesn't send mails in itself, it only calls the commands that its 
configured to based on the criteria that you set. One of which may well be the 
sending of a mail.
Grep through your nagios configuration to see which command it's actually 
calling.



The default MTA for Ubuntu is postfix - sounds like it may have been configured 
to use an SMTP relay rather than MX based routing.
'dpkg-reconfigure postfix' should give you an ncurses-based wizard if you're 
not comfortable with postfix configuration.
Also, check logs at /var/log/mail.*
and probably worth checking if someones done something silly like put a static 
hostname entry for a mail server in /etc/hosts




Cheers,
--
Richard Clark
rich...@fohnet.co.uk<mailto:rich...@fohnet.co.uk>
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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 Emails

2011-05-04 Thread Richard Clark
On 4 May 2011, at 16:03, Daniel Ceola  wrote:

Hello all!



My company recently migrated to a new exchange email server (ex03 -> ex10).
 Nagios has been up and running wonderfully in our environment for some
while (was running when I started working here).



I have discovered that the notification emails were being routed through the
now nonexistent ex03 server in our network.  Since we have taken that system
down, we are now not getting any notification emails.



>From what I understand, and have been told – our Nagios installation was
performed on Ubuntu, basically using the info I the quick-start install
guide.  As such, this should mean that the system is using mailx to send
emails (as its own mail server) and thus simply using our internal MX
records to route email to our mail server.  Our MX record was updated on the
day that we made the final server cutover, and it didn’t affect receiving
email from Nagios.





The question here is this:  Is there somewhere within Nagios or the Ubuntu
OS that I need to make a config change to route the notification email
through the new internal mail server to the recipients?



I know we are still ironing out some kinks in our new exchange system, so if
there is not a configuration within Nagios/Ubuntu that affects this, I will
continue the search for resolution through my exchange system.



Thanks,



Daniel Ceola

Systems & DB Admin

Nagios doesn't send mails in itself, it only calls the commands that its
configured to based on the criteria that you set. One of which may well be
the sending of a mail.
Grep through your nagios configuration to see which command it's actually
calling.

The default MTA for Ubuntu is postfix - sounds like it may have been
configured to use an SMTP relay rather than MX based routing.
'dpkg-reconfigure postfix' should give you an ncurses-based wizard if you're
not comfortable with postfix configuration.
Also, check logs at /var/log/mail.*
and probably worth checking if someones done something silly like put a
static hostname entry for a mail server in /etc/hosts


Cheers,
--
Richard Clark
rich...@fohnet.co.uk
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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 Emails

2011-05-04 Thread Martin Hugo
Hmm, then I have to say I am stumped.  That’s all I did and my notifications 
work fine.  Are you able to telnet from your Nagios box to your exchange Hub 
server on port 25?

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)
[Think before you print.]Think before you print



From: Daniel Ceola [mailto:dce...@twgi.net]
Sent: Wednesday, May 04, 2011 1:45 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Thanks for the response!

We have configured the internal mail connectors, and at this time I’m confident 
it’s not a Nagios or Ubuntu configuration issue.

Thanks,

Daniel Ceola

From: Martin Hugo [mailto:martin_h...@hboe.org]
Sent: Wednesday, May 04, 2011 1:40 PM
To: 'Nagios Users List'
Subject: Re: [Nagios-users] Notification Emails

Have you defined an internal mail connector on your EXCH2010 Hub server(s) for 
internal smtp servers that you want to allow to send out mail through your 
Exchange Server?  Setup their IP Addresses in the lower portion of the Network 
Tab and select the appropriate permissions and groups on the Authentication and 
Permission Groups tabs?

Since your Nagios was sending mail OK to your EXCH2003 system, I agree it is 
likely a 2010 issue, not a Nagios one.

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)
[Think before you print.]Think before you print

From: Daniel Ceola [mailto:dce...@twgi.net]
Sent: Wednesday, May 04, 2011 1:00 PM
To: Ennis Ibarra - NMCOURTS.GOV; Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Thanks again! When I tried your suggestion below, it told me this:

nagios@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is 
a test" -S smtp=.twgi.net dce...@twgi.net
mail: invalid option -- 'S'
usage: mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] 
to-addr ...
[-- sendmail-options ...]
   mail [-dEIiNnv] -f [name]
   mail [-dEIiNnv] [-u user]

You don’t have to take time out of your day to help me with this, and I 
recognize that you are – I appreciate it!

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 12:53 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

If it helps, do your tests through your Ubuntu command line, using nagios as 
your user with something like:

echo "TEST" | mail -s "This is a test" -S smtp=EX10server.com 
yourem...@yourdomain.com

When this is successful, chances are you nailed it.

Good luck then.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -
From: "Daniel Ceola" 
To: "Nagios Users List" 
Sent: Wednesday, May 4, 2011 10:21:19 AM
Subject: Re: [Nagios-users] Notification Emails
Thank you for the assistance. I was afraid that there was no actual location 
within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll 
start working towards resolution within Exchange.

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 11:37 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Sorry to hear you upgraded to EX10, but what are you going to do right ?

Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so 
my guess is that the mail routing is not hard-coded into any configuration 
within Ubuntu, probably you have a relay issue in your EX10 where your Nagios 
server massages are not allowed to relay, you may want to check on that.

On the specific notification by email command that Nagios actually performs, 
you may want to verify if you have something like:

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
**" $CONTACTEMAIL$

In such case, yes, your Nagios server is your MailX as well.

If you'd like to use your EX10 to relay email directly, although I don't know 
how to configure that in EX10, you may want to change the command for something 
like:

command_line/usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail 
-s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S 
smtp=yourEX10.server.com $CONTACTEMAIL$

This way you'll use your EX10 to relay all the email generated by Nagios 
instead the local (to the Nagios box) MX, you can even turn off that service in 
your Ubuntu box, one less service to watch.

Hope you fin

Re: [Nagios-users] Notification Emails

2011-05-04 Thread Daniel Ceola
Thanks for the response!

We have configured the internal mail connectors, and at this time I’m confident 
it’s not a Nagios or Ubuntu configuration issue.

Thanks,

Daniel Ceola

From: Martin Hugo [mailto:martin_h...@hboe.org]
Sent: Wednesday, May 04, 2011 1:40 PM
To: 'Nagios Users List'
Subject: Re: [Nagios-users] Notification Emails

Have you defined an internal mail connector on your EXCH2010 Hub server(s) for 
internal smtp servers that you want to allow to send out mail through your 
Exchange Server?  Setup their IP Addresses in the lower portion of the Network 
Tab and select the appropriate permissions and groups on the Authentication and 
Permission Groups tabs?

Since your Nagios was sending mail OK to your EXCH2003 system, I agree it is 
likely a 2010 issue, not a Nagios one.

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)
[Think before you print.]Think before you print

From: Daniel Ceola [mailto:dce...@twgi.net]
Sent: Wednesday, May 04, 2011 1:00 PM
To: Ennis Ibarra - NMCOURTS.GOV; Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Thanks again! When I tried your suggestion below, it told me this:

nagios@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is 
a test" -S smtp=.twgi.net dce...@twgi.net
mail: invalid option -- 'S'
usage: mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] 
to-addr ...
[-- sendmail-options ...]
   mail [-dEIiNnv] -f [name]
   mail [-dEIiNnv] [-u user]

You don’t have to take time out of your day to help me with this, and I 
recognize that you are – I appreciate it!

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 12:53 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

If it helps, do your tests through your Ubuntu command line, using nagios as 
your user with something like:

echo "TEST" | mail -s "This is a test" -S smtp=EX10server.com 
yourem...@yourdomain.com

When this is successful, chances are you nailed it.

Good luck then.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -
From: "Daniel Ceola" 
To: "Nagios Users List" 
Sent: Wednesday, May 4, 2011 10:21:19 AM
Subject: Re: [Nagios-users] Notification Emails
Thank you for the assistance. I was afraid that there was no actual location 
within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll 
start working towards resolution within Exchange.

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 11:37 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Sorry to hear you upgraded to EX10, but what are you going to do right ?

Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so 
my guess is that the mail routing is not hard-coded into any configuration 
within Ubuntu, probably you have a relay issue in your EX10 where your Nagios 
server massages are not allowed to relay, you may want to check on that.

On the specific notification by email command that Nagios actually performs, 
you may want to verify if you have something like:

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
**" $CONTACTEMAIL$

In such case, yes, your Nagios server is your MailX as well.

If you'd like to use your EX10 to relay email directly, although I don't know 
how to configure that in EX10, you may want to change the command for something 
like:

command_line/usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail 
-s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S 
smtp=yourEX10.server.com $CONTACTEMAIL$

This way you'll use your EX10 to relay all the email generated by Nagios 
instead the local (to the Nagios box) MX, you can even turn off that service in 
your Ubuntu box, one less service to watch.

Hope you find this useful.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -----
From: "Daniel Ceola" 
To: "Nagios Users (nagios-users@lists.sourceforge.net)" 

Sent: Wednesday, May 4, 2011 8:07:31 AM
Subject: [Nagios-users] Notification Emails
Hello all!

My company recently migrated to a new exchange email server (ex03 -> ex10).  
Nagios has been up and running wonderfully in our environme

Re: [Nagios-users] Notification Emails

2011-05-04 Thread Martin Hugo
Have you defined an internal mail connector on your EXCH2010 Hub server(s) for 
internal smtp servers that you want to allow to send out mail through your 
Exchange Server?  Setup their IP Addresses in the lower portion of the Network 
Tab and select the appropriate permissions and groups on the Authentication and 
Permission Groups tabs?

Since your Nagios was sending mail OK to your EXCH2003 system, I agree it is 
likely a 2010 issue, not a Nagios one.

Martin T. Hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-771-7243 (Fax)
[Think before you print.]Think before you print

From: Daniel Ceola [mailto:dce...@twgi.net]
Sent: Wednesday, May 04, 2011 1:00 PM
To: Ennis Ibarra - NMCOURTS.GOV; Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Thanks again! When I tried your suggestion below, it told me this:

nagios@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is 
a test" -S smtp=twgiex.twgi.net dce...@twgi.net
mail: invalid option -- 'S'
usage: mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] 
to-addr ...
[-- sendmail-options ...]
   mail [-dEIiNnv] -f [name]
   mail [-dEIiNnv] [-u user]

You don’t have to take time out of your day to help me with this, and I 
recognize that you are – I appreciate it!

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 12:53 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

If it helps, do your tests through your Ubuntu command line, using nagios as 
your user with something like:

echo "TEST" | mail -s "This is a test" -S smtp=EX10server.com 
yourem...@yourdomain.com

When this is successful, chances are you nailed it.

Good luck then.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -
From: "Daniel Ceola" 
To: "Nagios Users List" 
Sent: Wednesday, May 4, 2011 10:21:19 AM
Subject: Re: [Nagios-users] Notification Emails

Thank you for the assistance. I was afraid that there was no actual location 
within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll 
start working towards resolution within Exchange.

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 11:37 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Sorry to hear you upgraded to EX10, but what are you going to do right ?

Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so 
my guess is that the mail routing is not hard-coded into any configuration 
within Ubuntu, probably you have a relay issue in your EX10 where your Nagios 
server massages are not allowed to relay, you may want to check on that.

On the specific notification by email command that Nagios actually performs, 
you may want to verify if you have something like:

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
**" $CONTACTEMAIL$

In such case, yes, your Nagios server is your MailX as well.

If you'd like to use your EX10 to relay email directly, although I don't know 
how to configure that in EX10, you may want to change the command for something 
like:

command_line/usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail 
-s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S 
smtp=yourEX10.server.com $CONTACTEMAIL$

This way you'll use your EX10 to relay all the email generated by Nagios 
instead the local (to the Nagios box) MX, you can even turn off that service in 
your Ubuntu box, one less service to watch.

Hope you find this useful.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -
From: "Daniel Ceola" 
To: "Nagios Users (nagios-users@lists.sourceforge.net)" 

Sent: Wednesday, May 4, 2011 8:07:31 AM
Subject: [Nagios-users] Notification Emails
Hello all!

My company recently migrated to a new exchange email server (ex03 -> ex10).  
Nagios has been up and running wonderfully in our environment for some while 
(was running when I started working here).

I have discovered that the notification emails were being routed through the 
now nonexistent ex03 server in our network.  Since we have taken that system 
down, we are now not getting any notification emails.

From what I understand, and have been told – our Nagios installation was 
perf

Re: [Nagios-users] Notification Emails

2011-05-04 Thread Daniel Ceola
Thanks again! When I tried your suggestion below, it told me this:

nagios@UbuntuTest:/usr/local/nagios/etc/objects$ echo "TEST" | mail -s "this is 
a test" -S smtp=twgiex.twgi.net dce...@twgi.net
mail: invalid option -- 'S'
usage: mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] 
to-addr ...
[-- sendmail-options ...]
   mail [-dEIiNnv] -f [name]
   mail [-dEIiNnv] [-u user]

You don’t have to take time out of your day to help me with this, and I 
recognize that you are – I appreciate it!

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 12:53 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

If it helps, do your tests through your Ubuntu command line, using nagios as 
your user with something like:

echo "TEST" | mail -s "This is a test" -S smtp=EX10server.com 
yourem...@yourdomain.com

When this is successful, chances are you nailed it.

Good luck then.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -
From: "Daniel Ceola" 
To: "Nagios Users List" 
Sent: Wednesday, May 4, 2011 10:21:19 AM
Subject: Re: [Nagios-users] Notification Emails


Thank you for the assistance. I was afraid that there was no actual location 
within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll 
start working towards resolution within Exchange.

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 11:37 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Sorry to hear you upgraded to EX10, but what are you going to do right ?

Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so 
my guess is that the mail routing is not hard-coded into any configuration 
within Ubuntu, probably you have a relay issue in your EX10 where your Nagios 
server massages are not allowed to relay, you may want to check on that.

On the specific notification by email command that Nagios actually performs, 
you may want to verify if you have something like:

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
**" $CONTACTEMAIL$

In such case, yes, your Nagios server is your MailX as well.

If you'd like to use your EX10 to relay email directly, although I don't know 
how to configure that in EX10, you may want to change the command for something 
like:

command_line/usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail 
-s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S 
smtp=yourEX10.server.com $CONTACTEMAIL$

This way you'll use your EX10 to relay all the email generated by Nagios 
instead the local (to the Nagios box) MX, you can even turn off that service in 
your Ubuntu box, one less service to watch.

Hope you find this useful.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -
From: "Daniel Ceola" 
To: "Nagios Users (nagios-users@lists.sourceforge.net)" 

Sent: Wednesday, May 4, 2011 8:07:31 AM
Subject: [Nagios-users] Notification Emails

Hello all!

My company recently migrated to a new exchange email server (ex03 -> ex10).  
Nagios has been up and running wonderfully in our environment for some while 
(was running when I started working here).

I have discovered that the notification emails were being routed through the 
now nonexistent ex03 server in our network.  Since we have taken that system 
down, we are now not getting any notification emails.

From what I understand, and have been told – our Nagios installation was 
performed on Ubuntu, basically using the info I the quick-start install guide.  
As such, this should mean that the system is using mailx to send emails (as its 
own mail server) and thus simply using our internal MX records to route email 
to our mail server.  Our MX record was updated on the day that we made the 
final server cutover, and it didn’t affect receiving email from Nagios.


The question here is this:  Is there somewhere within Nagios or the Ubuntu OS 
that I need to make a config change to route the notification email through the 
new internal mail server to the recipients?

I know we are still ironing out some kinks in our new exchange system, so if 
there is not a configuration within Nagios/Ubuntu that affects this, I will 
continue the search f

Re: [Nagios-users] Notification Emails

2011-05-04 Thread Ennis Ibarra
If it helps, do your tests through your Ubuntu command line, using nagios as 
your user with something like: 

echo "TEST" | mail -s "This is a test" -S smtp=EX10server.com 
yourem...@yourdomain.com 

When this is successful, chances are you nailed it. 

Good luck then. 

_ 
Supreme Court of New Mexico - Ennis Ibarra 


- Original Message - 
From: "Daniel Ceola"  
To: "Nagios Users List"  
Sent: Wednesday, May 4, 2011 10:21:19 AM 
Subject: Re: [Nagios-users] Notification Emails 




Thank you for the assistance. I was afraid that there was no actual location 
within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll 
start working towards resolution within Exchange. 




Thanks, 



Daniel Ceola 





From: Ennis Ibarra [mailto:en...@nmcourts.gov] 
Sent: Wednesday, May 04, 2011 11:37 AM 
To: Nagios Users List 
Subject: Re: [Nagios-users] Notification Emails 




Sorry to hear you upgraded to EX10, but what are you going to do right ? 

Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so 
my guess is that the mail routing is not hard-coded into any configuration 
within Ubuntu, probably you have a relay issue in your EX10 where your Nagios 
server massages are not allowed to relay, you may want to check on that. 

On the specific notification by email command that Nagios actually performs, 
you may want to verify if you have something like: 

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
**" $CONTACTEMAIL$ 

In such case, yes, your Nagios server is your MailX as well. 

If you'd like to use your EX10 to relay email directly, although I don't know 
how to configure that in EX10, you may want to change the command for something 
like: 

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail 
-s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S 
smtp=yourEX10.server.com $CONTACTEMAIL$ 

This way you'll use your EX10 to relay all the email generated by Nagios 
instead the local (to the Nagios box) MX, you can even turn off that service in 
your Ubuntu box, one less service to watch. 

Hope you find this useful. 

_ 
Supreme Court of New Mexico - Ennis Ibarra 


- Original Message - 
From: "Daniel Ceola"  
To: "Nagios Users (nagios-users@lists.sourceforge.net)" 
 
Sent: Wednesday, May 4, 2011 8:07:31 AM 
Subject: [Nagios-users] Notification Emails 




Hello all! 



My company recently migrated to a new exchange email server (ex03 -> ex10). 
Nagios has been up and running wonderfully in our environment for some while 
(was running when I started working here). 



I have discovered that the notification emails were being routed through the 
now nonexistent ex03 server in our network. Since we have taken that system 
down, we are now not getting any notification emails. 



>From what I understand, and have been told – our Nagios installation was 
>performed on Ubuntu, basically using the info I the quick-start install guide. 
>As such, this should mean that the system is using mailx to send emails (as 
>its own mail server) and thus simply using our internal MX records to route 
>email to our mail server. Our MX record was updated on the day that we made 
>the final server cutover, and it didn’t affect receiving email from Nagios. 





The question here is this: Is there somewhere within Nagios or the Ubuntu OS 
that I need to make a config change to route the notification email through the 
new internal mail server to the recipients? 



I know we are still ironing out some kinks in our new exchange system, so if 
there is not a configuration within Nagios/Ubuntu that affects this, I will 
continue the search for resolution through my exchange system. 



Thanks, 



Daniel Ceola 

Systems & DB Admin 



The Wills Group 

6355 Crain Hwy 

La Plata, MD 20646 

301-932-3600 

301-932-3643 (direct line) 




-- 
WhatsUp Gold - Download Free Network Management Software 
The most intuitive, comprehensive, and cost-effective network 
management toolset available today. Delivers lowest initial 
acquisition cost and overall TCO of any competing solution. 
http://p.sf.net/sfu/whatsupgold-sd 
___ 
Nagios-users mailing list 
Nagios-users@lists.sourceforge.n

Re: [Nagios-users] Notification Emails

2011-05-04 Thread Daniel Ceola
Thank you for the assistance. I was afraid that there was no actual location 
within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll 
start working towards resolution within Exchange.

Thanks,

Daniel Ceola

From: Ennis Ibarra [mailto:en...@nmcourts.gov]
Sent: Wednesday, May 04, 2011 11:37 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Notification Emails

Sorry to hear you upgraded to EX10, but what are you going to do right ?

Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so 
my guess is that the mail routing is not hard-coded into any configuration 
within Ubuntu, probably you have a relay issue in your EX10 where your Nagios 
server massages are not allowed to relay, you may want to check on that.

On the specific notification by email command that Nagios actually performs, 
you may want to verify if you have something like:

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
**" $CONTACTEMAIL$

In such case, yes, your Nagios server is your MailX as well.

If you'd like to use your EX10 to relay email directly, although I don't know 
how to configure that in EX10, you may want to change the command for something 
like:

command_line/usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail 
-s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S 
smtp=yourEX10.server.com $CONTACTEMAIL$

This way you'll use your EX10 to relay all the email generated by Nagios 
instead the local (to the Nagios box) MX, you can even turn off that service in 
your Ubuntu box, one less service to watch.

Hope you find this useful.

_
Supreme Court of New Mexico - Ennis Ibarra


- Original Message -
From: "Daniel Ceola" 
To: "Nagios Users (nagios-users@lists.sourceforge.net)" 

Sent: Wednesday, May 4, 2011 8:07:31 AM
Subject: [Nagios-users] Notification Emails


Hello all!

My company recently migrated to a new exchange email server (ex03 -> ex10).  
Nagios has been up and running wonderfully in our environment for some while 
(was running when I started working here).

I have discovered that the notification emails were being routed through the 
now nonexistent ex03 server in our network.  Since we have taken that system 
down, we are now not getting any notification emails.

From what I understand, and have been told – our Nagios installation was 
performed on Ubuntu, basically using the info I the quick-start install guide.  
As such, this should mean that the system is using mailx to send emails (as its 
own mail server) and thus simply using our internal MX records to route email 
to our mail server.  Our MX record was updated on the day that we made the 
final server cutover, and it didn’t affect receiving email from Nagios.


The question here is this:  Is there somewhere within Nagios or the Ubuntu OS 
that I need to make a config change to route the notification email through the 
new internal mail server to the recipients?

I know we are still ironing out some kinks in our new exchange system, so if 
there is not a configuration within Nagios/Ubuntu that affects this, I will 
continue the search for resolution through my exchange system.

Thanks,

Daniel Ceola
Systems & DB Admin

The Wills Group
6355 Crain Hwy
La Plata, MD 20646
301-932-3600
301-932-3643 (direct line)


--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net

Re: [Nagios-users] Notification Emails

2011-05-04 Thread Ennis Ibarra
Sorry to hear you upgraded to EX10, but what are you going to do right ? 

Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so 
my guess is that the mail routing is not hard-coded into any configuration 
within Ubuntu, probably you have a relay issue in your EX10 where your Nagios 
server massages are not allowed to relay, you may want to check on that. 

On the specific notification by email command that Nagios actually performs, 
you may want to verify if you have something like: 

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | 
/usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ 
**" $CONTACTEMAIL$ 

In such case, yes, your Nagios server is your MailX as well. 

If you'd like to use your EX10 to relay email directly, although I don't know 
how to configure that in EX10, you may want to change the command for something 
like: 

command_line /usr/bin/printf "%b" "* Nagios *\n\nNotification Type: 
$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail 
-s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -S 
smtp=yourEX10.server.com $CONTACTEMAIL$ 

This way you'll use your EX10 to relay all the email generated by Nagios 
instead the local (to the Nagios box) MX, you can even turn off that service in 
your Ubuntu box, one less service to watch. 

Hope you find this useful. 

_ 
Supreme Court of New Mexico - Ennis Ibarra 


- Original Message - 
From: "Daniel Ceola"  
To: "Nagios Users (nagios-users@lists.sourceforge.net)" 
 
Sent: Wednesday, May 4, 2011 8:07:31 AM 
Subject: [Nagios-users] Notification Emails 




Hello all! 



My company recently migrated to a new exchange email server (ex03 -> ex10). 
Nagios has been up and running wonderfully in our environment for some while 
(was running when I started working here). 



I have discovered that the notification emails were being routed through the 
now nonexistent ex03 server in our network. Since we have taken that system 
down, we are now not getting any notification emails. 



>From what I understand, and have been told – our Nagios installation was 
>performed on Ubuntu, basically using the info I the quick-start install guide. 
>As such, this should mean that the system is using mailx to send emails (as 
>its own mail server) and thus simply using our internal MX records to route 
>email to our mail server. Our MX record was updated on the day that we made 
>the final server cutover, and it didn’t affect receiving email from Nagios. 





The question here is this: Is there somewhere within Nagios or the Ubuntu OS 
that I need to make a config change to route the notification email through the 
new internal mail server to the recipients? 



I know we are still ironing out some kinks in our new exchange system, so if 
there is not a configuration within Nagios/Ubuntu that affects this, I will 
continue the search for resolution through my exchange system. 



Thanks, 



Daniel Ceola 

Systems & DB Admin 



The Wills Group 

6355 Crain Hwy 

La Plata, MD 20646 

301-932-3600 

301-932-3643 (direct line) 


-- 
WhatsUp Gold - Download Free Network Management Software 
The most intuitive, comprehensive, and cost-effective network 
management toolset available today. Delivers lowest initial 
acquisition cost and overall TCO of any competing solution. 
http://p.sf.net/sfu/whatsupgold-sd 
___ 
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--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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

[Nagios-users] Notification Emails

2011-05-04 Thread Daniel Ceola
Hello all!

My company recently migrated to a new exchange email server (ex03 -> ex10).  
Nagios has been up and running wonderfully in our environment for some while 
(was running when I started working here).

I have discovered that the notification emails were being routed through the 
now nonexistent ex03 server in our network.  Since we have taken that system 
down, we are now not getting any notification emails.

>From what I understand, and have been told - our Nagios installation was 
>performed on Ubuntu, basically using the info I the quick-start install guide. 
> As such, this should mean that the system is using mailx to send emails (as 
>its own mail server) and thus simply using our internal MX records to route 
>email to our mail server.  Our MX record was updated on the day that we made 
>the final server cutover, and it didn't affect receiving email from Nagios.


The question here is this:  Is there somewhere within Nagios or the Ubuntu OS 
that I need to make a config change to route the notification email through the 
new internal mail server to the recipients?

I know we are still ironing out some kinks in our new exchange system, so if 
there is not a configuration within Nagios/Ubuntu that affects this, I will 
continue the search for resolution through my exchange system.

Thanks,

Daniel Ceola
Systems & DB Admin

The Wills Group
6355 Crain Hwy
La Plata, MD 20646
301-932-3600
301-932-3643 (direct line)

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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 by Email

2011-02-14 Thread Andre Kruger
As follows:
 
/usr/bin/printf "%b" "* TRW Automotive SA *\n\nNotification Type: 
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nDescription: 
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: 
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n$LONGSERVICEOUTPUT$" | 
/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTNAME$/$SERVICEDESC$ is 
$SERVICESTATE$ **" $CONTACTEMAIL$
 


>>>  2011/02/11 18:02 >>>
Sorry for top posting...

What command are you using for the notification? / How are you sending
these mails?

We originally used a simple one like this...
which just 'echos' text in to the mail command
=
# 'notify-by-email' command definition
define command{
command_namecustomer-notify-by-email
command_line/bin/echo "To: $CONTACTEMAIL$\n\
Subject: $SERVICESTATE$ alert for $HOSTNAME$/$SERVICEDESC$\n\
\n\
\n\
application=\"Nagios\"\n\
node=\"$HOSTNAME$\"\n\
type=\"$NOTIFICATIONTYPE$\"\n\
service=\"$SERVICEDESC$\"\n\
criticality=\"$_SERVICECRITICALITY$\"\n\
service status=\"$SERVICESTATE$\" (for $SERVICEDURATION$)  last time
it was \"$LASTSERVICESTATE$\"\n\
message=\"$SHORTDATETIME$ - $SERVICEDESC$ on $HOSTNAME$
$SERVICESTATE$ - $SERVICEOUTPUT$ - $TOTALSERVICESCRITICAL$ services
critical in total\"\n\
msg=\"$LONGSERVICEOUTPUT$\"\n\
checked using=\"$SERVICECHECKCOMMAND$\"\n\
" | /usr/bin/mail $CONTACTEMAIL$
}
=



Then went for a neater solution that work work across our different platforms
this sends the arguments from nagios in to a wrapper scrip for mail...
=
# 'notify-service-by-email' command definition
define command{
command_namenotify-service-by-email
command_line/etc/nagios/global/commands/nagios-mailx.sh -t
$CONTACTEMAIL$ -s "$SERVICESTATE$ Service Alert:
$HOSTNAME$/$SERVICEDESC$" -y "$NOTIFICATIONTYPE$" -m "* Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\nCriticality: $_SERVICECRITICALITY$\n\nDate/Time:
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nSee:
$_SERVICENAGIOS_URL$host=$HOSTNAME$&service=$SERVICEDESC$\n\nCommand:
$SERVICECHECKCOMMAND$"
=

===
cat /etc/nagios/global/commands/nagios-mailx.sh
#!/bin/sh
#script to send mail for nagios
#this should work on mutiple OS's


PROGNAME=`/bin/basename $0`
PRINTF='/usr/bin/printf'


find_mailx() {
#find a version of mailx
if [ -x /bin/mailx ] ; then
MAILX='/bin/mailx'
elif [ -x /usr/bin/mailx  ] ; then
MAILX='/usr/bin/mailx'
fi
}


print_usage() {
echo "Usage: $PROGNAME -s subject -t to: address -m \"message text"
echo "Usage: $PROGNAME --help"
}

print_help() {
print_revision $PROGNAME
echo ""
print_usage
echo ""
echo "a script to send mail for Nagios"
echo ""
support
}

# Make sure the correct number of command line
# arguments have been supplied

if [ $# -lt 6 ]; then
print_usage
exit 1
fi

find_mailx
type=''

while getopts "s:t:m:y:h" flag
do
case $flag in
h)
print_help
exit 0
;;
y)
type=$OPTARG
;;
s)
subject=$OPTARG
;;
t)
sendTo=$OPTARG
;;
m)
msgText=$OPTARG
bodyText=`$PRINTF "%b\n" "$msgText"`
;;
*)
print_usage
exit $STATE_UNKNOWN;
;;
esac;
done

if [ -n "${type}" ] && [ "${type}" != '$' ]; then
subject="${subject} [${type}]"
fi

$MAILX -s "$subject"  $sendTo << MAILBODY
$bodyText
MAILBODY
===

Ritchie,
--
Fnord...
<-- http://23.me.uk --> <-- http://wiki.s23.org --> <--
http://twitter.com/23me -->
<- -Only the lavender prairie dogs know the key to unlock the secret
of the tumble-weeds. -->



On Fri, Feb 11, 2011 at 11:57 AM, Andre Kruger  wrote:
> I have tried replacing my "&" with %26 , but that does not work. The %26
> shows in my Notification email but then the link does not work as expected.
>
> Next I tried the \ escape character, but then when I receive the
> notification email the "b" of "...&body=..." is gone.
>
> I am not sure about the escape_html_tags as this is the configuration for
> the Nagios web interface and I don't believe it would have any impact on
> Notifications sent out from Nagios
>
 Yueh-Hung Liu  2011/02/11 13:20 >>>
> maybe "escape_html_tags" in CGI configuration file?
>
>
> On Fri, Feb 11, 2011 at 6:56 PM, Andre Kruger  wrote:
>> I would try an escape key if I knew what it was. Any idea?
>>
>> It just seems strange to me that from Nagois on

Re: [Nagios-users] Notification by Email

2011-02-11 Thread mail
Sorry for top posting...

What command are you using for the notification? / How are you sending
these mails?

We originally used a simple one like this...
which just 'echos' text in to the mail command
=
# 'notify-by-email' command definition
define command{
command_namecustomer-notify-by-email
command_line/bin/echo "To: $CONTACTEMAIL$\n\
Subject: $SERVICESTATE$ alert for $HOSTNAME$/$SERVICEDESC$\n\
\n\
\n\
 application=\"Nagios\"\n\
 node=\"$HOSTNAME$\"\n\
 type=\"$NOTIFICATIONTYPE$\"\n\
 service=\"$SERVICEDESC$\"\n\
 criticality=\"$_SERVICECRITICALITY$\"\n\
 service status=\"$SERVICESTATE$\" (for $SERVICEDURATION$)  last time
it was \"$LASTSERVICESTATE$\"\n\
 message=\"$SHORTDATETIME$ - $SERVICEDESC$ on $HOSTNAME$
$SERVICESTATE$ - $SERVICEOUTPUT$ - $TOTALSERVICESCRITICAL$ services
critical in total\"\n\
 msg=\"$LONGSERVICEOUTPUT$\"\n\
 checked using=\"$SERVICECHECKCOMMAND$\"\n\
" | /usr/bin/mail $CONTACTEMAIL$
}
=



Then went for a neater solution that work work across our different platforms
this sends the arguments from nagios in to a wrapper scrip for mail...
=
# 'notify-service-by-email' command definition
define command{
command_namenotify-service-by-email
command_line/etc/nagios/global/commands/nagios-mailx.sh -t
$CONTACTEMAIL$ -s "$SERVICESTATE$ Service Alert:
$HOSTNAME$/$SERVICEDESC$" -y "$NOTIFICATIONTYPE$" -m "* Nagios
*\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\nCriticality: $_SERVICECRITICALITY$\n\nDate/Time:
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nSee:
$_SERVICENAGIOS_URL$host=$HOSTNAME$&service=$SERVICEDESC$\n\nCommand:
$SERVICECHECKCOMMAND$"
=

===
cat /etc/nagios/global/commands/nagios-mailx.sh
#!/bin/sh
#script to send mail for nagios
#this should work on mutiple OS's


PROGNAME=`/bin/basename $0`
PRINTF='/usr/bin/printf'


find_mailx() {
#find a version of mailx
if [ -x /bin/mailx ] ; then
MAILX='/bin/mailx'
elif [ -x /usr/bin/mailx  ] ; then
MAILX='/usr/bin/mailx'
fi
}


print_usage() {
echo "Usage: $PROGNAME -s subject -t to: address -m \"message text"
echo "Usage: $PROGNAME --help"
}

print_help() {
print_revision $PROGNAME
echo ""
print_usage
echo ""
echo "a script to send mail for Nagios"
echo ""
support
}

# Make sure the correct number of command line
# arguments have been supplied

if [ $# -lt 6 ]; then
print_usage
exit 1
fi

find_mailx
type=''

while getopts "s:t:m:y:h" flag
do
case $flag in
h)
print_help
exit 0
;;
y)
type=$OPTARG
;;
s)
subject=$OPTARG
;;
t)
sendTo=$OPTARG
;;
m)
msgText=$OPTARG
bodyText=`$PRINTF "%b\n" "$msgText"`
;;
*)
print_usage
exit $STATE_UNKNOWN;
;;
esac;
done

if [ -n "${type}" ] && [ "${type}" != '$' ]; then
subject="${subject} [${type}]"
fi

$MAILX -s "$subject"  $sendTo << MAILBODY
$bodyText
MAILBODY
===

Ritchie,
--
Fnord...
<-- http://23.me.uk --> <-- http://wiki.s23.org --> <--
http://twitter.com/23me -->
<- -Only the lavender prairie dogs know the key to unlock the secret
of the tumble-weeds. -->



On Fri, Feb 11, 2011 at 11:57 AM, Andre Kruger  wrote:
> I have tried replacing my "&" with %26 , but that does not work. The %26
> shows in my Notification email but then the link does not work as expected.
>
> Next I tried the \ escape character, but then when I receive the
> notification email the "b" of "...&body=..." is gone.
>
> I am not sure about the escape_html_tags as this is the configuration for
> the Nagios web interface and I don't believe it would have any impact on
> Notifications sent out from Nagios
>
 Yueh-Hung Liu  2011/02/11 13:20 >>>
> maybe "escape_html_tags" in CGI configuration file?
>
>
> On Fri, Feb 11, 2011 at 6:56 PM, Andre Kruger  wrote:
>> I would try an escape key if I knew what it was. Any idea?
>>
>> It just seems strange to me that from Nagois on the way to Postfix the "&"
>> is dumped somewhere along the way.
>>
>  2011/02/11 12:35 >>>
>> On Fri, Feb 11, 2011 at 9:33 AM, Andre Kruger 
>> wrote:
>>> Hi
>>>
>>> I have a problem getting my status detail sent (correctly) via email. Let
>>> me
>>> explain. If I look at Nagios self and I look at the status detail for a
>>> printer that I monitor I see the following, which is correct BTW:
>>>
>>>
>>>
>>> serv...@kyocera.co.za?subject=Toner%20Or

Re: [Nagios-users] Notification by Email

2011-02-11 Thread Andre Kruger
I have tried replacing my "&" with %26 , but that does not work. The %26 shows 
in my Notification email but then the link does not work as expected.
 
Next I tried the \ escape character, but then when I receive the notification 
email the "b" of "...&body=..." is gone.
 
I am not sure about the escape_html_tags as this is the configuration for the 
Nagios web interface and I don't believe it would have any impact on 
Notifications sent out from Nagios

>>> Yueh-Hung Liu  2011/02/11 13:20 >>>
maybe "escape_html_tags" in CGI configuration file?


On Fri, Feb 11, 2011 at 6:56 PM, Andre Kruger  wrote:
> I would try an escape key if I knew what it was. Any idea?
>
> It just seems strange to me that from Nagois on the way to Postfix the "&"
> is dumped somewhere along the way.
>
  2011/02/11 12:35 >>>
> On Fri, Feb 11, 2011 at 9:33 AM, Andre Kruger  wrote:
>> Hi
>>
>> I have a problem getting my status detail sent (correctly) via email. Let
>> me
>> explain. If I look at Nagios self and I look at the status detail for a
>> printer that I monitor I see the following, which is correct BTW:
>>
>>
>> serv...@kyocera.co.za?subject=Toner%20Order&body=Hi%20Nadia%0A%0AModel:%20KM-C3225%0AAsset#:%20"UAD6X01096"%0AMono:%2088108%20Colour:%20148705%0AColour%20Required:%20Magenta%0A%0ARegards%0AAndre
>>
>> If you copy and paste that link into word and you click it you will see
>> that
>> it populates the entire email for you and you just have to hit send. Now
>> when this service goes into critical (like I have done here to test) it
>> send
>> me an email, but this is where the problem comes in. When I get my email
>> the
>> "&" is missing from the above link and then it does not work properly.
>> Somewhere Nagios removes it and I have no clue where. I have sent a test
>> mail from a shell on my Nagios machine as follows:
>>
>> /usr/bin/printf "Body&Text" | /bin/mail -s "Subject" andre.kru...@trw.com.
>>
>> When I receive this mail it still has the "&" in the body. So I am making
>> the assumption that somewhere between Nagios and Postfix when it send the
>> notification the "&" is removed. Can somebody please shed some light on
>> this?
>
>
>
> try escaping or html encoding the #
>
>>
>> Regards
>> Andre
>>
>> P Please consider your environmental responsibility before printing this
>> e-mail or any other document. Ask yourself whether you need a hard copy.
>>
>> --
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> ___
>> 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
>>
>
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> 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
>
> P Please consider your environmental responsibility before printing this
> e-mail or any other document. Ask yourself whether you need a hard copy.
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> 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
>

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Fin

Re: [Nagios-users] Notification by Email

2011-02-11 Thread Yueh-Hung Liu
maybe "escape_html_tags" in CGI configuration file?


On Fri, Feb 11, 2011 at 6:56 PM, Andre Kruger  wrote:
> I would try an escape key if I knew what it was. Any idea?
>
> It just seems strange to me that from Nagois on the way to Postfix the "&"
> is dumped somewhere along the way.
>
  2011/02/11 12:35 >>>
> On Fri, Feb 11, 2011 at 9:33 AM, Andre Kruger  wrote:
>> Hi
>>
>> I have a problem getting my status detail sent (correctly) via email. Let
>> me
>> explain. If I look at Nagios self and I look at the status detail for a
>> printer that I monitor I see the following, which is correct BTW:
>>
>>
>> serv...@kyocera.co.za?subject=Toner%20Order&body=Hi%20Nadia%0A%0AModel:%20KM-C3225%0AAsset#:%20"UAD6X01096"%0AMono:%2088108%20Colour:%20148705%0AColour%20Required:%20Magenta%0A%0ARegards%0AAndre
>>
>> If you copy and paste that link into word and you click it you will see
>> that
>> it populates the entire email for you and you just have to hit send. Now
>> when this service goes into critical (like I have done here to test) it
>> send
>> me an email, but this is where the problem comes in. When I get my email
>> the
>> "&" is missing from the above link and then it does not work properly.
>> Somewhere Nagios removes it and I have no clue where. I have sent a test
>> mail from a shell on my Nagios machine as follows:
>>
>> /usr/bin/printf "Body&Text" | /bin/mail -s "Subject" andre.kru...@trw.com.
>>
>> When I receive this mail it still has the "&" in the body. So I am making
>> the assumption that somewhere between Nagios and Postfix when it send the
>> notification the "&" is removed. Can somebody please shed some light on
>> this?
>
>
>
> try escaping or html encoding the #
>
>>
>> Regards
>> Andre
>>
>> P Please consider your environmental responsibility before printing this
>> e-mail or any other document. Ask yourself whether you need a hard copy.
>>
>> --
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> ___
>> 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
>>
>
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> 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
>
> P Please consider your environmental responsibility before printing this
> e-mail or any other document. Ask yourself whether you need a hard copy.
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> 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
>

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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/n

Re: [Nagios-users] Notification by Email

2011-02-11 Thread Andre Kruger
I would try an escape key if I knew what it was. Any idea?
 
It just seems strange to me that from Nagois on the way to Postfix the "&" is 
dumped somewhere along the way.

>>>  2011/02/11 12:35 >>>
On Fri, Feb 11, 2011 at 9:33 AM, Andre Kruger  wrote:
> Hi
>
> I have a problem getting my status detail sent (correctly) via email. Let me
> explain. If I look at Nagios self and I look at the status detail for a
> printer that I monitor I see the following, which is correct BTW:
>
> serv...@kyocera.co.za?subject=Toner%20Order&body=Hi%20Nadia%0A%0AModel:%20KM-C3225%0AAsset#:%20"UAD6X01096"%0AMono:%2088108%20Colour:%20148705%0AColour%20Required:%20Magenta%0A%0ARegards%0AAndre
>
> If you copy and paste that link into word and you click it you will see that
> it populates the entire email for you and you just have to hit send. Now
> when this service goes into critical (like I have done here to test) it send
> me an email, but this is where the problem comes in. When I get my email the
> "&" is missing from the above link and then it does not work properly.
> Somewhere Nagios removes it and I have no clue where. I have sent a test
> mail from a shell on my Nagios machine as follows:
>
> /usr/bin/printf "Body&Text" | /bin/mail -s "Subject" andre.kru...@trw.com.
>
> When I receive this mail it still has the "&" in the body. So I am making
> the assumption that somewhere between Nagios and Postfix when it send the
> notification the "&" is removed. Can somebody please shed some light on
> this?



try escaping or html encoding the #

>
> Regards
> Andre
>
> P Please consider your environmental responsibility before printing this
> e-mail or any other document. Ask yourself whether you need a hard copy.
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> 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
>

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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


Please consider your environmental responsibility before printing this e-mail 
or any other document. Ask yourself whether you need a hard copy.

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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 by Email

2011-02-11 Thread mail
On Fri, Feb 11, 2011 at 9:33 AM, Andre Kruger  wrote:
> Hi
>
> I have a problem getting my status detail sent (correctly) via email. Let me
> explain. If I look at Nagios self and I look at the status detail for a
> printer that I monitor I see the following, which is correct BTW:
>
> serv...@kyocera.co.za?subject=Toner%20Order&body=Hi%20Nadia%0A%0AModel:%20KM-C3225%0AAsset#:%20"UAD6X01096"%0AMono:%2088108%20Colour:%20148705%0AColour%20Required:%20Magenta%0A%0ARegards%0AAndre
>
> If you copy and paste that link into word and you click it you will see that
> it populates the entire email for you and you just have to hit send. Now
> when this service goes into critical (like I have done here to test) it send
> me an email, but this is where the problem comes in. When I get my email the
> "&" is missing from the above link and then it does not work properly.
> Somewhere Nagios removes it and I have no clue where. I have sent a test
> mail from a shell on my Nagios machine as follows:
>
> /usr/bin/printf "Body Text" | /bin/mail -s "Subject" andre.kru...@trw.com.
>
> When I receive this mail it still has the "&" in the body. So I am making
> the assumption that somewhere between Nagios and Postfix when it send the
> notification the "&" is removed. Can somebody please shed some light on
> this?



try escaping or html encoding the #

>
> Regards
> Andre
>
> P Please consider your environmental responsibility before printing this
> e-mail or any other document. Ask yourself whether you need a hard copy.
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> 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
>

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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

[Nagios-users] Notification by Email

2011-02-11 Thread Andre Kruger
Hi
 
I have a problem getting my status detail sent (correctly) via email. Let me 
explain. If I look at Nagios self and I look at the status detail for a printer 
that I monitor I see the following, which is correct BTW:
 
serv...@kyocera.co.za?subject=Toner%20Order&body=Hi%20Nadia%0A%0AModel:%20KM-C3225%0AAsset#:%20"UAD6X01096"%0AMono:%2088108%20Colour:%20148705%0AColour%20Required:%20Magenta%0A%0ARegards%0AAndre
 ( 
'mailto:serv...@kyocera.co.za?subject=Toner%20Order&body=Hi%20Nadia%0A%0AModel:%20KM-C3225%0AAsset#:%20"UAD6X01096"%0AMono:%2088108%20Colour:%20148705%0AColour%20Required:%20Magenta%0A%0ARegards%0AAndre'
 )
 
If you copy and paste that link into word and you click it you will see that it 
populates the entire email for you and you just have to hit send. Now when this 
service goes into critical (like I have done here to test) it send me an email, 
but this is where the problem comes in. When I get my email the "&" is missing 
from the above link and then it does not work properly. Somewhere Nagios 
removes it and I have no clue where. I have sent a test mail from a shell on my 
Nagios machine as follows:
 
/usr/bin/printf "Body Text" | /bin/mail -s "Subject" andre.kru...@trw.com.
 
When I receive this mail it still has the "&" in the body. So I am making the 
assumption that somewhere between Nagios and Postfix when it send the 
notification the "&" is removed. Can somebody please shed some light on this?
 
Regards
Andre


Please consider your environmental responsibility before printing this e-mail 
or any other document. Ask yourself whether you need a hard copy.

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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 criteria

2011-01-26 Thread Lennard Bakker

A plain RTFM answer:
http://nagios.sourceforge.net/docs/3_0/statetypes.html



On 26-1-2011 16:32, l.vazq...@bpa.ad wrote:
> Good Evening,
> 
> I have a doubt with nagios notification criteria.
> 
> [26-01-2011 15:40:45] SERVICE ALERT:
> hostName;serviceName;CRITICAL;HARD;3;Trying IP:443... [ KO ] :: Host no
> accessible
> [2601-2011 15:29:05] SERVICE ALERT:
> hostName;serviceName;CRITICAL;SOFT;2;Trying IP:443... [ KO ] :: Host no
> accessible
> [26-01-2011 15:16:05] SERVICE ALERT:
> hostName;serviceName;CRITICAL;SOFT;1;Trying IP4:443... [ KO ] :: Host no
> accessible
> 
> The critical state began at 15:16, but I didn't receive any notification
> tll 15:40, when 'HARD' has been marked instead of 'SOFT'.
> What's the difference? What's the service/config parameter of
> 'HARD'/'SOFT'?
> 
> This is my service config:
> 
> retry_check_interval5
> notification_interval   30
> notification_period 24x7
> notification_optionsw,u,c,r
> 
> Thanks in advance,
> --*
> Laura Vàzquez Martín**
> *
> 
> 
> 
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
> February 28th, so secure your free ArcSight Logger TODAY! 
> http://p.sf.net/sfu/arcsight-sfd2d
> 
> 
> 
> ___
> 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


--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
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 criteria

2011-01-26 Thread Jeffrey Watts
Nagios notifies on HARD states (or flapping, which is another matter).  It's
generally assumed that people don't want to be notified every time there's a
failed check - they want to be notified after it's failed a certain number
of times.

A SOFT state is a state where non-OK checks have occurred less than
max_check_attempts number of times.  In your case, it appears that
max_check_attempts is 3.  Nagios will try host or service (in your example)
3 times before going into a HARD state and notifying.

In your example there appears to be a discrepancy between the
retry_check_interval and when the checks were actually performed.

Jeffrey.

On Wed, Jan 26, 2011 at 9:32 AM,  wrote:

> Good Evening,
>
> I have a doubt with nagios notification criteria.
>
> [26-01-2011 15:40:45] SERVICE ALERT:
> hostName;serviceName;CRITICAL;HARD;3;Trying IP:443... [ KO ] :: Host no
> accessible
> [2601-2011 15:29:05] SERVICE ALERT:
> hostName;serviceName;CRITICAL;SOFT;2;Trying IP:443... [ KO ] :: Host no
> accessible
> [26-01-2011 15:16:05] SERVICE ALERT:
> hostName;serviceName;CRITICAL;SOFT;1;Trying IP4:443... [ KO ] :: Host no
> accessible
>
> The critical state began at 15:16, but I didn't receive any notification
> tll 15:40, when 'HARD' has been marked instead of 'SOFT'.
> What's the difference? What's the service/config parameter of
> 'HARD'/'SOFT'?
>
> This is my service config:
>
> retry_check_interval5
> notification_interval   30
> notification_period 24x7
> notification_optionsw,u,c,r
>
> Thanks in advance,
> --*
> Laura Vàzquez Martín*
>
>
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
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 criteria

2011-01-26 Thread Flyinvap
Le 26/01/2011 16:32, l.vazq...@bpa.ad a écrit :
> The critical state began at 15:16, but I didn't receive any notification 
> tll 15:40, when 'HARD' has been marked instead of 'SOFT'.
> What's the difference? What's the service/config parameter of 
> 'HARD'/'SOFT'?

  You should read the doc [0].

[0] http://nagios.sourceforge.net/docs/3_0/statetypes.html

-- 
Fly

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
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


[Nagios-users] Notification criteria

2011-01-26 Thread l . vazquez
Good Evening,

I have a doubt with nagios notification criteria. 

[26-01-2011 15:40:45] SERVICE ALERT: 
hostName;serviceName;CRITICAL;HARD;3;Trying IP:443... [ KO ] :: Host no 
accessible 
[2601-2011 15:29:05] SERVICE ALERT: 
hostName;serviceName;CRITICAL;SOFT;2;Trying IP:443... [ KO ] :: Host no 
accessible 
[26-01-2011 15:16:05] SERVICE ALERT: 
hostName;serviceName;CRITICAL;SOFT;1;Trying IP4:443... [ KO ] :: Host no 
accessible 

The critical state began at 15:16, but I didn't receive any notification 
tll 15:40, when 'HARD' has been marked instead of 'SOFT'.
What's the difference? What's the service/config parameter of 
'HARD'/'SOFT'?

This is my service config:

retry_check_interval5
notification_interval   30
notification_period 24x7
notification_optionsw,u,c,r

Thanks in advance,
--
Laura Vàzquez Martín
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
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 email to different addresses

2010-12-30 Thread Jim Avery
On 30 December 2010 14:19, Wilfred de Bondt  wrote:
> Dear all,
>
> Hopefully the people here can help me. I want to send notification
> emails to different email addresses based on which service is failing.
> So in other words, if service A fails email is sent to email address A
> and if service B fails email is sent to email address B but not to A.
>
> Is this even possible within Nagios or do I have to do this in the email
> server itself?

Yes, it's quite easy to configure.

You need to define two contacts, one for each of the email addresses,
then you can specfy which contact will receive the notification using
the 'contacts' directive in your service definition.

See:

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service
and
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact

In fact you might find it best to set up contactgroups too, which
makes it easier to move people from one contactgroup to another
without editing all your service definitions.

hth,

Jim

--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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 email to different addresses

2010-12-30 Thread steve f

Wilfred,

Nagios can be configured for notifications on a per service level.  :

Each service definition has a  option that 
specifies what contact groups receive notifications for that particular 
service.  Each contact group can contain one or more individual 
contacts.  When Nagios sends out a service notification, it will notify 
each contact that is a member of any contact groups specified in the 
 option of the service definition.

You can get the info you need here ( for Nagios core 3.x, Nagios XI should have 
simular info in its docs ) 

http://nagios.sourceforge.net/docs/3_0/notifications.html
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html

Steve



> From: wilf...@stachanov.com
> To: nagios-users@lists.sourceforge.net
> Date: Thu, 30 Dec 2010 15:19:37 +0100
> Subject: [Nagios-users] Notification email to different addresses
> 
> Dear all,
> 
> Hopefully the people here can help me. I want to send notification
> emails to different email addresses based on which service is failing.
> So in other words, if service A fails email is sent to email address A
> and if service B fails email is sent to email address B but not to A.
> 
> Is this even possible within Nagios or do I have to do this in the email
> server itself?
> 
> Kind regards,
> 
> -- 
> Wilfred de Bondt 
> Systems Engineer
> Stachanov Group:  phone: (+31)205091010
> For more information, see website web: 
> www.stachanov.com/
> www.issuu.com/stachanov
> 
> 
> 
> 
> --
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and, 
> should the need arise, upgrade to a full multi-node Oracle RAC database 
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> ___
> 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
  --
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl___
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

[Nagios-users] Notification email to different addresses

2010-12-30 Thread Wilfred de Bondt
Dear all,

Hopefully the people here can help me. I want to send notification
emails to different email addresses based on which service is failing.
So in other words, if service A fails email is sent to email address A
and if service B fails email is sent to email address B but not to A.

Is this even possible within Nagios or do I have to do this in the email
server itself?

Kind regards,

-- 
Wilfred de Bondt 
Systems Engineer
Stachanov Group:  phone: (+31)205091010
For more information, see website web: 
www.stachanov.com/
www.issuu.com/stachanov




--
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
___
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


[Nagios-users] notification subsystem vs event_handler

2010-09-10 Thread Ryan C Ash
We are in the process of designing a Nagios deployment which is
replacing portions of a vendor solution.  We have a mature ticketing
system which we are integrating with Nagios.  Our initial design
utilized the event_handler functionality to interface with the ticketing
system.  This appears to be standard operating procedure for this type
of integration according to the documentation. I have been fighting with
design issues surrounding the use of a event_handler and I am wondering
if using the notification subsystem isn't a better design.  

Issues with event_handler: 
1. The "acknowledgement" of a svc/host check will be important us. While
the ticket is open in our ticketing system we will not allow any more
events through for that host-svc combination.  This can be easily done
with the integration but the event_handler would continue to fire. 
2. Multiple event_handler needed, one of which may "ack" the event, thus
stopping the ticketing integration
3. Limited control of when these fire, leading to wasted cycles
4. No feature like the external command "ACKNOWLEDGE_SVC_PROBLEM"

Essentially we would just use a custom service_notification_command (and
host) within a custom "contact".  That contact is essentially the global
ticketing integration and would do nothing else.  The "contact would be
assigned to everything, or at least everything going to the ticketing
system.   

Am I missing anything or is the notification route as good as it sounds?


Ryan Ash

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
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


[Nagios-users] notification script

2010-07-21 Thread Darren Hill
Hi,

I'm having a hard time having my notification script figure out whether 
the notification is a service or host notification, and then use qpage 
to send it out.
Here's what I have so far.
I'm using opsview which does not allow seperate commands for host and 
service, so I have to write the smarts into the notification script.


#!/usr/bin/perl
use strict;
use lib '/usr/local/nagios/perl/lib';
my $contact = $ENV{NAGIOS_CONTACTNAME};
my $command = '/usr/local/bin/qpage';
my $text;
if ( $ENV{NAGIOS_SERVICEDESC} ) {
 $text = "$ENV{NAGIOS_SERVICEDESC} on $ENV{NAGIOS_HOSTNAME} is 
$ENV{NAGIOS_SERVICESTATE}: $ENV{NAGIOS_SERVICEOUTPUT}
";
}
else {
 $text = "$ENV{NAGIOS_HOSTNAME} is $ENV{NAGIOS_HOSTSTATE}: 
$ENV{NAGIOS_HOSTOUTPUT}";
}
my @command = ( $command, '-p', $contact, $text );


Any ideas?

Thanks



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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


[Nagios-users] Notification from past scheduled downtime events

2010-07-12 Thread Li, Andrew1
Hi All,

My understanding is that when there's a schedule downtime for a host,
there should be no notification sent out for all services for that host.

In our setup, we get notification for a "service down" during the host
schedule downtime period because it looks like that the check result of
that event is stored in nagios/var/spool/checkresults/xxx and
reap_check_results() comes along sometime after the schedule downtime
and generates output based on the old results. This causes some annoying
SMS alerts because they come in a day later at odd times.

Have anyone seen this before?

Let me know if I need to provide more info for you to comment.

Thanks,
Andrew

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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 when a file is found

2010-05-13 Thread akp geek
Thanks a lot. I am working on it

Regards

On Thu, May 13, 2010 at 12:46 PM, Vincent Colombo wrote:

>
> http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/check_newfiles-2Esh/details
>
> On Thu, May 13, 2010 at 11:36 AM, akp geek  wrote:
>
>> Dear all -
>>
>>  We are using nagios. I would like to know if there is a way
>> notification can be sent if there is a new file created in a directory? Can
>> you please help?
>>
>> Regards
>>
>>
>> --
>>
>>
>> ___
>> 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
>>
>
>
>
> --
>
>
> ___
> 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
>
--

___
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 when a file is found

2010-05-13 Thread Morris, Patrick
akp geek wrote:
> Dear all -
>
>  We are using nagios. I would like to know if there is a 
> way notification can be sent if there is a new file created in a 
> directory? Can you please help?

It's incredibly easy to write a Nagios plugin.  The only major 
requirement is that it return a valid error code so that Nagios can 
interpret the results.  Something like this would work:

-- start check_file.sh --
#!/bin/sh

# $1 = Full path of filename to watch for

$ERRORCODE=0

if [ -e $1 ]; then
   $ERRORCODE=1
fi

exit $ERRORCODE
-- end check_file.sh -- 

--

___
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 when a file is found

2010-05-13 Thread Vincent Colombo
http://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/check_newfiles-2Esh/details

On Thu, May 13, 2010 at 11:36 AM, akp geek  wrote:

> Dear all -
>
>  We are using nagios. I would like to know if there is a way
> notification can be sent if there is a new file created in a directory? Can
> you please help?
>
> Regards
>
>
> --
>
>
> ___
> 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
>
--

___
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

[Nagios-users] notification when a file is found

2010-05-13 Thread akp geek
Dear all -

 We are using nagios. I would like to know if there is a way
notification can be sent if there is a new file created in a directory? Can
you please help?

Regards
--

___
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 Interval set to 0 not working as per doc

2010-03-09 Thread Jatin Davey
Thanks Marc,

I defined a new service definition and had set the notification interval 
for it to 0 and it worked as i wanted.
I wrongly understood that putting this value to host definitions would 
yield me the required result but it was not so.
Created a new service definition with notification interval set to 0 and 
then used the service definition into all the services that i needed.

Appreciate your timely help in this regard.

Thanks
Jatin

On 3/9/2010 6:57 PM, Marc Powell wrote:
> On Mar 9, 2010, at 1:50 AM, Jatin Davey wrote:
>
>
>> Please let me know what needs to be done , i am kind of receving 1000
>> notifications per day for the same hosts.
>>  
>
>>> 2. Given below is the output from one of the host as found in the
>>> object.cache file:
>>>
>>> define host {
>>>
> This has no relevance since you're asking about service notifications. Look 
> for the service definition in question in objects.cache. Verify that 
> retry_interval is what you expect it to be. If it is, you have multiple 
> nagios daemons running, escalations defined or some problem with your MTA not 
> removing messages from queue after delivery.
>
> --
> Marc
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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
>
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-09 Thread Marc Powell

On Mar 9, 2010, at 1:50 AM, Jatin Davey wrote:

> Please let me know what needs to be done , i am kind of receving 1000 
> notifications per day for the same hosts.

>> 2. Given below is the output from one of the host as found in the 
>> object.cache file:
>> 
>> define host {

This has no relevance since you're asking about service notifications. Look for 
the service definition in question in objects.cache. Verify that retry_interval 
is what you expect it to be. If it is, you have multiple nagios daemons 
running, escalations defined or some problem with your MTA not removing 
messages from queue after delivery.

--
Marc


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-08 Thread Jatin Davey
Please let me know what needs to be done , i am kind of receving 1000 
notifications per day for the same hosts.

Thanks
Jatin

On 3/8/2010 9:54 AM, Jatin Davey wrote:
> Hi Jim
>
> Replies to the questions that you had asked about the issue:
>
> 1. I do not have any escalations defined.
>
> 2. Given below is the output from one of the host as found in the 
> object.cache file:
>
> define host {
> host_name   Windows-
> alias   Windows XP PC
> address x.x.x.x
> check_period24x7
> check_command   check-host-alive
> contact_groups  
> notification_period 24x7
> initial_state   o
> check_interval  2.00
> retry_interval  1.00
> max_check_attempts  2
> active_checks_enabled   1
> passive_checks_enabled  1
> obsess_over_host1
> event_handler_enabled   1
> low_flap_threshold  0.00
> high_flap_threshold 0.00
> flap_detection_enabled  1
> flap_detection_options  o,d,u
> freshness_threshold 0
> check_freshness 0
> notification_optionsd,r,f,s
> notifications_enabled   1
> notification_interval   0.00
> first_notification_delay0.00
> stalking_optionsn
> process_perf_data   1
> failure_prediction_enabled  1
> retain_status_information   1
> retain_nonstatus_information1
> }
>
> Please let me know if any further inputs are needed.
>
> Thanks
> Jatin
>
>
> On 3/5/2010 8:04 PM, Jim Avery wrote:
>> On 5 March 2010 10:16, Jatin Davey  wrote:
>>> Hi
>>>
>>> The Nagios documentation says that when you set the "Notification
>>> Interval" to 0 , it will notify with an email alert only once when the
>>> service state goes to "down" from "up" , it will then again notify when
>>> the service comes back to "up" state , correct me if am wrong.
>>>
>>> But when i set this to 0 , i am still getting email notifications every
>>> 10 mins for the service which is in "down" state for more than one day.
>>>
>>> Is this is a bug or am i missing something here , Please let me know.
>> Bit of a long shot, but do you have any escalations defined?
>>
>> Also, check what the service or host definition looks like in your
>> objects.cache file and post it here if you would like it checked-over.
>>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-07 Thread Jatin Davey
Hi Jim

Replies to the questions that you had asked about the issue:

1. I do not have any escalations defined.

2. Given below is the output from one of the host as found in the 
object.cache file:

define host {
 host_name   Windows-
 alias   Windows XP PC
 address x.x.x.x
 check_period24x7
 check_command   check-host-alive
 contact_groups  
 notification_period 24x7
 initial_state   o
 check_interval  2.00
 retry_interval  1.00
 max_check_attempts  2
 active_checks_enabled   1
 passive_checks_enabled  1
 obsess_over_host1
 event_handler_enabled   1
 low_flap_threshold  0.00
 high_flap_threshold 0.00
 flap_detection_enabled  1
 flap_detection_options  o,d,u
 freshness_threshold 0
 check_freshness 0
 notification_optionsd,r,f,s
 notifications_enabled   1
 notification_interval   0.00
 first_notification_delay0.00
 stalking_optionsn
 process_perf_data   1
 failure_prediction_enabled  1
 retain_status_information   1
 retain_nonstatus_information1
 }

Please let me know if any further inputs are needed.

Thanks
Jatin


On 3/5/2010 8:04 PM, Jim Avery wrote:
> On 5 March 2010 10:16, Jatin Davey  wrote:
>
>> Hi
>>
>> The Nagios documentation says that when you set the "Notification
>> Interval" to 0 , it will notify with an email alert only once when the
>> service state goes to "down" from "up" , it will then again notify when
>> the service comes back to "up" state , correct me if am wrong.
>>
>> But when i set this to 0 , i am still getting email notifications every
>> 10 mins for the service which is in "down" state for more than one day.
>>
>> Is this is a bug or am i missing something here , Please let me know.
>>  
> Bit of a long shot, but do you have any escalations defined?
>
> Also, check what the service or host definition looks like in your
> objects.cache file and post it here if you would like it checked-over.
>
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-07 Thread Jatin Davey
I did make sure to re-start nagios and also made sure that multiple 
instances of it are not running.

Thanks
Jatin

On 3/6/2010 3:31 AM, Marc Powell wrote:
> On Mar 5, 2010, at 4:16 AM, Jatin Davey wrote:
>
>
>> But when i set this to 0 , i am still getting email notifications every
>> 10 mins for the service which is in "down" state for more than one day.
>>
>> Is this is a bug or am i missing something here , Please let me know.
>>  
> Make sure that you restarted/reloaded nagios and that you don't have multiple 
> nagios daemons running at the same time (one that knows the old config, one 
> with the new).
>
> --
> Marc
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> 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
>
>

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-05 Thread Marc Powell

On Mar 5, 2010, at 4:16 AM, Jatin Davey wrote:

> But when i set this to 0 , i am still getting email notifications every 
> 10 mins for the service which is in "down" state for more than one day.
> 
> Is this is a bug or am i missing something here , Please let me know.

Make sure that you restarted/reloaded nagios and that you don't have multiple 
nagios daemons running at the same time (one that knows the old config, one 
with the new).

--
Marc


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 Interval set to 0 not working as per doc

2010-03-05 Thread Jim Avery
On 5 March 2010 10:16, Jatin Davey  wrote:
> Hi
>
> The Nagios documentation says that when you set the "Notification
> Interval" to 0 , it will notify with an email alert only once when the
> service state goes to "down" from "up" , it will then again notify when
> the service comes back to "up" state , correct me if am wrong.
>
> But when i set this to 0 , i am still getting email notifications every
> 10 mins for the service which is in "down" state for more than one day.
>
> Is this is a bug or am i missing something here , Please let me know.

Bit of a long shot, but do you have any escalations defined?

Also, check what the service or host definition looks like in your
objects.cache file and post it here if you would like it checked-over.

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


[Nagios-users] Notification Interval set to 0 not working as per doc

2010-03-05 Thread Jatin Davey
Hi

The Nagios documentation says that when you set the "Notification 
Interval" to 0 , it will notify with an email alert only once when the 
service state goes to "down" from "up" , it will then again notify when 
the service comes back to "up" state , correct me if am wrong.

But when i set this to 0 , i am still getting email notifications every 
10 mins for the service which is in "down" state for more than one day.

Is this is a bug or am i missing something here , Please let me know.

Thanks
Jatin

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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.


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 [|]

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 . 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.


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-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


[Nagios-users] Notification question

2010-01-19 Thread Steven Battaille
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?

 

Steven Battaille

 

 

 

--
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 Jim Avery
2010/1/4 steve f :
> 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

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  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.
>
>
> --
> 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

[Nagios-users] Notification Question

2010-01-04 Thread steve f

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.
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

Re: [Nagios-users] Notification period inheritance problem

2009-12-21 Thread Gordon Messmer

On 12/21/2009 08:09 AM, Tata, Joseph wrote:
Which version of Nagios are you using?  2.x does not seem to inherit 
properties or define services for hostgroups/servicegroups as 
described in the documentation for 3.x.


nagios-3.2.0

Secondly services have their own notification periods which can be 
different from the hosts they run on.  You should have a service 
template as well as a host template which defines these.


I know that.  I want the services to use the host's notification time.  
In order for that to happen, they need to not have a notification time 
of their own.  The documentation seems to suggest that "null" would 
accomplish this, but the code does something slightly different.


--
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 period inheritance problem

2009-12-21 Thread Gordon Messmer
On 12/16/2009 04:43 AM, Martin Melin wrote:
> On Wed, Dec 16, 2009 at 11:05 AM, Gordon Messmer  wrote:
>
>>
>> I'm sure that when you tell me what the "null" notification period does,
>> I'll understand how.  For now, I don't, because it doesn't seem to be
>> documented.
>>  
> null is a value for a notification period that does not have any
> effect. Most config's I've seen have a timeperiod named "none",
> configured to never match. This accomplishes the same thing.

I appreciate the time you've taken to answer my questions, but you're 
wrong.  The services which I've configured which have a "null" 
notification period will send notices regardless of the time, not never 
as you've suggested.

> Using
> null does not do anything special as far as inheritance is concerned -
>

Yes, I noticed that.  That is why I brought the issue up to begin with.  
My question is: why not?  The documentation states that services will 
inherit the hosts' notification time if the service definition has no 
time specified.  It also suggests that "null" is a special value that 
prevents inheritance.  It isn't documented to do anything other than 
prevent inheritance.  Why shouldn't that create an unspecified value?

I'm no longer asking anyone to explain the behavior.  The code was 
already pointed out, so I understand what /is/ happening.  My question 
is (and always was) whether or not the behavior should be considered a 
bug.  I'm convinced that it should.


--
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 period inheritance problem

2009-12-16 Thread Martin Melin
On Wed, Dec 16, 2009 at 11:05 AM, Gordon Messmer  wrote:
> On 12/15/2009 11:03 PM, Martin Melin wrote:
>> I don't understand why this is confusing.
>>
> ...
>> By setting "notification_period null" in your service definition, you
>> are explicitly overriding all forms of inheritance and setting the
>> notification_period to null, which happens to be a special
>> notification_period.
>>
>
> Is that so?  What does the special value do?  In all of the
> documentation, I only see "null" mentioned once.  In a section labeled
> "Cancelling Inheritance of String Values".  The documentation indicates
> that "null" can be used to prevent inheriting a value.  Neither of those
> things say to me, the user, that "null" is a special notification period.
>
>> So, the issue you are running into is due to you expecting implied
>> inheritance to take precedence over values defined in the service
>> definition itself.
>
> Only where the value is "null", which is documented only to prevent the
> inheritance of a value.
>
>> This would break the documented and expected
>> behavior of inheritance, and a lot of people's configurations.
>>
>
> I'm sure that when you tell me what the "null" notification period does,
> I'll understand how.  For now, I don't, because it doesn't seem to be
> documented.

null is a value for a notification period that does not have any
effect. Most config's I've seen have a timeperiod named "none",
configured to never match. This accomplishes the same thing. Using
null does not do anything special as far as inheritance is concerned -
you could define a timeperiod call "foobar" that never matches, and
use that instead of null. The problem is that both you and I got the
impression that 'null' might instead reset a variable so that it
behaves the same as being undefined, i.e. would not propagate to an
implementing definition from a template.

>
>> Something that might work, but unfortunately I can't try it as I've
>> already spent too much time on this email :-), is to set
>> notification_period to null in the template, which could mean that the
>> service definition will behave as though the notification_period value
>> is unset in the template. This would allow you to let the "null
>> notification period" template inherit from your normal template.
>>
>
> I'm not sure if you read my original email, but that's EXACTLY what I
> did.  Tell me again how you don't understand why this is confusing.

Interesting. I thought that you were setting the notification_period
in the service definition, but I see now that it is in the service
template. My mistake.

>
> Snark aside, I appreciate the help and discussion.  However, looking at
> the documentation again only convinces me more that the documentation
> and the code don't match up.  Your confusion, too, lends credence to my
> position, IMO.

I agree that the documentation can be clarified to explain that the
value 'null' does not, as one might think, reset a variable to
undefined.

Best regards,
Martin Melin

--
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 period inheritance problem

2009-12-16 Thread Gordon Messmer
On 12/15/2009 11:03 PM, Martin Melin wrote:
> I don't understand why this is confusing.
>
...
> By setting "notification_period null" in your service definition, you
> are explicitly overriding all forms of inheritance and setting the
> notification_period to null, which happens to be a special
> notification_period.
>

Is that so?  What does the special value do?  In all of the 
documentation, I only see "null" mentioned once.  In a section labeled 
"Cancelling Inheritance of String Values".  The documentation indicates 
that "null" can be used to prevent inheriting a value.  Neither of those 
things say to me, the user, that "null" is a special notification period.

> So, the issue you are running into is due to you expecting implied
> inheritance to take precedence over values defined in the service
> definition itself.

Only where the value is "null", which is documented only to prevent the 
inheritance of a value.

> This would break the documented and expected
> behavior of inheritance, and a lot of people's configurations.
>

I'm sure that when you tell me what the "null" notification period does, 
I'll understand how.  For now, I don't, because it doesn't seem to be 
documented.

> Something that might work, but unfortunately I can't try it as I've
> already spent too much time on this email :-), is to set
> notification_period to null in the template, which could mean that the
> service definition will behave as though the notification_period value
> is unset in the template. This would allow you to let the "null
> notification period" template inherit from your normal template.
>

I'm not sure if you read my original email, but that's EXACTLY what I 
did.  Tell me again how you don't understand why this is confusing.

Snark aside, I appreciate the help and discussion.  However, looking at 
the documentation again only convinces me more that the documentation 
and the code don't match up.  Your confusion, too, lends credence to my 
position, IMO.

--
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 period inheritance problem

2009-12-15 Thread Martin Melin
I don't understand why this is confusing.

You have a service template that defines a timeperiod. All services
that use that template will inherit the notification_period value from
the template, if they don't specify a notification_period themselves.

By setting "notification_period null" in your service definition, you
are explicitly overriding all forms of inheritance and setting the
notification_period to null, which happens to be a special
notification_period.

So, the issue you are running into is due to you expecting implied
inheritance to take precedence over values defined in the service
definition itself. This would break the documented and expected
behavior of inheritance, and a lot of people's configurations.

Now, I understand how you could run into this issue. But take a look
at the documentation again:

>>> Quoting from the documentation:
>>>
>>> The following table lists the object variables that will be implicitly 
>>> inherited from related objects if you don't explicitly specify their value 
>>> in your object definition or inherit them from a template

The implied inheritance variables will only be inherited from related
objects, if they are not specified in either the object definition or
template. In your case, notification_period is defined in your
template, so the implied inheritance is already overridden. You can't
bring that back by also explicitly defining a notification_period in
your service definition, even if that happens to be null, as null is
also a valid value for notification_period.

Something that definitely would work is for you to define another
service template without a notification_period value, and use that for
checks you want implied inheritance from.

Something that might work, but unfortunately I can't try it as I've
already spent too much time on this email :-), is to set
notification_period to null in the template, which could mean that the
service definition will behave as though the notification_period value
is unset in the template. This would allow you to let the "null
notification period" template inherit from your normal template.

Best regards,
Martin Melin

On Wed, Dec 16, 2009 at 12:26 AM, Gordon Messmer  wrote:
> On 12/15/2009 01:38 PM, Marc Powell wrote:
>> On Dec 15, 2009, at 2:04 PM, Gordon Messmer wrote:
>>
>>> Quoting from the documentation:
>>>
>>> The following table lists the object variables that will be implicitly 
>>> inherited from related objects if you don't explicitly specify their value 
>>> in your object definition or inherit them from a template
>>>
>>> ...so I need to not inherit the value from my template.  How do I do that?
>>>
>> Don't specify the directive in the template.
>>
>
> Which means that I have to expand the template where I null-ify the
> notification period with the values from any of the templates it
> "uses".  That seems like a minor inconvenience, but it's still uglier
> than it ought to be.  When I do so, I still get the warning from "nagios
> -v".  I'll test it to make sure that it's working.
>
>>> In some cases you may not want your host, service, or contact definitions 
>>> to inherit values of string variables from the templates they reference. If 
>>> this is the case, you can specify "null" (without quotes) as the value of 
>>> the variable that you do not want to inherit.
>>>
>> You're mixing sections of the documentation to try to make a connection that 
>> doesn't exist.
>
> If that's so, then at the very least the documentation should be updated
> to note that this won't work.
>
>> Again, specified with a value of 'null' does not equate to unspecified. 
>> Looking at the code, if you specify the value in any way, including a value 
>> of 'null', it breaks the implied inheritance.
>>
>> xodtemplate.h --
>>
>> #define XODTEMPLATE_NULL                  "null"
>>
>> xdata/xodtemplate.c --
>>
>>          else if(!strcmp(variable,"notification_period")){
>>              if(strcmp(value,XODTEMPLATE_NULL)){
>>                  if((temp_service->notification_period=(char 
>> *)strdup(value))==NULL)
>>                      result=ERROR;
>>                      }
>>              temp_service->have_notification_period=TRUE;
>>                  }
>>
>
> That sure looks like a bug to me.  Even the indentation looks weird to
> me, is that the normal style?  I can't imagine why "null" would be
> considered a valid notification period.  If
> have_notification_period=TRUE were in the preceding block, the
> documentation would make more sense, and implied inheritance would be a
> lot easier to use.  Do you think a patch to modify this behavior would
> be accepted?
>
> Thanks for the explanation.  I appreciate your help.
>
>
> --
> 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
> Joi

Re: [Nagios-users] Notification period inheritance problem

2009-12-15 Thread Gordon Messmer
On 12/15/2009 01:38 PM, Marc Powell wrote:
> On Dec 15, 2009, at 2:04 PM, Gordon Messmer wrote:
>
>> Quoting from the documentation:
>>
>> The following table lists the object variables that will be implicitly 
>> inherited from related objects if you don't explicitly specify their value 
>> in your object definition or inherit them from a template
>>
>> ...so I need to not inherit the value from my template.  How do I do that?
>>  
> Don't specify the directive in the template.
>

Which means that I have to expand the template where I null-ify the 
notification period with the values from any of the templates it 
"uses".  That seems like a minor inconvenience, but it's still uglier 
than it ought to be.  When I do so, I still get the warning from "nagios 
-v".  I'll test it to make sure that it's working.

>> In some cases you may not want your host, service, or contact definitions to 
>> inherit values of string variables from the templates they reference. If 
>> this is the case, you can specify "null" (without quotes) as the value of 
>> the variable that you do not want to inherit.
>>  
> You're mixing sections of the documentation to try to make a connection that 
> doesn't exist.

If that's so, then at the very least the documentation should be updated 
to note that this won't work.

> Again, specified with a value of 'null' does not equate to unspecified. 
> Looking at the code, if you specify the value in any way, including a value 
> of 'null', it breaks the implied inheritance.
>
> xodtemplate.h --
>
> #define XODTEMPLATE_NULL  "null"
>
> xdata/xodtemplate.c --
>
>  else if(!strcmp(variable,"notification_period")){
>  if(strcmp(value,XODTEMPLATE_NULL)){
>  if((temp_service->notification_period=(char 
> *)strdup(value))==NULL)
>  result=ERROR;
>  }
>  temp_service->have_notification_period=TRUE;
>  }
>

That sure looks like a bug to me.  Even the indentation looks weird to 
me, is that the normal style?  I can't imagine why "null" would be 
considered a valid notification period.  If 
have_notification_period=TRUE were in the preceding block, the 
documentation would make more sense, and implied inheritance would be a 
lot easier to use.  Do you think a patch to modify this behavior would 
be accepted?

Thanks for the explanation.  I appreciate your help.


--
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 period inheritance problem

2009-12-15 Thread Marc Powell

On Dec 15, 2009, at 2:04 PM, Gordon Messmer wrote:

> On 12/15/2009 10:49 AM, Marc Powell wrote:
>> 
>> No, in order to do that, the notification_period needs to be unspecified. 
>> null != unspecified. Because you're explicitly setting it to null, you break 
>> the implied inheritance.
>> 
>> To take advantage of the implied inheritance, you need to leave out the 
>> directive entirely as indicated above.
>>   
>> 
> 
> Quoting from the documentation:
> 
> The following table lists the object variables that will be implicitly 
> inherited from related objects if you don't explicitly specify their value in 
> your object definition or inherit them from a template
> 
> ...so I need to not inherit the value from my template.  How do I do that?

Don't specify the directive in the template.

> In some cases you may not want your host, service, or contact definitions to 
> inherit values of string variables from the templates they reference. If this 
> is the case, you can specify "null" (without quotes) as the value of the 
> variable that you do not want to inherit.

You're mixing sections of the documentation to try to make a connection that 
doesn't exist. Again, specified with a value of 'null' does not equate to 
unspecified. Looking at the code, if you specify the value in any way, 
including a value of 'null', it breaks the implied inheritance.

xodtemplate.h --

#define XODTEMPLATE_NULL  "null"

xdata/xodtemplate.c -- 

else if(!strcmp(variable,"notification_period")){
if(strcmp(value,XODTEMPLATE_NULL)){
if((temp_service->notification_period=(char 
*)strdup(value))==NULL)
result=ERROR;
}
temp_service->have_notification_period=TRUE;
}

'If the variable is "notification_period" and the value is not the word "null", 
save the value unless the value is blank (error otherwise). If the value is the 
word "null" or something else, set the service have_notification_period flag to 
TRUE."

Further down --

/* services inherit notification period from host if not already 
specified */
if(temp_service->have_notification_period==FALSE && 
temp_host->have_notification_period==TRUE && 
temp_host->notification_period!=NULL){
temp_service->notification_period=(char 
*)strdup(temp_host->notification_period);
temp_service->have_notification_period=TRUE;
}

"If the service 'have_notification_period' flag is not TRUE and the host and 
the host has a notification period, use that for the service."

As you can see, you fail that first condition.

> If I don't specify a value, it'll be inherited.  Right?  How will that help 
> me not specify a value for the service?

If you don't specify the value in the template, there's nothing to inherit from 
the template. If the directive is also not specified in the service{} 
definition, the template engine will look to the value in the host{} definition.

--
Marc




--
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 period inheritance problem

2009-12-15 Thread Gordon Messmer

On 12/15/2009 10:49 AM, Marc Powell wrote:


No, in order to do that, the notification_period needs to be unspecified. null 
!= unspecified. Because you're explicitly setting it to null, you break the 
implied inheritance.

To take advantage of the implied inheritance, you need to leave out the 
directive entirely as indicated above.
   


Quoting from the documentation:

   The following table lists the object variables that will be
   implicitly inherited from related objects if you don't explicitly
   specify their value in your object definition or inherit them from a
   template


...so I need to not inherit the value from my template.  How do I do that?

   In some cases you may not want your host, service, or contact
   definitions to inherit values of string variables from the templates
   they reference. If this is the case, you can specify "*null*"
   (without quotes) as the value of the variable that you do not want
   to inherit.


If I don't specify a value, it'll be inherited.  Right?  How will that 
help me not specify a value for the service?



--
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 period inheritance problem

2009-12-15 Thread Marc Powell

On Dec 15, 2009, at 11:33 AM, Gordon Messmer wrote:

> On 12/15/2009 12:52 AM, Martin Melin wrote:
>> Have you tried leaving out the notification_period line from the
>> service definition? I think, but don't have time to verify, that by
>> saying "notification_period null" you are actually overriding all
>> inherited values for notification_period and setting it to null
>> instead.
>> 
> 
> That's kind of the point.  I want the service to inherit its 
> notification period from the hosts it checks.  In order to do that, its 
> own notification period has to be null.

No, in order to do that, the notification_period needs to be unspecified. null 
!= unspecified. Because you're explicitly setting it to null, you break the 
implied inheritance.

To take advantage of the implied inheritance, you need to leave out the 
directive entirely as indicated above.

--
Marc


--
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 period inheritance problem

2009-12-15 Thread Gordon Messmer
On 12/15/2009 12:52 AM, Martin Melin wrote:
> Have you tried leaving out the notification_period line from the
> service definition? I think, but don't have time to verify, that by
> saying "notification_period null" you are actually overriding all
> inherited values for notification_period and setting it to null
> instead.
>

That's kind of the point.  I want the service to inherit its 
notification period from the hosts it checks.  In order to do that, its 
own notification period has to be 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 period inheritance problem

2009-12-15 Thread Martin Melin
Have you tried leaving out the notification_period line from the
service definition? I think, but don't have time to verify, that by
saying "notification_period null" you are actually overriding all
inherited values for notification_period and setting it to null
instead.

Best regards,
Martin Melin

On Tue, Dec 15, 2009 at 1:56 AM, Gordon Messmer  wrote:
> The documentation on "Implied Inheritance"[1] indicates that a service
> with no notification period will use the notification period of the
> associated host definition.  This doesn't seem to work when a service is
> applied to a hostgroup.
>
> In my configuration files, I define a generic service template of my
> own.  It has no notification period.  I also define a host template for
> each customer which defines the hostgroup and notification period which
> is appropriate for each host.  Finally, I define a service which will
> apply to all hosts within that hostgroup.
>
> When I run "nagios -v", I get warnings that no notification period is given:
> Warning: Service 'root partition' on host 'customer1-samba' has no
> notification time period defined!
>
> I've received some pages from hosts when checks timed out during a
> period when no notications should be sent.
>
> Is this a bug, or am I making some mistake?  Shouldn't the service be
> inheriting the value from the host?  Where would I start looking if it
> were a bug and I wanted to fix it?
>
>
>
> define service{
>         use                             generic-service
>         name                            my-generic-service ; The 'name'
> of this service template
>         notification_period             null            ; Use the
> period from the host
>         register                        0
>         }
>
> define host{
>         name            customer1-linux-server
>         use             my-generic-server
>         hostgroups      my-linux-servers
>         notification_period     my-workhours
>         register        0
>         }
>
> define  service{
>         use                     my-generic-service
>         hostgroup_name          my-linux-servers
>         service_description     root partition
>         check_command           ssh_disk!20%!10%!/
>         }
>
>
> 1: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-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
>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-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


[Nagios-users] Notification period inheritance problem

2009-12-14 Thread Gordon Messmer
The documentation on "Implied Inheritance"[1] indicates that a service 
with no notification period will use the notification period of the 
associated host definition.  This doesn't seem to work when a service is 
applied to a hostgroup.

In my configuration files, I define a generic service template of my 
own.  It has no notification period.  I also define a host template for 
each customer which defines the hostgroup and notification period which 
is appropriate for each host.  Finally, I define a service which will 
apply to all hosts within that hostgroup.

When I run "nagios -v", I get warnings that no notification period is given:
Warning: Service 'root partition' on host 'customer1-samba' has no 
notification time period defined!

I've received some pages from hosts when checks timed out during a 
period when no notications should be sent.

Is this a bug, or am I making some mistake?  Shouldn't the service be 
inheriting the value from the host?  Where would I start looking if it 
were a bug and I wanted to fix it?



define service{
 use generic-service
 namemy-generic-service ; The 'name' 
of this service template
 notification_period null; Use the 
period from the host
 register0
 }

define host{
 namecustomer1-linux-server
 use my-generic-server
 hostgroups  my-linux-servers
 notification_period my-workhours
 register0
 }

define  service{
 use my-generic-service
 hostgroup_name  my-linux-servers
 service_description root partition
 check_command   ssh_disk!20%!10%!/
 }


1: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-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)interval being ignored?

2009-10-21 Thread Morris, Patrick
Kyle O'Donnell wrote:
> I am running nagios 3.0.6...
>
> I don't know if this is happening for all hosts/services, but it seems
> to be happening more and more...
>
> critical service alert goes to hard state - notification 1 sent
> notification_interval == 1440 minutes
> No more notifications, service remains in the same state for 34days
> service drops to warning state - notification 1 sent
> service drops to OK state - notification 1 sent.
>
> here is the service template:
>
> define service {
> namefg-to-st-ni5ri2ma3
> is_volatile 0
> check_period24x7
> max_check_attempts  3
> normal_check_interval   5
> retry_check_interval2
> active_checks_enabled   0
> passive_checks_enabled  1
> parallelize_check   1
> obsess_over_service 0
> check_freshness 0
> notifications_enabled   1
> notification_interval   1440
> notification_period 24x7
> notification_optionsu,c,w,r
> event_handler_enabled   0
> flap_detection_enabled  0
> process_perf_data   0
> retain_status_information   1
> retain_nonstatus_information1
> contact_groups  fg-to-cg-admins
> register0
> }
>
> here is the service def
> define service {
> service_description fg-to-svc-os_sun_df_OS
> use fg-to-st-ni5ri2ma3
> host_name   myserver
> check_command
> fg-to-chk-nrpe-sun_df_OS!5666!10%!5%!/!/var!/tmp
> }
>
> Any ideas?
>   

I *could* be mistaken about this, but I don't think the notification 
interval applies if you're only getting passive check results.

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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)interval being ignored?

2009-10-20 Thread Kyle O'Donnell
we don't use escalations at all.

here is whats currently in the objects.cache (service is now in OK
status though)

define service {
host_name   myserver
service_description fg-to-svc-os_sun_df_OS
check_period24x7
check_command   fg-to-chk-nrpe-sun_df_OS!5666!10%!5%!/!/var!/tmp
contact_groups  fg-to-cg-admins
notification_period 24x7
initial_state   o
check_interval  5.00
retry_interval  2.00
max_check_attempts  3
is_volatile 0
parallelize_check   1
active_checks_enabled   0
passive_checks_enabled  1
obsess_over_service 0
event_handler_enabled   0
low_flap_threshold  0.00
high_flap_threshold 0.00
flap_detection_enabled  0
flap_detection_options  o,w,u,c
freshness_threshold 0
check_freshness 0
notification_optionsu,w,c,r
notifications_enabled   1
notification_interval   1440.00
first_notification_delay0.00
stalking_optionsn
process_perf_data   0
failure_prediction_enabled  1
retain_status_information   1
retain_nonstatus_information1
}

could the nagiosstatus.sav be affecting anything?

On 10/20/09, Marc Powell  wrote:
>
> On Oct 20, 2009, at 2:18 PM, Kyle O'Donnell wrote:
>
>> I am running nagios 3.0.6...
>>
>> I don't know if this is happening for all hosts/services, but it seems
>> to be happening more and more...
>>
>> critical service alert goes to hard state - notification 1 sent
>> notification_interval == 1440 minutes
>> No more notifications, service remains in the same state for 34days
>> service drops to warning state - notification 1 sent
>> service drops to OK state - notification 1 sent.
>>
>> here is the service template:
>>
>> define service {
>>namefg-to-st-ni5ri2ma3
>>is_volatile 0
>>check_period24x7
>>max_check_attempts  3
>>normal_check_interval   5
>>retry_check_interval2
>>active_checks_enabled   0
>>passive_checks_enabled  1
>>parallelize_check   1
>>obsess_over_service 0
>>check_freshness 0
>>notifications_enabled   1
>>notification_interval   1440
>
> Do you see this notification interval in objects.cache? Do you maybe
> have a service escalation that's overriding it?
>
> --
> Marc
>
>
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> ___
> 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
>

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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)interval being ignored?

2009-10-20 Thread Marc Powell

On Oct 20, 2009, at 2:18 PM, Kyle O'Donnell wrote:

> I am running nagios 3.0.6...
>
> I don't know if this is happening for all hosts/services, but it seems
> to be happening more and more...
>
> critical service alert goes to hard state - notification 1 sent
> notification_interval == 1440 minutes
> No more notifications, service remains in the same state for 34days
> service drops to warning state - notification 1 sent
> service drops to OK state - notification 1 sent.
>
> here is the service template:
>
> define service {
>namefg-to-st-ni5ri2ma3
>is_volatile 0
>check_period24x7
>max_check_attempts  3
>normal_check_interval   5
>retry_check_interval2
>active_checks_enabled   0
>passive_checks_enabled  1
>parallelize_check   1
>obsess_over_service 0
>check_freshness 0
>notifications_enabled   1
>notification_interval   1440

Do you see this notification interval in objects.cache? Do you maybe  
have a service escalation that's overriding it?

--
Marc


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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


[Nagios-users] notification)interval being ignored?

2009-10-20 Thread Kyle O'Donnell
I am running nagios 3.0.6...

I don't know if this is happening for all hosts/services, but it seems
to be happening more and more...

critical service alert goes to hard state - notification 1 sent
notification_interval == 1440 minutes
No more notifications, service remains in the same state for 34days
service drops to warning state - notification 1 sent
service drops to OK state - notification 1 sent.

here is the service template:

define service {
namefg-to-st-ni5ri2ma3
is_volatile 0
check_period24x7
max_check_attempts  3
normal_check_interval   5
retry_check_interval2
active_checks_enabled   0
passive_checks_enabled  1
parallelize_check   1
obsess_over_service 0
check_freshness 0
notifications_enabled   1
notification_interval   1440
notification_period 24x7
notification_optionsu,c,w,r
event_handler_enabled   0
flap_detection_enabled  0
process_perf_data   0
retain_status_information   1
retain_nonstatus_information1
contact_groups  fg-to-cg-admins
register0
}

here is the service def
define service {
service_description fg-to-svc-os_sun_df_OS
use fg-to-st-ni5ri2ma3
host_name   myserver
check_command
fg-to-chk-nrpe-sun_df_OS!5666!10%!5%!/!/var!/tmp
}

Any ideas?

Thanks,
Kyle

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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 period 0

2009-10-01 Thread Mathieu Gagné
On 10/1/09 3:12 PM, Kurktchiev, Boris wrote:
> Ok so I set all my notification periods to 0 (in both services and hosts)
> and now I am getting a whole bunch of errors:
> Error: Notification period '0' specified for service 'ADVAPPS SSH' on host
> 'advapps.blah' is not defined anywhere!
>
> As far as I understood the documentation setting the period to 0 is all that
> was required... Do I have to do define it anywhere?

notification_interval != notification_period

Try "notification_interval 0" instead of "notification_period 0".

> notification_interval:This directive is used to define the number of 
> "time units" to wait before re-notifying a contact that this service is still 
> in a non-OK state. Unless you've changed the interval_length directive from 
> the default value of 60, this number will mean minutes. If you set this value 
> to 0, Nagios will not re-notify contacts about problems for this service - 
> only one problem notification will be sent out.

Ref: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service

--
Mathieu

--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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 period 0

2009-10-01 Thread Kurktchiev, Boris
Aaaand I am an idiot... Disregard this.


On 10/1/09 2:12 PM, "Kurktchiev, Boris"  wrote:

> Ok so I set all my notification periods to 0 (in both services and hosts)
> and now I am getting a whole bunch of errors:
> Error: Notification period '0' specified for service 'ADVAPPS SSH' on host
> 'advapps.blah' is not defined anywhere!
> 
> As far as I understood the documentation setting the period to 0 is all that
> was required... Do I have to do define it anywhere?
> 
> 
> --
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> ___
> 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


--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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


[Nagios-users] Notification period 0

2009-10-01 Thread Kurktchiev, Boris
Ok so I set all my notification periods to 0 (in both services and hosts)
and now I am getting a whole bunch of errors:
Error: Notification period '0' specified for service 'ADVAPPS SSH' on host
'advapps.blah' is not defined anywhere!

As far as I understood the documentation setting the period to 0 is all that
was required... Do I have to do define it anywhere?


--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
___
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 oddity

2009-07-23 Thread Kevin Davison
Possible. I stopped Nagios and ps ax revealed no more running after a few
seconds. Once I start it up again I see multiple Nagios.cfg running for
numerous active checks that are going on.

I see several Notifications in the Nagios.log file. The two that I received
at midnight as well as the few Critical notifications that I received
throughout the day.  


-Original Message-
From: Marc Powell [mailto:m...@ena.com] 
Sent: Thursday, July 23, 2009 4:28 PM
To: Nagios User List
Subject: Re: [Nagios-users] Notification oddity


On Jul 23, 2009, at 3:11 PM, Kevin Davison wrote:

> Clearly I'm missing something. I would appreciate any advice.

Multiple nagios daemons perhaps? Definitely some oddness. Do you see  
the notifications in nagios.log?

--
Marc



--
___
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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.392 / Virus Database: 270.13.23/2254 - Release Date: 07/23/09
06:02:00


--
___
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


  1   2   3   4   >