Hi
I have defined a service in Nagios xi that the service uses from a script (bash script), the service works correctly but output of the service is lines of a file that the script creates the file. I wanted the output to show in some lines but the output is shown as a line.
would you help me, how to show the service output line by line in "status information" part of monitoring?
I used \n and <br /> but it didn't work.
This is related to output of service:
Just change that from a 1 to a 0. You may need to restart Nagios for it to take effect. But once it's in effect, it will no longer escape HTML tags, so your <br /> should get you a new line.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Hi @mbellerue
Thanks for your answer
I had changed value of "escape_html_tags" to 0 but I see the service output as attachment yet and html tag of <br /> is shown in output , is there any way to have better view?
BR.
Parisa
You do not have the required permissions to view the files attached to this post.
Ah, my apologies. That piece was just for Nagios Core. For Nagios XI, we need to enable HTML Tags. Head over to Admin -> System Settings -> General, and there will be a checkbox labeled "Allow HTML Tags in Host/Service Status." Just enable that, and head back over to Services and it should be processed properly.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
I had searched for a option in cfg files of Nagios to active HTML tags, but only found "escape_html_tags" that it didn't work on XI. I didn't search on UI.
thanks for your help.
I had searched for a option in cfg files of Nagios to active HTML tags, but only found "escape_html_tags" that it didn't work on XI. I didn't search on UI.
thanks for your help.