Already tried thatI even tried inserting a <br> instead of `r`n , but I get
CODE: SELECT ALL
1 / 59 tasks failed! Check tasks: <br>Task BW_Buurtwerk by demeyerfailed with exitcode 267014<br>
as output.
Info Output Custom Plugin
Re: Info Output Custom Plugin
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Info Output Custom Plugin
Did you check the "Allow HTML Tags in Host/Service Status" box in Admin -> Manage System Config?
Former Nagios employee
Re: Info Output Custom Plugin
Hmm, I don't know. Gonna check that tomorrow! (not at work atm)
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Info Output Custom Plugin
Sweet. Just swatting this thread off the front page of our "bug you til you answer" dashboard. Let us know how it works out!
Former Nagios employee
Re: Info Output Custom Plugin
Trevor, Spenser,
It seems the "Allow HTML Tags in Host/Service Status" did help. The failed tasks now appear in the service state history, which will help troubleshoot failed tasks.
The service state history information now looks like this however:
The Service status detail overview looks like this:
So I know I got a solution and I can see the failed tasks in history.. But is there way to make the <br> not appear on the service status history information?
Second question, is this "Allow HTML Tags in Host/Service Status" a Nagios XI only option or is this also available in Core? As I'm publishing this plugin on the Nagios Exchange, I wouldn't want to exclude the core users from being able to see which tasks are failed when. or at least I will have to put it in the documentation.
Grtz
Willem
It seems the "Allow HTML Tags in Host/Service Status" did help. The failed tasks now appear in the service state history, which will help troubleshoot failed tasks.
The service state history information now looks like this however:
Code: Select all
2 / 59 tasks failed! Check tasks: <br>Task BW_Bezigheidshome by user1 failed with exitcode 267014 <br>Task BW_Buurtwerk by user1 failed with exitcode 267014 <br>Code: Select all
Critical
2 / 59 tasks failed! Check tasks:
Task BW_Bezigheidshome by user1 failed with exitcode 267014
Task BW_Buurtwerk by user1 failed with exitcode 267014Second question, is this "Allow HTML Tags in Host/Service Status" a Nagios XI only option or is this also available in Core? As I'm publishing this plugin on the Nagios Exchange, I wouldn't want to exclude the core users from being able to see which tasks are failed when. or at least I will have to put it in the documentation.
Grtz
Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Info Output Custom Plugin
Sadly not with that checkbox. Different portions of the web interface are going to handler rendering HTML differently, and the checkbox only affects the Host/Service Status field.WillemDH wrote:But is there way to make the <br> not appear on the service status history information?
This option is only in XI.WillemDH wrote:Second question, is this "Allow HTML Tags in Host/Service Status" a Nagios XI only option or is this also available in Core?
Former Nagios employee
Re: Info Output Custom Plugin
Ok, thanks Trevor. I'm gonna skip the <br> and `r`n story completely. Too much hassle. Edited the script to put everything in one line and split the tasks by ' -> ', which gives
and
as results, which kind of satisfies me... 
Thanks for the help! Thread can be closed.
Willem
Code: Select all
All 59 tasks ran succesfully! -> Task BW_Bezigheidshome by user1, exitcode 267009 is still running! -> Task BW_Buurtwerk by user1, exitcode 267009 is still running!Code: Select all
2 / 59 tasks failed! Check tasks: -> Task BW_Bezigheidshome by user1 failed with exitcode 267014 -> Task BW_Buurtwerk by user1 failed with exitcode 267014Thanks for the help! Thread can be closed.
Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Info Output Custom Plugin
Actually, you can do this through the cgi.cfg file in core. You'd want to flip this to 0:Second question, is this "Allow HTML Tags in Host/Service Status" a Nagios XI only option or is this also available in Core? As I'm publishing this plugin on the Nagios Exchange, I wouldn't want to exclude the core users from being able to see which tasks are failed when. or at least I will have to put it in the documentation.
Code: Select all
escape_html_tags=0Code: Select all
/usr/local/nagios/etc/cgi.cfgI'll lock the thread up now.