Fwd: Each switch in a file .cfg

Renato Krause renatokrause at gmail.com
Thu Apr 2 20:36:20 CEST 2009


Sorry, i forgot to sendo for the list.
Renato Krause




---------- Forwarded message ----------
From: Renato Krause <renatokrause at gmail.com>
Date: Thu, Apr 2, 2009 at 15:35
Subject: Re: [Nagios-users] Each switch in a file .cfg
To: Marc Powell <marc at ena.com>


Marc, first thank you for help me. I´m creating a script in python to
generate .cfg to my switchs now. Son i will implement you solution. I
only like know how reference a directory with all my switchs files.
Thank for all one more time,
Renato Krause



On Thu, Apr 2, 2009 at 15:13, Marc Powell <marc at ena.com> wrote:
>
> On Apr 2, 2009, at 1:02 PM, Renato Krause wrote:
>
>> I started one job with a NAGIOS at a big network. My first ideia was
>> monitoring all switchs on this network.
>> I put all switch configuration in the file:
>> /usr/local/nagios/etc/objects/switch.cfg
>> I hope that I can create configuration files to each switch, one file
>> per switch, and make a reference  to switchs on this file:
>> /usr/local/nagios/etc/nagios.cfg.
>
> Yes, you can, using either cfg_file directives (one per switch cfg
> file), or better yet, one cfg_dir directive pointing to the directory
> with all the switch cfg files.
>
>> In this file i  uncomment a line
>> /usr/local/nagios/etc/objects/switch.cfg to make use actual
>> configuration. I tried made a reference to other files, that i had
>> created but the Nagios don´t restarted with other references in
>> /usr/local/nagios/etc/nagios.cfg.
>
> If you're reporting a problem here, it's necessary to include the
> actual error nagios is reporting. You can use '/path/to/nagios -v /
> path/to/nagios.cfg' for more verbose config checking...
>
> --
> Marc
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
>

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