New to Nagios - Need help with nagios.cfg
Marc Powell
marc at ena.com
Tue Feb 17 21:31:12 CET 2009
On Feb 17, 2009, at 2:06 PM, Eric Chatham wrote:
> [root@ ~ main]# grep notify-host-by-email *
> commands.cfg:# 'notify-host-by-email' command definition
> commands.cfg: command_name notify-host-by-email
> templates.cfg: host_notification_commands notify-host-by-
> email ; send host notifications via email
>
> [root@ ~ main]# grep notify-service-by-email *
> commands.cfg:# 'notify-service-by-email' command definition
> commands.cfg: command_name notify-service-by-email
> templates.cfg: service_notification_commands notify-service-
> by-email ; send service notifications via email
Look in nagios.cfg for cfg_dir and cfg_file directives. These files in
main/ apparently do not represent all the config files you've told
nagios to use. You do have the command defined twice somewhere.
>
> Warning: Duplicate definition found for command 'notify-host-by-
> email' (config file '/opt/nagios/etc/main/commands.cfg', starting on
> line 28)
> Error: Could not add object property in file '/opt/nagios/etc/main/
> commands.cfg' on line 29.
--
Marc
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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