lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
151 stars 87 forks source link

Change Output in Verbose Mode #74

Open dhoffend opened 8 years ago

dhoffend commented 8 years ago

I really would like a change in the normal verbose mode. The first line should be the Plugin Command

OK/CRITICAL/WARNING/... <message>
the rest can be long text/verbose | plus perfdata

Right now the first line is always: I am a Cisco IOS Software... which makes the verbose mode unusable (most likely) for additional debug information in nagios/naemon/incigna.

This would have the nice effect that the first line is still the real plugin output message which gets shown in the webpage or in the notification and the rest gets moved into the additional long text field

chas0rde commented 5 years ago

Totally agree. Output should be a bit more clean and untilize long output for additional information.

e.g. on interface-health I would get something linke

CRITICAL - interface Extreme Networks Ethernet Routing Switch 3526T PWR+ Module - Port 25 (alias 1/25) broadcast in:45.32% out:0.00% , Extreme Networks Ethernet Routing Switch 3526T PWR+ Module - Port 25 (alias 1/25) is up/up, interface Extreme Networks Ethernet Routing Switch 3526T PWR+ Module - Port 25 (alias 1/25) usage is in:0.00% (26851.66bit/s) out:0.00% (9714.31bit/s), interface Extreme Networks Ethernet Routing Switch 3526T PWR+ Module - Port 25 (alias 1/25) errors in:0.00/s out:0.00/s , interface Extreme Networks Ethernet Routing Switch 3526T PWR+ Module - Port 25 (alias 1/25) discards in:0.00/s out:0.00/s

I think it would make more sense to have short first lines (not to bloath the webinterface of e.g. icinga) and additional information in multiline output. In above it is also hard to see why it is critical. Also repetituions of the same information (here: interface name) seems unnessesary

Maybe like:

CRITICAL - interface Extreme Networks Ethernet Routing Switch 3526T PWR+ Module - Port 25 (alias 1/25) is up/up, broadcast in:45.32% out:0.00%

interface Extreme Networks Ethernet Routing Switch 3526T PWR+ Module - Port 25 (alias 1/25) is up/up, broadcast in:45.32% out:0.00% , usage is in:0.00% (26851.66bit/s) out:0.00% (9714.31bit/s), errors in:0.00/s out:0.00/s , discards in:0.00/s out:0.00/s