plugin output size limit

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: plugin output size limit

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: plugin output size limit

Post by mguthrie »

Can you show us an example of how you're implementing the SSI?
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: plugin output size limit

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: plugin output size limit

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: plugin output size limit

Post 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>
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: plugin output size limit

Post by slansing »

Thank you for the update on how this works for you, do you have any additional questions regarding this?
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: plugin output size limit

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: plugin output size limit

Post by slansing »

Ahhh! Smart workaround, thanks for the update!
Locked