FW: New to Nagios - Need help with nagios.cfg
Satish Patel
satish at linuxbug.org
Wed Feb 18 02:13:52 CET 2009
Yes not need to specifiy every configuration file path in nagios.cfg
only need to specify single directoy...
Regards,
Satish Patel
Quoting Eric Chatham <echatham at broadvox.net>:
> 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
>
------------------------------------------------------------------------------
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