nagios 3.0.5 email notifications fail {Spam?}
alex alex
fdm.alex at gmail.com
Tue Jan 13 10:10:49 CET 2009
Ok, my mistake. I can clearly see that I put all options in notification
template, including "n " from "none" so none of the notifications were sent.
Stupid me!
Thanks all,
Alex
On Tue, Jan 13, 2009 at 10:47 AM, alex alex <fdm.alex at gmail.com> wrote:
> Hi again.
> I have bad news(for me,at least). I remove the flap announcements and
> notifications are not working. Here's the debug log for nagios:
>
> [1231835680.728809] [032.2] [pid=14526] ** Checking host notification
> viability for contact 'user'...
> [1231835680.728838] [032.2] [pid=14526] We shouldn't notify this contact
> about DOWN states.
> [1231835680.728858] [032.0] [pid=14526] No contacts were notified. Next
> possible notification time: Thu Jan 1 02:00:00 1970
> [1231835680.728873] [032.0] [pid=14526] 0 contacts were notified.
>
>
> So it seems that the contacts didn't inherited the template??? were found.
> Again, my configs read:
>
> # contactgroups admins
> define contactgroup {
> contactgroup_name admins
> alias admins
> members nagios,user
> }
> #contact template
> define contact {
> name generic_contact
> host_notification_period 24din24_7din7
> service_notification_period 24din24_7din7
> host_notification_options d,u,r,n,f
> service_notification_options u,c,w,r,n,f
> host_notification_commands notify-host-by-email
> service_notification_commands notify-service-by-email
> register 0
> }
> define contact {
> contact_name user
> use generic_contact
> alias utilizator_generic
> email smo at localhost
> }
>
> define host {
> host_name host1
> alias host1
> address 192.168.1.1
> use generic_host_tpl
> }
> define host {
> name generic_host_tpl
> process_perf_data 1
> retain_status_information 1
> retain_nonstatus_information 1
> active_checks_enabled 1
> passive_checks_enabled 1
> check_period 24din24_7din7
> obsess_over_host 0
> check_freshness 1
> freshness_threshold 0
> check_command is_icmp_alive
> max_check_attempts 1
> event_handler_enabled 0
> notifications_enabled 1
> notification_interval 5
> notification_period 24din24_7din7
> notification_options d,u,r,f
> stalking_options d,o,u
> register 0
> action_url /nagios/pnp/index.php?host=$HOSTNAME$
>
> }
>
>
>
>
>
>
>
>
> On Mon, Jan 12, 2009 at 3:49 PM, Marc Powell <marc at ena.com> wrote:
>
>>
>> On Jan 12, 2009, at 5:44 AM, alex alex wrote:
>> > Notification: FLAPPINGSTOP
>> > Host: host1
>> > State: UP
>> > Or for a service
>>
>> > Notification Type: FLAPPINGSTOP
>> >
>> > Service: is_alive
>> > Host: host1
>> > Is it the right behaviour (to put flapping instead up/down if the
>> > flapping is enabled) ?
>>
>> Yes, if the host or service were in a flapping state, which these
>> were. flapping is different than a normal up/down and that
>> notification type is provided should you want or need to make that
>> distinction. If you'd rather just receive up/down notifications,
>> disable notifications for flapping.
>>
>> > Anyhow, some notifications are sent and that's the main good news. I
>> > think from now only some small changes must be done in my configs to
>> > tune the uinstallation.
>>
>> Good =)
>>
>> --
>> Marc
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It is the best place to buy or sell services for
>> just about anything Open Source.
>> http://p.sf.net/sfu/Xq1LFB
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090113/6ec0b398/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list