FW: New to Nagios - Need help with nagios.cfg

Eric Chatham echatham at broadvox.net
Tue Feb 17 22:44:55 CET 2009


Is the cfg_dir location recursive?

Eric Chatham
Broadvox MIS Department
(216) 373-4683
echatham at broadvox.net


-----Original Message-----
From: Marc Powell [mailto:marc at ena.com]
Sent: Tuesday, February 17, 2009 15:31
To: Nagios Users
Subject: Re: [Nagios-users] New to Nagios - Need help with nagios.cfg


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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.

------------------------------------------------------------------------------
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