a3rd / molniya

Automatically exported from code.google.com/p/molniya
GNU General Public License v2.0
0 stars 0 forks source link

Cleaner status output #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First off, great project!  Glad to help with Linux testing as needed.

What steps will reproduce the problem?
1. Type 'status' to the Nagios bot using Pidgin (latest release)
2.
3.

What is the expected output? What do you see instead?
I would like to see something cleaner.  For example, a line break between
each warning or critical, or even the option of removing the links from the
output.  This is what I see:

(09:09:13 AM) Nagios: 

WARNING: ym-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=ym-a01)/Disk -
/backup
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=ym-a01&service
=Disk%20-%20/backup)
for 3d; utl-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=utl-a01)/Disk
Usage
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=utl-a01&servic
e=Disk%20Usage)
for 2087w5d; dmrs-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=dmrs-a01)/Disk
Usage
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=dmrs-a01&servi
ce=Disk%20Usage)
for 11h6m; dmc-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=dmc-a01)/HTTP
Logs
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=dmc-a01&servic
e=HTTP%20Logs)
for 15h2m; dotomidm
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=dotomidm)/Memory
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=dotomidm&servi
ce=Memory)
for 4d1h; mpdb-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=mpdb-a01)/Oracle
Status
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=mpdb-a01&servi
ce=Oracle%20Status)
for 6h43m; db-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=db-a01)/Oracle
Status
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=db-a01&service
=Oracle%20Status)
for 2087w5d; pgf-a03
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgf-a03)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgf-a03&servic
e=PG%20Truncate)
for 2087w5d; pgr-a05
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a05)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a05&servic
e=PG%20Truncate)
for 4d8h; pgr-a07
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a07)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a07&servic
e=PG%20Truncate)
for 4d8h; pgr-a03
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a03)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a03&servic
e=PG%20Truncate)
for 4d8h; pgr-a04
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a04)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a04&servic
e=PG%20Truncate)
for 4d8h; pgr-a06
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a06)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a06&servic
e=PG%20Truncate)
for 4d8h; pgr-a08
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a08)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a08&servic
e=PG%20Truncate)
for 4d8h; pgr-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a01)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a01&servic
e=PG%20Truncate)
for 4d8h; pgf-a05
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgf-a05)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgf-a05&servic
e=PG%20Truncate)
for 2087w5d; pgr-a02
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgr-a02)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgr-a02&servic
e=PG%20Truncate)
for 4d8h; pgf-a04
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgf-a04)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgf-a04&servic
e=PG%20Truncate)
for 2087w5d; pgf-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgf-a01)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgf-a01&servic
e=PG%20Truncate)
for 2087w5d; pgf-a02
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=pgf-a02)/PG
Truncate
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=pgf-a02&servic
e=PG%20Truncate)
for 2087w5d

CRITICAL: advdb-a01
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=advdb-a01)/Disk
Usage
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=advdb-a01&serv
ice=Disk%20Usage)
for 1d1h; dotomidm
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=dotomidm)/Disk
Usage
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=dotomidm&servi
ce=Disk%20Usage)
for 1d1h; advdb-a02
(http://monitor.dotomi.com/nagios/cgi-bin/status.cgi?host=advdb-a02)/Disk
Usage
(http://monitor.dotomi.com/nagios/cgi-bin/extinfo.cgi?type=2&host=advdb-a02&serv
ice=Disk%20Usage)
for 1d1h

What version of the product are you using? On what operating system?
0.2.1, Nagios 3.2.0, Pidgin 2.5.9-1 on Centos 5.4 x64, Pidgin 2.6.4 on
WinXP 32 bit

Please provide any additional information below.
I'm really not sure if this is the standard output or if this may be an
issue with Pidgin.  The option for a simpler output would be ideal, for
example:

WARNINGS:
$HOSTNAME$: $SERVICE$ $SERVICESTATE$ for $TIME$ [ack ID]
$HOSTNAME$: $SERVICE$ $SERVICESTATE$ for $TIME$ [ack ID]

CRITICALS:
$HOSTNAME$: $SERVICE$ $SERVICESTATE$ for $TIME$ [ack ID]
$HOSTNAME$: $HOSTSTATE$ for $TIME$ [ack ID]

Original issue reported on code.google.com by smgr...@gmail.com on 5 Jan 2010 at 3:16

GoogleCodeExporter commented 9 years ago
I need to track this down further; IM clients seem to handle XHTML-formatted 
messages in various ways. Adium does a neater job and just displays hyperlinks.

As a workaround, I've made the formatting mode configurable as of revision 36; 
add 
the following line to your configuration file and you'll get much 
neater-looking 
output with your client:

xmpp_fmt: plain

Ultimately, I need to find a better way of handling this, perhaps keeping a 
list of 
XHTML-capable clients?

Original comment by cswhee...@gmail.com on 21 Apr 2010 at 9:01