<div>There is a perl module for this, which seems to do the trick pretty good.</div>
<div> </div>
<div>That being said it does take a bit of trial and error to get what you need perhaps.</div>
<div> </div>
<div>The module in question is on CPAN under H/HO/HOPCROFTS/Nagios-Report-0.002.tar.gz (at the time of this mail).</div>
<div> </div>
<div>Easiest way to get and install it is using the CPAN tool that comes with most distrubs these days :</div>
<div> </div>
<div>~# perl -MCPAN -eshell</div>
<div>cpan> install Nagios::Report</div>
<div> </div>
<div>Note that if you have never used this tool before you will get a bunch of configuration questions the first time. The options are well explained so this should be easy.</div>
<div> </div>
<div>The only problem with this setup is if you have Nagios installed via the rpm's made by Dag. The paths are different and Nagios::Report uses the default paths to find the Nagios CGI applications from which it gets its info. (So it does not need a DB or somesuch).
</div>
<div> </div>
<div>There are also a number of examples that come with the package, those you can still find in the CPAN tools cache (~/.cpan usually). You could also recompile the module from there should you need to.</div>
<div> </div>
<div>Cheers,</div>
<div>Hans<br><br> </div>
<div><span class="gmail_quote">On 6/27/06, <b class="gmail_sendername">lobo epx</b> <<a href="mailto:lobo.epx@gmail.com">lobo.epx@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hello,<br>I generate availability reports in CSV format each month, and i try to find if it is possible to automate this sytem (in command-line or anything else), and to save the report directly in a file.<br>Is there any solution ?
<br>My Nagios version is 2.2-1, Debian Etch<br><br><br>Thanks,<br> </div>
<div><span class="sg"><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:lobo.epx@gmail.com" target="_blank">lobo.epx@gmail.com</a><br><br><br><br></span></div><br>Using Tomcat but need to do more? Need to support web services, security?
<br>Get stuff done quickly with pre-integrated technology to make your job easier<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642" target="_blank">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br><br>_______________________________________________<br>Nagios-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Nagios-users@lists.sourceforge.net">
Nagios-users@lists.sourceforge.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br><br></blockquote></div><br>