[smokeping-users] Any way to 'include' another file in the config?
Sorrell, Al
Al_Sorrell at troweprice.com
Thu Mar 15 15:29:38 CET 2012
Toby,
First off, thanks for continuing to evolve this great software! Let me explain what I'm looking for...
I have several systems which are all polling the same set of devices; one is our primary system, one is at our DR site, and one is being setup now to eventually replace our current primary. The config file for each is *almost* identical.
Specifically the *** General ** section needs to be different in order to specify the correct server in the cgiurl= section; potentially, others might have different paths for the various directories, though that's not a problem for me.
What I'd like to see would be something like an
Include /path-to-file
That way, I could have my $SMOKEPING/etc/config with statements like:
========================
*** General ***
owner=...
contact=...
imgurl=...
cgiurl=http://myserver/...
Include $SMOKEPING/etc/common_config
========================
Where $SMOKEPING/etc/common_config would have everything which isn't system-specific.
This would certainly make it much easier to keep multiple systems in sync without the need to use 'sed' prior to copying configs between systems.
Thanks for your consideration.
Al
_________________________
Almon (Al) Sorrell
Corporate Network Services | Network Engineering Consultant
T. Rowe Price
4515 Painters Mill Road, TE9008
Owings Mills, MD 21117
Phone: 410-345-3042 (508-3042) Fax:410-345-3135
Email: Al_Sorrell at troweprice.com
T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its associates do not provide legal or tax advice. Any tax-related discussion contained in this e-mail, including any attachments, is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding any tax penalties or (ii) promoting, marketing, or recommending to any other party any transaction or matter addressed herein. Please consult your independent legal counsel and/or professional tax advisor regarding any legal or tax issues raised in this e-mail.
The contents of this e-mail and any attachments are intended solely for the use of the named addressee(s) and may contain confidential and/or privileged information. Any unauthorized use, copying, disclosure, or distribution of the contents of this e-mail is strictly prohibited by the sender and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail.
More information about the smokeping-users
mailing list