I am trying to generate a reasonably formatted email of the top 10 process during a CPU alert. I have found several references to RealTimeProcessPoller and I do have it working. However my process list below looks less than ideal.
I am looking for something like this
Name | Process ID | CPU | ||
java | 6479 | 0.07% | ||
java | 6480 | 0.04% | ||
snmpd | 4583 | 0.03% | ||
java | 6119 | 0.01% | ||
events/0 | 18 | 0.00% | ||
kjournald | 2735 | 0.00% | ||
syslogd | 3933 | 0.00% | ||
rpciod/1 | 4140 | 0.00% | ||
java | 5859 | 0.00% | ||
init | 1 | 0.00% |
This leaves me with 3 questions.
1. When using the -htmlformat switch I get a nice table but does the email generated by the alert send as HTML?
2. The formatting for the % string is in need some some formatting, I did not see any command line formatting options when I used dotpeek to look at the exe. Could a future version provide formatting options to the user, something similar to below?
return string.Format((IFormatProvider)CultureInfo.CurrentCulture, "{0:#0.##%}", new object[1]{ obj });
3. Do you have an alternative solution for providing formatted top10 process list alert setup for net-snmp boxes?
SolarWinds uses cookies on its websites to make your online experience easier and better. By using our website, you consent to our use of cookies. For more information on cookies, see our cookie policy.