<div>Hi,</div>
<div>
<p>This are some tries to add some AJAX technology to Nagios.</p>
<p>Sample1 & Sample2:<br>This 2 samples are very similar. They provide a way to refresh the status pages only when some HARD status change occurs.<br></p>
<p>To achieve this I modified the status.cgi so that it loads a simple javascript (nagiosajax.js) at startup and set a hidden var in the page. The  javascript <br>polls every 5 seconds a PHP script wich returns the last HARD change time. this value is compared to the one stored into the page and reloads the frame if 
<br>they are different.</p>
<p>=> Sample1 is built on top of a nagios1.3 with mysql support. Therefor we use some SQL query to get the laststatechange.<br>=> Sample2 is built on top of a nagios2.0b4. We use a global event handler to "log" the last HARD state change.
</p>
<p>Files can be found here:</p>
<p><a href="http://www.barbich.net/websvn/wsvn/nagios/nagios/divers/ajaxify_nagios_cgi/sample1/">http://www.barbich.net/websvn/wsvn/nagios/nagios/divers/ajaxify_nagios_cgi/sample1/</a><br><a href="http://www.barbich.net/websvn/wsvn/nagios/nagios/divers/ajaxify_nagios_cgi/sample2/">
http://www.barbich.net/websvn/wsvn/nagios/nagios/divers/ajaxify_nagios_cgi/sample2/</a></p>
<p> </p>
<p>Please this are only simple tests, they need imporvment and may not work in your case. Also, before trying this out please make backups.</p>
<p>Seb.B</p></div>