Page 2 of 2
Re: plugin output size limit
Posted: Tue Apr 09, 2013 6:00 pm
by jwelch
That worked. I rewrote the output to store the html results in files by hostname under /usr/local/nagios/share/ssi and included a link in the plugin output for each host (VIP), I was hoping to use SSI so that the data would seamlessly appear in the Status Detail page, but server side includes appear to be blocked.
Is there an easy way to enable SSI?
Re: plugin output size limit
Posted: Wed Apr 10, 2013 12:57 pm
by mguthrie
Can you show us an example of how you're implementing the SSI?
Re: plugin output size limit
Posted: Sun Apr 28, 2013 12:28 pm
by jwelch
Here are examples of what I've tried. The link works, but the includes don't.
Code: Select all
<a href=\"/nagios/ssi/results/services/bigip/$vip.html\" target=\"_blank\"><span style=\"color:#0060ff;\">[VIEW DATA]</span></a><br>
<!--#include virtual=\"/nagios/ssi/results/services/bigip/$vip.html\" -->
<!--#include file=\"/usr/local/nagios/share/ssi/results/services/bigip/$vip.html\" -->
Do you have an ssi example that works?
Re: plugin output size limit
Posted: Sun Apr 28, 2013 1:26 pm
by scottwilkerson
The only way I can see being able to include these would be to include an iframe that had the content
something like (i have not tested this)
Code: Select all
<iframe src="/nagios/ssi/results/services/bigip/$vip.html" width=600 height=500></iframe>
One thing to note, is that at the current path, the user will likely be prompted for basic auth the first page they visit...
Re: plugin output size limit
Posted: Mon Apr 29, 2013 9:43 am
by jwelch
That kinda works. The output is displayed in a box. It seems to update every 5-7 seconds so if you
scroll down it resets back up to the top before you can do anything useful. If I resize it to 1000x2000
it takes up a lot of room, but will display the largest output without having to scroll inside the iframe.
For now, I'll keep the link so that we can get a stable view of the whole output in a separate tab, and
keep the iframe for a quick glimpse into the output.
Thanks for the feeback.
<Jim>
Re: plugin output size limit
Posted: Mon Apr 29, 2013 10:23 am
by slansing
Thank you for the update on how this works for you, do you have any additional questions regarding this?
Re: plugin output size limit
Posted: Sat May 25, 2013 8:02 am
by jwelch
Thanks for asking. I had to go back to straight multi-output since the users want to have the details included in notification emails. (%longstatusoutpu%) I did keep the external file with a link embedded in the multiline output so that if the output is truncated web users can use the link to see the complete output.
Re: plugin output size limit
Posted: Sat May 25, 2013 1:47 pm
by slansing
Ahhh! Smart workaround, thanks for the update!