Error: Could not add object property in file '/usr/local/etc/nagios/objects/commands.cfg' on line 29.

Marc Powell marc at ena.com
Thu Oct 9 17:51:32 CEST 2008


On Oct 9, 2008, at 10:31 AM, Phill Hocking wrote:

> Greetings, my name is Phill and I am having difficulties with a fresh
> install. Here is the error I get:

Welcome Phill.

> Warning: Duplicate definition found for command 'notify-host-by-email'
> (config file '/usr/local/etc/nagios/objects/commands.cfg', starting on
> line 28)
> Error: Could not add object property in file
> '/usr/local/etc/nagios/objects/commands.cfg' on line 29.

Duplicate command_name's aren't permitted. They must be unique.

> stuff. The search wrapsin vi for that string notify-host-by-email.
> This is why I am
> scratching my head.

It's already defined in another cfg_file that you specify in  
nagios.cfg then. Use grep to find which on, choose the one you want to  
use and remove or comment out the other definition.

--
Marc


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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