Nagios 3.99.95 contact_groups

Supporto Tecnico - Crazy Network support at crazynetwork.it
Tue Dec 4 14:29:45 CET 2012


  Here from object.cache

define servicegroup {
         servicegroup_name       ftp-server
         alias   FTP Server
         }

define service {
         host_name       Server.SysAdminDiary.it
         service_description     Server FTP
         check_period    24x7
         check_command   check_ftp
         contact_groups  sysadmindiary.it
         notification_period     24x7
         initial_state   o
         hourly_value    1
         check_interval  5.000000
         retry_interval  2.000000
         max_check_attempts      3
         is_volatile     0
         parallelize_check       1
         active_checks_enabled   1
         passive_checks_enabled  1
         obsess  1
         event_handler_enabled   1
         low_flap_threshold      0.000000
         high_flap_threshold     0.000000
         flap_detection_enabled  1
         flap_detection_options  a
         freshness_threshold     0
         check_freshness 0
         notification_options    r,c
         notifications_enabled   1
         notification_interval   60.000000
         first_notification_delay        0.000000
         stalking_options        n
         process_perf_data       1
         icon_image      ftp.png
         retain_status_information       1
         retain_nonstatus_information    1
         }


define contact {
         contact_name    andrea.iannucci
         alias   Andrea Iannucci
         service_notification_period     24x7
         host_notification_period        24x7
         service_notification_options    r,c

         host_notification_options       r,d,u
         service_notification_commands   
notify-service-by-email,notify-service-by-sms
         host_notification_commands      
notify-host-by-email,notify-host-by-sms
         email   support at crazynetwork.it
         pager   00393388552885
         minimum_value   1
         host_notifications_enabled      1
         service_notifications_enabled   1
         can_submit_commands     1
         retain_status_information       1
         retain_nonstatus_information    1
         }



Apparently in contact definition the contact_groups disappear and it 
come with an empty line.

Im preparing the box to send privatly login data so you can check by 
yourself.

Thanks

Il 04/12/2012 11:47, Andreas Ericsson ha scritto:
> On 12/03/2012 04:41 PM, Supporto Tecnico - Crazy Network wrote:
>>     Hi,
>>
>> i did re-install nagios again (from git repo) using: git clone
>> git://github.com/ageric/nagios.git
>>
>> But still got same error from debug level 32:
>>
>> [1354549057.568949] [032.0] [pid=4151] ** Service Notification Attempt
>> ** Host: 'Server.SysAdminDiary.it', Service: 'Server FTP', Type: 0,
>> Options: 0, Current State: 2, Last Notification: Thu Jan  1 01:00:00 1970
>> [1354549057.569017] [032.0] [pid=4151] Notification viability test passed.
>> [1354549057.569029] [032.1] [pid=4151] Current notification number: 1
>> (incremented)
>> [1354549057.569040] [032.1] [pid=4151] Service notification will NOT be
>> escalated.
>> [1354549057.569049] [032.1] [pid=4151] Adding normal contacts for
>> service to notification list.
>> [1354549057.569056] [032.0] [pid=4151] No contacts were found for
>> notification purposes.  No notification was sent out.
>>
>> Here contacts file:
>>
>> 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                  sysadmindiary.it
>>            service_notification_commands
>> notify-service-by-email,notify-service-by-sms
>>            host_notification_commands
>> notify-host-by-email,notify-host-by-sms
>>            pager                           00391234567890
>> }
>>
>> define contactgroup{
>>            contactgroup_name               sysadmindiary.it
>>            alias                           SysAdminDiary.it Staff
>> }
>>
>> Here service 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                  sysadmindiary.it
>>            notification_options            c,r
>>            notification_interval           60
>>            notification_period             24x7
>>            register                        0
>> }
>>
>> define servicegroup {
>>        servicegroup_name               ftp-server
>>        alias                           FTP Server
>> }
>>
>> Here service call in server host file.
>>
>> define service{
>>        use                         cn-ftp-service
>>        host_name                   Server.SysAdminDiary.it
>> }
>>
>> Any suggestions/hint?
>>
> So contactgroup is inherited from template. That might be a clue. Can
> you verify if the contactgroup is present on the proper services in
> your objects.cache file?
>
> Also, if you're not keeping secrets in the configuration, it would
> help if I could get my hands on it so I can see the problem for myself.
> If template inheritance is broken for contacts and/or contactgroups,
> that's a pretty serious issue.
>


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



------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
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