[Nagios-devel] Problem extending the

Nicolas COLIN ncolin at technodiva.com
Tue Jan 9 09:40:14 UTC 2007


william(at)elan.net <william <at> elan.net> writes:

> 
> 
> On Wed, 20 Dec 2006, Nicolas COLIN wrote:
> 
> > $ patch -p1 < nagios25-largerbuffers.patch
> > patching file include/common.h
> > Hunk #1 succeeded at 379 (offset -11 lines).
> > patching file include/objects.h
> > Hunk #2 FAILED at 55.
> > 1 out of 2 hunks FAILED -- saving rejects to file include/objects.h.rej
> > patching file p1.pl
> 
> Ignore and compile. The failed hunk was to increase hashtree size for
> when you apply one of my other patches (for hostgroupexinfo objects).
> 
> > I also looked at nagios-db but it does not seem to evolve frequently.
> > Any of you has already tried it?
> 
> Ethan will answer, but I'm under impression that nagios 3.0 will not
> support databases like nagios 2.0 optionally does.
> 

Thanks, but the increased size is not enough.

As I do each time I do not succeed resolving a problem, I circumvent it.
The way I found: sending an IFRAME to the FIFO. For example:

[1167321889] PROCESS_SERVICE_CHECK_RESULT;Cach1001;SSI warning;1;<iframe
frameborder=0 height=70 width=670 marginwidth=0 marginheight=0 hspace=0 vspace=0
src=/nagios/ssi/Cach10011.html></iframe>

And I send the datas to the HTML corresponding file. Like this:

<HTML>
<LINK REL='stylesheet' TYPE='text/css'
HREF='/nagios/stylesheets/common.css'><LINK REL='stylesheet' TYPE='text/css'
HREF='/nagios/stylesheets/status.css'>
<BODY style=' background-color:#FFBBBB;'>
<TABLE width=100% cellpadding=0 cellspacing=0 style='word-break:break-all;
font-size:8px;'>
<TR style='background-color:#FFCBCB;'><TD
width=100>quantite-date-heure</TD><TD><A
href='http://web.site.com/probleme/Prob_InsertSSI.php?Serveur=CACH1001&Element=quantite%2Ddate%2Dheure&Parametre=%2Fusers%2Fedi%2Foutput2%2F%2A%2E%2A&Val=2'
target='_blank' >/users/edi/output2/*.*</A></TD><TD width=85>2</TD></TR>
</TABLE>
</BODY>
</HTML>

So I have not more concerns about the size :)

If this could help anyone.

Best wishes.

-- 
Nicolas COLIN.






More information about the Nagios-devel mailing list