BBALPHAMSG for service 'proc', 'disk', etc no line feeds

Bill Arlofski waa-hobbit at revpol.com
Sun Mar 30 18:05:00 CEST 2008


Is there a way to get hobbit to send the BBALPHAMSG variable formatted
with line feeds so it appears in an email the way it does on the web page?

I guess what I am trying to say is that would be much easier to read
this in an email report:

--[snip]--
server.domain.tld:procs yellow [584104]

yellow Sun Mar 30 10:53:38 EDT 2008 - Processes NOT ok

green arkeiad (found 1, req. between 1 and 1)
green ntpd (found 1, req. between 1 and 1)
green apache2 (found 8, req. 1 or more)
green cron (found 1, req. 1 or more)
red   syslog-ng (found 1, req. 1 or more)
green sshd (found 3, req. 1 or more)
green slapd (found 1, req. 1 or more)

  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:01 init [3]
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:00 [ksoftirqd/0]
    4 ?        S      0:00 [migration/1]
--[snip]--


as opposed to what I am seeing for a proc report in an email:

--[snip]--
server.domain.tld:procs yellow [584104] yellow Sun Mar 30 10:53:38 EDT
2008 - Processes NOT ok &green arkeiad (found 1, req. between 1 and 1)
&yellow ntpd (found 0, req. between 1 and 1) &green apache2 (found 8,
req. 1 or more) &green cron (found 1, req. 1 or more) &green syslog-ng
(found 1, req. 1 or more) &green sshd (found 3, req. 1 or more) &green
slapd (found 1, req. 1 or more) PID PPID USER STARTED S PRI %CPU TIME
%MEM RSZ VSZ CMD 1 0 root Feb 13 S 23 0.0 00:00:01 0.0 552 1600 init [3]
2 1 root Feb 13 S 139 0.0 00:00:00 0.0 0 0 [migration/0] 3 1 root Feb 13
S 5 0.0 00:00:00 0.0 0 0 [ksoftirqd/0] 4 1 root Feb 13 S 139 0.0
00:00:00 0.0 0 0 [migration/1]
--[snip]--

I see similarly unformatted reports for disk partitions.


Since there is nothing really to queue off of in the globbed together
BBALPHAMSG variable, it is also impossible for me to use sed/awk to
manipulate it and format it before emailing..

Any thoughts or comments?  Did I miss something obvious?

Thanks!

--
Bill Arlofski
Reverse Polarity, LLC



More information about the Xymon mailing list