[PATCH] Config option for updated time comment in graphs
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.
participants (1)
-
john.horne@plymouth.ac.uk