Re: Support for include files in snmpd.conf?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/6/16 Mike Ayers <[email protected]>:
>        It's probably never been checked in because the low budget alternative:
>
> cp /path/to/snmpd.conf /path/tp/backups/snmpd.conf.NNN
> snmpd_management_script stop
> cat conf_file1 conf_file2 conf_file3 >/path/to/snmpd.conf
> snmpd_management_script start
>
>        ...where NNN is an incrementing backup number, is so easy and effective, and immediately available.

That would certainly work, but there a circumstances where it's ungainly,
and an include mechanism would be much cleaner.
For example, if you've got dozens of systems where the configuration
is mostly the same (e.g. access control settings, trap destinations),
but with occasional differences (e.g. disks to be monitored)

Having a config file of the form:

    #
    #  snmpd.conf for the MySQL server
    #

    #  Pull in common settings
    include /usr/local/etc/snmp/snmpd.common

    #  Monitor Database disk for filling up
    disk /var 20%

would make maintenance much simpler,
rather than having to cobble together two or three sub-files
whenever the common settings changed.

Another possible use would be for holding AgentX config
settings, so that the same file could be used by both
master and subagents.   Again, it would be possible to
mimic this using 'cat',  but a proper include mechanism
would be useful.

It just needs a volunteer to write it :-)

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.