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?
plugin output size limit
Re: plugin output size limit
Can you show us an example of how you're implementing the SSI?
Re: plugin output size limit
Here are examples of what I've tried. The link works, but the includes don't.
Do you have an ssi example that works?
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\" -->
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: plugin output size limit
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)
One thing to note, is that at the current path, the user will likely be prompted for basic auth the first page they visit...
something like (i have not tested this)
Code: Select all
<iframe src="/nagios/ssi/results/services/bigip/$vip.html" width=600 height=500></iframe>Re: plugin output size limit
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>
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>
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: plugin output size limit
Thank you for the update on how this works for you, do you have any additional questions regarding this?
Re: plugin output size limit
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: plugin output size limit
Ahhh! Smart workaround, thanks for the update!