[Xymon] [PATCH] Config option for updated time comment in graphs
John Horne
john.horne at plymouth.ac.uk
Fri Sep 13 18:30:23 CEST 2019
Hello,
We are using the Terabithia 4.3.30 RPMs.
It is hard-coded that Xymon will add a comment to graphs to indicate when the
graph was last updated. It is seen at the bottom of the graph legend as (for
example): Updated: 13-Sep-2019 17:14:00
This is something we do not want. (The graph itself will soon show if it is not
being updated, and we have other monitoring in place to indicate if any
services/processes have stopped.)
Attached is a patch that adds a 'xymonserver.cfg' configuration file
environment variable to indicate if the above comment should be added to graphs
or not. By default it is set to true. It seems better, for us at least, to use
a config option rather than having the graph comment hard-coded.
The patch itself is just a couple of lines in showgraph.c, and a default value
set in the environ.c file. The other (3) patches are again just one or two
lines each updating the documentation files for the new variable.
The patch has been tested by us, and works fine. Because of the location of the
new call to xgetenv within the showgraph.c file, it means that any change to
the config file for this variable takes immediate effect. No service restart
required.
Feel free to modify the patches as you wish, or to ignore them if it is not
felt to be useful at all.
John.
--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>
This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: environ.c-patch
Type: text/x-patch
Size: 287 bytes
Desc: environ.c-patch
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190913/dc9253d2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: showgraph.c-patch
Type: text/x-patch
Size: 795 bytes
Desc: showgraph.c-patch
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190913/dc9253d2/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymonserver.cfg.5.html-patch
Type: text/x-patch
Size: 572 bytes
Desc: xymonserver.cfg.5.html-patch
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190913/dc9253d2/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymonserver.cfg.5-patch
Type: text/x-patch
Size: 512 bytes
Desc: xymonserver.cfg.5-patch
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190913/dc9253d2/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymonserver.cfg.DIST-patch
Type: text/x-patch
Size: 617 bytes
Desc: xymonserver.cfg.DIST-patch
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190913/dc9253d2/attachment-0004.bin>
More information about the Xymon
mailing list