[Xymon] Patch - no-cpu-listing - cpu column
John Horne
john.horne at plymouth.ac.uk
Mon Apr 29 18:04:25 CEST 2019
Hi,
Using the Terabithia 4.3.28 RPMS, the 'cpu' column typically shows the output
from the 'top' command received from the client. While we have no problem with
users knowing if a server has a problem, we do not necessarily want them seeing
the processes running on the server. (A bit of security by obscurity I
suppose.)
The attached patches implement a 'xymond_client' option named '--no-cpu-
listing'. This is basically similar to the current '--no-ps-listing' and '--no-
port-listing' options (both of which we already use). The default for the new
option is to be disabled - that is, as before, the 'top' listing is shown. If
the option is used (in the tasks.cfg file, under the 'clientdata' section),
then no 'top' output is included in the 'cpu' column, and just the uptime
output and CPU load graph are shown.
Both patches are only a few lines long. We have used this patch for a long time
without any problems.
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: patch-xymond_client.8
Type: text/x-patch
Size: 676 bytes
Desc: patch-xymond_client.8
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190429/9bc0b9a3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-xymond_client.c
Type: text/x-csrc
Size: 763 bytes
Desc: patch-xymond_client.c
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190429/9bc0b9a3/attachment.c>
More information about the Xymon
mailing list