nagiosxi

Print more than one line output in nagios

孤街醉人 提交于 2021-01-05 11:24:41
问题 I have written a script and it is printing multiline output. But in nagios it is showing only one line. Does anyone know how to print multilines in Nagios 回答1: Multiline ouput is possible only with Nagios 3 and newer. First of all, you can use html tag <br/> for each new line of desired output. Next important thing is disable HTML tag escaping in your cgi.cfg on Nagios server. Find escape_html_tags=1 and change to escape_html_tags=0 . Then you restart Nagios server. Some advice about Nagios

Print more than one line output in nagios

淺唱寂寞╮ 提交于 2021-01-05 11:24:01
问题 I have written a script and it is printing multiline output. But in nagios it is showing only one line. Does anyone know how to print multilines in Nagios 回答1: Multiline ouput is possible only with Nagios 3 and newer. First of all, you can use html tag <br/> for each new line of desired output. Next important thing is disable HTML tag escaping in your cgi.cfg on Nagios server. Find escape_html_tags=1 and change to escape_html_tags=0 . Then you restart Nagios server. Some advice about Nagios

Print more than one line output in nagios

Deadly 提交于 2021-01-05 11:23:55
问题 I have written a script and it is printing multiline output. But in nagios it is showing only one line. Does anyone know how to print multilines in Nagios 回答1: Multiline ouput is possible only with Nagios 3 and newer. First of all, you can use html tag <br/> for each new line of desired output. Next important thing is disable HTML tag escaping in your cgi.cfg on Nagios server. Find escape_html_tags=1 and change to escape_html_tags=0 . Then you restart Nagios server. Some advice about Nagios