Hand editing config files
list Jeremy Laidman
Fri, 15 Jun 2012 16:52:36 +1000
Message-Id: <CAAnki7AesH+bfEfBDOyPJJVstzA=user-33b2b72a9822@xymon.invalid>
Both Postfix and AMaViS support per-table specification of the
storage/retrieval mechanism. I would like to be able to select which
elements (none, some or all) are in a database. For example:
xymonserver.cfg:
HOSTSCFG="$XYMONHOME/etc/hosts.cfg"
ANALYSISCFG="bdb:/var/lib/analysis.cfg"
GRAPHSCFG="ldap:user at server:3306:graphtable"
Of course this probably makes little sense for analysis.cfg and graphs.cfg.
But just to give the idea of a per-file option where it might make sense.
Perhaps this would be useful for some:
HOSTSCFG="$XYMONHOME/etc/hosts.cfg sqlite:/var/lib/hosts.sqlite"
This would get hosts (if any) from hosts.cfg, and then go looking in the
database if nothing found.
For the record, I prefer text files.
Cheers
Jeremy