Nagios® 3.0.6 notifications not being sent since Jan 2013.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
clkhanger
Posts: 1
Joined: Mon Jul 22, 2013 6:11 am

Nagios® 3.0.6 notifications not being sent since Jan 2013.

Post by clkhanger »

Nofications have stopped being emailed since jan 2013. This has been working without any issues for years.
Checked the Contact Name and email address and it shows up under the Contacts. The Notify is on and the period is 24/7.

When i run Check Nagios configs i get the following error:
Error: Template 'generic-contact' specified in host definition could not be not found (config file '/usr/local/nagios/etc/objects/hosts/contacts.cfg', starting on line 1)

***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

How do i put the generic-contact template back?
thanks,
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios® 3.0.6 notifications not being sent since Jan 201

Post by abrist »

Code: Select all

define contact{
        name                            generic-contact         ; The name of this contact template
        service_notification_period     24x7                    ; service notifications can be sent anytime
        host_notification_period        24x7                    ; host notifications can be sent anytime
        service_notification_options    w,u,c,r,f,s             ; send notifications for all service states, flapping events, and scheduled downtime events
        host_notification_options       d,u,r,f,s               ; send notifications for all host states, flapping events, and scheduled downtime events
        service_notification_commands   notify-service-by-email ; send service notifications via email
        host_notification_commands      notify-host-by-email    ; send host notifications via email
        register                        0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
        }
Additionally, could you post a copy of:

Code: Select all

/usr/local/nagios/etc/objects/hosts/contacts.cfg
/usr/local/nagios/etc/objects/hosts/templates.cfg
Are those paths above right? Most installations put the contacts and templates in the /usr/local/nagios/etc/objects folder, not the hosts or services folder.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked