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

John Horne john.horne at plymouth.ac.uk
Thu Mar 21 17:20:58 CET 2024


On Thu, 2024-03-21 at 15:38 +0000, John Horne wrote:
>
> I need to do more testing, but am a little lost as to whether the bug (if it
> exists) is in the 'ps' output, the way it is recorded in the hostdata file or
> in the processing of the 'procs' test.
>
Running a test and checking the 'ps' output shows that it is okay. Using a
small script ('./aaa') and running the ps command shows:

=====
3023287 3023286 john     15:57:36 S  19  0.4     00:00:04  0.0       5136
8312  \_ -bash
3235462 3023287 john     16:14:08 S  19  0.0     00:00:00  0.0       3768
7256      \_ /bin/bash ./aaa
3235812 3235462 john     16:15:05 S  19  0.0     00:00:00  0.0       1028
3056      |   \_ sleep 3
3235463 3023287 john     16:14:08 S  19  0.0     00:00:00  0.0       1108
4016      \_ sed 1i\ ./aaa:\
3018834 3018821 john     15:38:54 S  19  0.0     00:00:00  0.0       7240
19036 sshd: john at pts/0
=====

As expected the sed command shows the script name followed by a colon and
escape characater. There is no corruption of the following line (sshd) being
appended to it.


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