Nagios 3.99.95 contact_groups

Supporto Tecnico - Crazy Network support at crazynetwork.it
Tue Nov 20 23:33:51 CET 2012


Hi Robin

sorry, dont know why my signature has been cutted out :) My name is Andrea.

This is a sample services definition.

define service{
         name                            cn-ftp-service
         active_checks_enabled           1
         passive_checks_enabled          1
         parallelize_check               1
         obsess_over_service             1
         check_freshness                 0
         notifications_enabled           1
         event_handler_enabled           1
         flap_detection_enabled          1
         process_perf_data               1
         retain_status_information       1
         retain_nonstatus_information    1
         is_volatile                     0
         servicegroups                   ftp-server
         service_description             Server FTP
         check_command                   check_ftp
         icon_image ftp.png
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           5
         retry_check_interval            2
         contact_groups                  crazynetwork.it
         notification_options            c,r
         notification_interval           60
         notification_period             24x7
         register                        0
}

Courios is, if here i replace contact_groups with contacts and put 
andrea.iannucci instead of crazynetwork.it it does work.. but just for 
the single person of course.

Thanks

Regards

Il 20/11/2012 17:23, Robin Sonefors ha scritto:
> Hi "Crazy Network",
>
> Using bleeding edge code, I've tried copying your contacts.cfg (with 
> my own email instead), put "crazynetwork.it" as the contact_group for 
> a service, and I do receive notifications for it. So there must be 
> something else at play here that affects you.
>
> What does your services/hosts look like?
>
> On 2012-11-20 15:01, Supporto Tecnico - Crazy Network wrote:
>>    Hi,
>>
>> i did update Nagios to this alpha release for test purpose using working
>> configurations (on Nagios 3.4.1).
>>
>> The only big trouble im having is that i dont receive any notification.
>>
>> Here contacts.cfg
>>
>> define contact{
>>           name                            cn-contacts
>>           service_notification_period     24x7
>>           host_notification_period        24x7
>>           service_notification_options    c,r
>>           host_notification_options       d,u,r
>>           service_notification_commands   notify-service-by-email
>>           host_notification_commands      notify-host-by-email
>>           register                        0
>> }
>>
>> define contact{
>>           contact_name                    andrea.iannucci
>>           use                             cn-contacts
>>           alias                           Andrea Iannucci
>>           email                           support at crazynetwork.it
>>           contact_groups                   crazynetwork.it
>>           service_notification_commands
>> notify-service-by-email,notify-service-by-sms
>>           host_notification_commands
>> notify-host-by-email,notify-host-by-sms
>>           pager                           *************
>> }
>>
>> define contactgroup{
>>           contactgroup_name               crazynetwork.it
>>           alias                           CrazyNetwork.it Staff
>> }
>>
>>
>> I did try to use contactgroups and contact_groups in contact definition
>> I did try to add members andrea.iannucci in contactgroup definition
>>
>> The error on debug_level=32 i can see is that for group crazynetwork.it
>> he cant fine any member (in any case).
>>
>> Setting contacts instead of contact_groups to services definition make
>> notification work.
>>
>> Here debug output:
>>
>> [1353420007.497082] [032.0] [pid=14604] ** Service Notification Attempt
>> ** Host: 'Test.CrazyNetwork.it', Service: 'MySQL', Type: 0, Options: 0,
>> Current State: 0, Last Notification: Thu Jan  1 01:00:00 1970
>> [1353420007.497154] [032.0] [pid=14604] Notification viability test 
>> passed.
>> [1353420007.497181] [032.1] [pid=14604] Current notification number: 2
>> (incremented)
>> [1353420007.497195] [032.2] [pid=14604] Creating list of contacts to be
>> notified.
>> [1353420007.497206] [032.1] [pid=14604] Service notification will NOT be
>> escalated.
>> [1353420007.497217] [032.1] [pid=14604] Adding normal contacts for
>> service to notification list.
>> [1353420007.497233] [032.2] [pid=14604] Adding members of contact group
>> 'crazynetwork.it' for service to notification list.
>> [1353420007.497245] [032.0] [pid=14604] No contacts were found for
>> notification purposes.  No notification was sent out.
>>
>>
>> Hope someone can help me fix this cause on older version was working at
>> actually it look like a bug to me.
>>
>> Thanks
>>
>
>


-- 

Andrea Iannucci
-------------------------------

-------------------------------
Crazy Network di Iannucci Andrea
Viale G.B. Lulli, 24
00050 Cerveteri - RM
(w) www.crazynetwork.it
(e) andrea.iannucci at crazynetwork.it
(t) +39 06 62279876
(f) +39 06 62298767
(m) +39 338 8552885
-------------------------------------------------------------------------------
Please consider our enviromental responsability before printing this 
E-Mail. Thank you.
-------------------------------------------------------------------------------
Questo messaggio di posta elettronica contiene informazioni di carattere 
confidenziale rivolte esclusivamente al destinatario sopra indicato.
E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte 
di ogni altra persona. Nel caso aveste ricevuto questo messaggio di 
posta elettronica per errore, siete pregati di segnalarlo immediatamente 
al mittente e distruggere quanto ricevuto (compresi i file allegati) 
senza farne copia.
Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio 
costituisce violazione dell'obbligo di non prendere cognizione della 
corrispondenza tra altri soggetti, salvo più grave illecito, ed espone 
il responsabile alle relative conseguenze.
--------------------------------------------------------------------------------
This e-mail is confidential and may also contain privileged information. 
If you are not the intended recipient you are not authorised to read, 
print, save, process or disclose this message. If you have received this 
message by mistake, please inform the sender immediately and delete this 
e-mail, its attachments and any copies.
Any use, distribution, reproduction or disclosure by any person other 
than the intended recipient is strictly prohibited and the person 
responsible may incur penalties.
-------------------------------------------------------------------------------- 



------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
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