contacts.cfg file errors when running pre-flig ht

Tedman Eng teng at dataway.com
Wed Dec 14 01:57:18 CET 2005


Bryant, 

A few years ago, I bought a can of refigerated of chocolate chip cookie
dough from the store.  I  spooned the dough onto a cookie sheet and set it
into the oven.  Twenty minutes later I had warm moist melt-in-your-mouth
chocolate chip cookies!  There's nothing better than fresh baked cookies!
So one day, some months later, I had friends over and decided to swing by
the store and pick up another batch of cookie dough.  I threw them in the
oven and set the timer, 20 minutes.  When I opened the oven though, I found
that I had burnt little crisps that barely resembled cookies.  It turns out,
they'd changed the recipe (and the cooking time too).

Moral of the story: Make sure you're using the right directions.

You are running Nagios 1.2
The docs showing "contactgroups" as a valid directive are from 2.x
documentation.




-----Original Message-----
From: Bryant Taylor [mailto:btaylor at modulusvideo.com]
Sent: Tuesday, December 13, 2005 11:25 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] contacts.cfg file errors when running pre-flight


Hope someone can help.
 
I have configured all of my .cfg files correctly from the manual, but for
some reason, when I run nagios -v nagios.cfg I get the following on this
file. Not sure why, have I haven't found anything online or on the nagios
website that refers to this.
 
Any ideas and or resolutions would be great
 
Thank you,
 
Bryant
 
Nagios 1.2
Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org)
Last Modified: 02-02-2004
License: GPL
 
Reading configuration data...
 
Error: Could not add object property in file '/etc/nagios/contacts.cfg' on
line 16.
 
 
***> 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 on the main and host config files, as well as
the
     'Whats New' section to find out what has changed.
 
 
 
Here is my current contacts.cfg file.
 
 
############################################################################
###
 
define  contact {
        contact_name                    Bryant
        alias                           Bryant Taylor
        contactgroups                   admins
        host_notification_period        24x7
        service_notification_period     24x7
        host_notification_options       d,u,r
        service_notification_options    w,u,c,r
        host_notification_commands      host-notify-by-email
        service_notification_commands   notify-by-email
        email                           btaylor at modulusvideo.local
        }
 
############################################################################
###
#
# Contact configuration file
#
# END OF FILE
#
 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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