15 Jun
2012
15 Jun
'12
6:52 a.m.
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