Text based status reporting.

Andrew Laden Andrew.Laden at tudor.com
Wed Nov 29 21:05:51 CET 2006


Heya All

 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)

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.

I see a few ways of doing this.

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)

2: Use wget to pull down the status.cgi page (with the appropriate
paramters) and
	a: Send it out as is - Kind of defeats the purpose, as it would
not be a text report
	b: parse/transform it in some way to make it a text report.
(could be very annoying)

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)
http://<SERVER>/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail
&hoststatustypes=4&hostprops=4&FORMAT=TEXT

or maybe just make it another style/type.

http://<SERVER>/nagios/cgi-bin/status.cgi?host=all&type=detailTEXT&servi
cestatustypes=16&serviceprops=4


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. 

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.

On a side note, is there a doc as to what all the options are for type,
style, hoststatustypes, hostprops, servicestatustypes and serviceprops
are? 

Thanks
-Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061129/5cb26397/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list