[BlueOnyx:26212] Re: Serverload message and info about processes - fixed

Dirk Estenfeld dirk.estenfeld at blackpoint.de
Fri May 19 10:31:32 -05 2023


Hello Michael,

thank you very much for this fix.

Best regards,
Dirk



 
blackpoint GmbH – Friedberger Straße 106b – 61118 Bad Vilbel 

-----Ursprüngliche Nachricht-----
Von: Blueonyx <blueonyx-bounces at mail.blueonyx.it> Im Auftrag von Michael
Stauber
Gesendet: Montag, 15. Mai 2023 05:18
An: blueonyx at mail.blueonyx.it
Betreff: [BlueOnyx:26211] Re: Serverload message and info about processes -
fixed

Hi Dirk,

> The customer notes that the complete information about a process in 
> the list is not available in the email and is cut off on the right. Do 
> you have a way to display the complete information about the prozess 
> in the ps aux sent in the email?


I looked into it today and fixed it. Updated "swatch" RPMs are now available
for the following platforms:

BlueOnyx 5211R
BlueOnyx 5210R
BlueOnyx 5209R
Aventurin{e} 6109R

I tried switching to other Perl modules for sending AM emails (instead of
using MIME::Lite), but the few more modern ones I tried all had their own
issues as well. Nothing major as far as UTF-8 (and possible
attachments) goes, though. But the main reason for switching to another
(more modern) emailing library would have been the ability to mail AM
reports in Japanese. However: That worked equally bad in the other libraries
as well.

So I continued to use MIME::Lite in the end. It also removes the necessity
to build additional RPMs for four different platforms, as they all already
have our MIME::Lite RPM installed.

The updated swatch has two main differences:

Before we used this command to get the "top" data:

top -b -n 1 -o %CPU

That cuts off lines (in our case) after 99 characters. But with the -w flag
we can adjust that and the maximum supported value is 512 characters. And
the -c shows the full commands of processes, which is what we actually want
for full verbosity and which we can now use as we get the longest possible
lines.

top -b -w 512 -n 1 -c -o %CPU

So we're using that now.

The second change: If an AM email has a "top" report included, we show it
inline in the email body, but also attach it as a plain text attachment to
the email. This is for easier handling in case an email client has issues
with our then long lines in the body.

I think that should solve the issue nicely.

--
With best regards

Michael Stauber
_______________________________________________
Blueonyx mailing list
Blueonyx at mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4940 bytes
Desc: not available
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20230519/0609e043/attachment.p7s>


More information about the Blueonyx mailing list