From: Dave S. <D.T...@li...> - 2008-06-17 08:43:34
|
2008/6/16 Mike Ayers <mik...@tv...>: > 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 |