problem setting up contact

Marc Powell marc at ena.com
Tue Aug 9 21:02:58 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Andy Kriger
> Sent: Tuesday, August 09, 2005 1:47 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] problem setting up contact
> 
> I'm trying to get Nagios 2.0b4 running on Apache 1.3.33 under Solaris
> 9.x  but nagios -v nagios.cfg is failing on my contact definition.
> 
> From nagios.log...
> [1123612753] Error: Contact name, alias, or email address and pager
> number are NULL
> [1123612753] Error: Could not register contact (config file
> '/usr/local/nagios/etc/minimal.cfg', starting on line 60)
> 
> This is my single contact...
> define contact{
>         contact_name                    nagios
>         alias                           Nagios Admin
>         host_notification_period        24x7
>         service_notification_period     24x7
>         host_notification_options       n
>         service_notification_options    n
>         }
> 
> Since I just want to get things running for now, I have notifications
> turned off and no email (which is not a required field according to
> the docs). However, this fails. When I add an email entry, I get a

While not required in the strictest sense that every contact must have
an email definition and a pager definition, I believe that either email
_or_ pager must be defined (otherwise the contact isn't really a contact
;) ).

> segfault in add_contact (so the verification still fails). We don't
> have sendmail or any mailserver running on the box (haven't needed one
> up to now) so that could be causing the  segfault (though I don't know
> if/why nagios would check the email).

It only parses the config and doesn't try to verify that your mail
program actually works. You should probably post the contact definition
after you add the email definition and the output leading up to the
segfault and/or additional information you might have about it (truss
output at the end, etc). Sounds like a potential bug.

> 
> I'm new to Nagios and just want to get this running. Can anyone point
> me in the right direction?

For your testing, I'd recommend defining an email address and just
setting your *_notification_periods to 'none' which should be a
pre-defined timeperiod.

--
Marc


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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