[BlueOnyx:26211] Re: Serverload message and info about processes - fixed
Michael Stauber
mstauber at blueonyx.it
Sun May 14 22:18:16 -05 2023
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
More information about the Blueonyx
mailing list