Page 1 of 1

Multiline Responce in Nagios WebUI

Posted: Thu Feb 07, 2013 9:06 am
by capeschools
Is it possible for Nagios to display a multiline repsonce in the WebUI?

I am trying to use an environmental check on my ProCurve switches which when ran from the CLI for one switch gives the following:

OK: All Environmental Sensors ok
Fan Sensor #1 = Good
Power Supply 1 Sensor #1 = Good
Power Supply 2 Sensor #1 = Good
Power Supply 3 Sensor #1 = Good
Power Supply 4 Sensor #1 = Good
RPS Power Supply Sensor #1 = notPresent
Over-temperature Sensor #1 = Good
External Power Supply 1 Sensor #1 = notPresent
External Power Supply 2 Sensor #1 = notPresent

However when it shows in the webUI it only shows the first line - OK: All Environmental Sensors ok

The only thing I can find seems to be about getting multiline information in email notifications but not the WebUI.

Any help or guidance greatly appreciated.

Re: Multiline Responce in Nagios WebUI

Posted: Thu Feb 07, 2013 10:40 am
by slansing
Have you taken a look at the bottom half of this document yet?:

http://nagios.sourceforge.net/docs/3_0/pluginapi.html

This outlines service output lengths and plugin return limits.

Re: Multiline Responce in Nagios WebUI

Posted: Thu Feb 07, 2013 10:43 am
by capeschools
I did read that but to be honest my knowledge is not great - my Nagios install is from an RPM so its not compiled so if the only way would be for me to edit the mentioned file and recompile then I guess I'll have to pass as I really do not want to go down that sort of route.

Re: Multiline Responce in Nagios WebUI

Posted: Thu Feb 07, 2013 10:53 am
by abrist
Most of the ui changes require editing the cgi files. This requires a source install, or at least downloading the source, editing the necessary cgi, building the file, and copying it over into the cgi directory.

Re: Multiline Responce in Nagios WebUI

Posted: Thu Feb 07, 2013 11:29 am
by capeschools
Understood thanks...I was hoping it was just a case of adding something to the command definition