<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Text based status reporting.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Heya All</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> Running Nagios 2.0b6. (yes I know I should upgrade, but I tweaked the CGI's and am too lazy to have to re-do all my tweaks when I upgrade)</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Management is concerned about people acking problems, and then forgetting about them. They also prefer emails to looking at the GUI. So what I have been tasked with is to generate a report of all "acked" alerts and email it out on a weekly basis.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I see a few ways of doing this.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">1: Write a little perl code to parse the status file, and generate the report. (what I will probably end up doing if I don’t get a better answer)</FONT></P>
<P><FONT SIZE=2 FACE="Arial">2: Use wget to pull down the status.cgi page (with the appropriate paramters) and</FONT>
<BR> <FONT SIZE=2 FACE="Arial">a: Send it out as is - Kind of defeats the purpose, as it would not be a text report</FONT>
<BR> <FONT SIZE=2 FACE="Arial">b: parse/transform it in some way to make it a text report. (could be very annoying)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">3: Add a feature to status.cgi (and maybe even the other ones) to include a format code, so that the wget itself would pull down the text report. Ie, (caps mine)</FONT></P>
<P><A HREF="http://<SERVER>/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=4&hostprops=4&FORMAT=TEXT"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://<SERVER>/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=4&hostprops=4&FORMAT=TEXT</FONT></U></A>
</P>
<P><FONT SIZE=2 FACE="Arial">or maybe just make it another style/type.</FONT>
</P>
<P><A HREF="http://<SERVER>/nagios/cgi-bin/status.cgi?host=all&type=detailTEXT&servicestatustypes=16&serviceprops=4"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://<SERVER>/nagios/cgi-bin/status.cgi?host=all&type=detailTEXT&servicestatustypes=16&serviceprops=4</FONT></U></A>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">I'd really like to see #3, as it would be quite useful in a lot of ways. But my C skills are a little rusty to attempt that sort of thing. </FONT></P>
<P><FONT SIZE=2 FACE="Arial">Has anyone else tried something like this. I have looked at the console/text based front ends, but I believe they are still all interactive, which doesn’t do what I want.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">On a side note, is there a doc as to what all the options are for type, style, hoststatustypes, hostprops, servicestatustypes and serviceprops are? </FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>
<BR><FONT SIZE=2 FACE="Arial">-Andrew</FONT>
</P>
</BODY>
</HTML>