[Xymon] Bug? procs test going red green every hour

John Horne john.horne at plymouth.ac.uk
Tue Mar 26 11:44:47 CET 2024


On Mon, 2024-03-25 at 10:46 +1100, Jeremy Laidman wrote:
>
> There is no trailing space in the process args, so ps must be adding it.
> Perhaps this is to de-fang any backslashes, precisely to avoid what seems to
> be happening with the xymon client.
>
> So perhaps "escaping" a "\<sp>" sequence at the end of a line would fix this.
> Something like:
>
> ps -Aww f -
> o pid,ppid,user,start,state,pri,pcpu,time:12,pmem,rsz:10,vsz:10,cmd | sed
> 's/\\  *$/\\./'
>
Yes, this seems to work fine. Thanks for that.


John.

--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[https://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.


More information about the Xymon mailing list