Xymon Mailing List Archive search

Process report tweak? (a request from my boss's boss...)

6 messages in this thread

list Betsy Schwartz · Fri, 19 Oct 2012 09:36:01 -0400 ·
The process report shows a list of monitored processes at the top,
with the missing process having a yellow dot.
Is it possible in another release to list the bad process FIRST and
SEPARATELY from the others? In email it gets sort of buried when
there's a long list of monitored processes:

red Fri Oct 12 15:50:56 EDT 2012 - Processes NOT ok &green
/usr/sbin/cron (found 1, req. 1 or more) &red httpd (found 0, req. 1
or more) &green nscd (found 1, req. 1 or more) &green java (found 1,
req. 1 or more) &red coldfusion8 (found 0, req. 1 or more) &green cron
(found 1, req. 1 or more)....

If people think this is a good idea, that is

thanks Betsy
list Ralph Mitchell · Fri, 19 Oct 2012 14:35:48 -0400 ·
If you need a solution right now, you could use an alert script that pretty
much just does this:

     #!/bin/bash
     MESSAGE=`echo "$BBALPHAMSG" | egrep "\&red|\&yellow" | sort`

     echo "$MESSAGE" | mailx -s "$BBHOSTNAME $BBSVCNAME $BBCOLORLEVEL" $RCPT

That gets you just the alerting filesystems.  Then in
/home/xymon/server/etc/alerts.cfg:

     HOST=hostname.server.com  SERVICE=procs
          SCRIPT  /home/xymon/bin/process-alert.sh  user-bf13230a682d@xymon.invalid

I'm using something similar to direct messages to different support groups
for different filesystems.

Ralph Mitchell
quoted from Betsy Schwartz


On Fri, Oct 19, 2012 at 9:36 AM, Betsy Schwartz <user-c61747246f66@xymon.invalid>wrote:
The process report shows a list of monitored processes at the top,
with the missing process having a yellow dot.
Is it possible in another release to list the bad process FIRST and
SEPARATELY from the others? In email it gets sort of buried when
there's a long list of monitored processes:

red Fri Oct 12 15:50:56 EDT 2012 - Processes NOT ok &green
/usr/sbin/cron (found 1, req. 1 or more) &red httpd (found 0, req. 1
or more) &green nscd (found 1, req. 1 or more) &green java (found 1,
req. 1 or more) &red coldfusion8 (found 0, req. 1 or more) &green cron
(found 1, req. 1 or more)....

If people think this is a good idea, that is

thanks Betsy

list Betsy Schwartz · Fri, 19 Oct 2012 14:42:58 -0400 ·
great! Simple! love it!
quoted from Ralph Mitchell

On Fri, Oct 19, 2012 at 2:35 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid> wrote:
If you need a solution right now, you could use an alert script that pretty
much just does this:

     #!/bin/bash
     MESSAGE=`echo "$BBALPHAMSG" | egrep "\&red|\&yellow" | sort`

     echo "$MESSAGE" | mailx -s "$BBHOSTNAME $BBSVCNAME $BBCOLORLEVEL" $RCPT

That gets you just the alerting filesystems.  Then in
/home/xymon/server/etc/alerts.cfg:

     HOST=hostname.server.com  SERVICE=procs
          SCRIPT  /home/xymon/bin/process-alert.sh  user-bf13230a682d@xymon.invalid

I'm using something similar to direct messages to different support groups
for different filesystems.

Ralph Mitchell


On Fri, Oct 19, 2012 at 9:36 AM, Betsy Schwartz <user-c61747246f66@xymon.invalid>
quoted from Ralph Mitchell
wrote:
The process report shows a list of monitored processes at the top,
with the missing process having a yellow dot.
Is it possible in another release to list the bad process FIRST and
SEPARATELY from the others? In email it gets sort of buried when
there's a long list of monitored processes:

red Fri Oct 12 15:50:56 EDT 2012 - Processes NOT ok &green
/usr/sbin/cron (found 1, req. 1 or more) &red httpd (found 0, req. 1
or more) &green nscd (found 1, req. 1 or more) &green java (found 1,
req. 1 or more) &red coldfusion8 (found 0, req. 1 or more) &green cron
(found 1, req. 1 or more)....

If people think this is a good idea, that is

thanks Betsy
list Ralph Mitchell · Fri, 19 Oct 2012 14:49:22 -0400 ·
Heh - I just noticed I wrote "alerting filesystems", but of course it
should work equally well for processes and ports.
quoted from Betsy Schwartz

Ralph Mitchell


On Fri, Oct 19, 2012 at 2:42 PM, Betsy Schwartz <user-c61747246f66@xymon.invalid>wrote:
great! Simple! love it!

On Fri, Oct 19, 2012 at 2:35 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>
wrote:
If you need a solution right now, you could use an alert script that
pretty
much just does this:

     #!/bin/bash
     MESSAGE=`echo "$BBALPHAMSG" | egrep "\&red|\&yellow" | sort`

     echo "$MESSAGE" | mailx -s "$BBHOSTNAME $BBSVCNAME $BBCOLORLEVEL"
$RCPT
That gets you just the alerting filesystems.  Then in
/home/xymon/server/etc/alerts.cfg:

     HOST=hostname.server.com  SERVICE=procs
          SCRIPT  /home/xymon/bin/process-alert.sh
user-bf13230a682d@xymon.invalid

I'm using something similar to direct messages to different support
groups
for different filesystems.

Ralph Mitchell


On Fri, Oct 19, 2012 at 9:36 AM, Betsy Schwartz <
user-c61747246f66@xymon.invalid>
wrote:
The process report shows a list of monitored processes at the top,
with the missing process having a yellow dot.
Is it possible in another release to list the bad process FIRST and
SEPARATELY from the others? In email it gets sort of buried when
there's a long list of monitored processes:

red Fri Oct 12 15:50:56 EDT 2012 - Processes NOT ok &green
/usr/sbin/cron (found 1, req. 1 or more) &red httpd (found 0, req. 1
or more) &green nscd (found 1, req. 1 or more) &green java (found 1,
req. 1 or more) &red coldfusion8 (found 0, req. 1 or more) &green cron
(found 1, req. 1 or more)....

If people think this is a good idea, that is

thanks Betsy
list Ryan Novosielski · Fri, 19 Oct 2012 15:05:34 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I do think this is an enhancement that makes sense out of the box though.
quoted from Betsy Schwartz

On 10/19/2012 02:43 PM, Betsy Schwartz wrote:
great! Simple! love it!

On Fri, Oct 19, 2012 at 2:35 PM, Ralph Mitchell
<user-00a5e44c48c0@xymon.invalid> wrote:
If you need a solution right now, you could use an alert script
that pretty much just does this:

#!/bin/bash MESSAGE=`echo "$BBALPHAMSG" | egrep "\&red|\&yellow"
| sort`

echo "$MESSAGE" | mailx -s "$BBHOSTNAME $BBSVCNAME $BBCOLORLEVEL"
$RCPT

That gets you just the alerting filesystems.  Then in /home/xymon/server/etc/alerts.cfg:

HOST=hostname.server.com  SERVICE=procs SCRIPT
/home/xymon/bin/process-alert.sh  user-bf13230a682d@xymon.invalid

I'm using something similar to direct messages to different
support groups for different filesystems.

Ralph Mitchell


On Fri, Oct 19, 2012 at 9:36 AM, Betsy Schwartz
<user-c61747246f66@xymon.invalid> wrote:
The process report shows a list of monitored processes at the
top, with the missing process having a yellow dot. Is it
possible in another release to list the bad process FIRST and SEPARATELY from the others? In email it gets sort of buried
when there's a long list of monitored processes:

red Fri Oct 12 15:50:56 EDT 2012 - Processes NOT ok &green /usr/sbin/cron (found 1, req. 1 or more) &red httpd (found 0,
req. 1 or more) &green nscd (found 1, req. 1 or more) &green
java (found 1, req. 1 or more) &red coldfusion8 (found 0, req.
1 or more) &green cron (found 1, req. 1 or more)....

If people think this is a good idea, that is

thanks Betsy
- -- - ---- _  _ _  _ ___  _  _  _

|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCBpH4ACgkQmb+gadEcsb53lgCfY46XDcso2tLDrmOfhqTPYc7h
UTQAnjTSaGP4ym2iXOuP18ZGD5WrlOKG
=gGFu
-----END PGP SIGNATURE-----
list Ralph Mitchell · Fri, 19 Oct 2012 16:04:36 -0400 ·
I'll second that! :-)
quoted from Ryan Novosielski

Ralph Mitchell


On Fri, Oct 19, 2012 at 3:05 PM, Novosielski, Ryan <user-ae4522577e16@xymon.invalid>wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I do think this is an enhancement that makes sense out of the box though.

On 10/19/2012 02:43 PM, Betsy Schwartz wrote:
great! Simple! love it!

On Fri, Oct 19, 2012 at 2:35 PM, Ralph Mitchell
<user-00a5e44c48c0@xymon.invalid> wrote:
If you need a solution right now, you could use an alert script
that pretty much just does this:

#!/bin/bash MESSAGE=`echo "$BBALPHAMSG" | egrep "\&red|\&yellow"
| sort`

echo "$MESSAGE" | mailx -s "$BBHOSTNAME $BBSVCNAME $BBCOLORLEVEL"
$RCPT

That gets you just the alerting filesystems.  Then in
/home/xymon/server/etc/alerts.cfg:

HOST=hostname.server.com  SERVICE=procs SCRIPT
/home/xymon/bin/process-alert.sh  user-bf13230a682d@xymon.invalid

I'm using something similar to direct messages to different
support groups for different filesystems.

Ralph Mitchell


On Fri, Oct 19, 2012 at 9:36 AM, Betsy Schwartz
<user-c61747246f66@xymon.invalid> wrote:
The process report shows a list of monitored processes at the
top, with the missing process having a yellow dot. Is it
possible in another release to list the bad process FIRST and
SEPARATELY from the others? In email it gets sort of buried
when there's a long list of monitored processes:

red Fri Oct 12 15:50:56 EDT 2012 - Processes NOT ok &green
/usr/sbin/cron (found 1, req. 1 or more) &red httpd (found 0,
req. 1 or more) &green nscd (found 1, req. 1 or more) &green
java (found 1, req. 1 or more) &red coldfusion8 (found 0, req.
1 or more) &green cron (found 1, req. 1 or more)....

If people think this is a good idea, that is

thanks Betsy
- --
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCBpH4ACgkQmb+gadEcsb53lgCfY46XDcso2tLDrmOfhqTPYc7h
UTQAnjTSaGP4ym2iXOuP18ZGD5WrlOKG
=gGFu
-----END PGP SIGNATURE-----