<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Would it be worth it to try to take say the statuswml.c and rework the
output to generate<br>
the XML needed for an RSS client? <br>
<br>
Jeff McCombs wrote:<br>
<blockquote cite="midBE5246BF.3191%25jeffm@nicusa.com" type="cite">
<pre wrap="">Peeps,
OK, so I've been hacking on this just to see, thinking that an RSS feed
might be pretty useful..
And what I've come up with isn't pretty, to say the least. It's slow.. But
for those of you who want to hack on this, maybe improve it, go for it...
This little _PHP_ app parses the nagios.log file, and reports on all
services that are _not_ in a status of UP or OK. I'm sure there's a perl
module out there that can do it, but for some reason, I can't write perl to
save my life. :)
Tack on ?oktoo=true to the URL, and it'll report on all services (not
recommended, we have over 800 services, which means we have over 800 RSS
items, and that's a horrible thing to do to your reader!)
Edit the config.php file and set the following:
$nagios['status_file']
This needs to be the full path to the status.log file Nagios spits
out (e.g. /usr/local/nagios/var/status.log)
$nagios['myurl']
This is the full <a class="moz-txt-link-freetext" href="http://">http://</a> address to the nagios web interface.
e.g. <a class="moz-txt-link-freetext" href="http://nagios.mydomain.com/nagios/">http://nagios.mydomain.com/nagios/</a>
$nagios['statcgi']
This is the full <a class="moz-txt-link-freetext" href="http://">http://</a> address to the nagios status.cgi script
e.g. <a class="moz-txt-link-freetext" href="http://nagios.mydomain.com/nagios/cgi-bin/status.cgi">http://nagios.mydomain.com/nagios/cgi-bin/status.cgi</a>
$nagios['extinfo]
This is the full <a class="moz-txt-link-freetext" href="http://">http://</a> address to the nagios extinfo.cgi script
e.g. <a class="moz-txt-link-freetext" href="http://nagios.mydomain.com/nagios/cgi-bin/extinfo.cgi">http://nagios.mydomain.com/nagios/cgi-bin/extinfo.cgi</a>
Just drop this into the Nagios cgi-bin/ directory. Note this is a giant,
ugly HACK that I put together, no warranties express or implied, blah blah
blah, may break systems, cause floods and other major disasters, blah blah..
No support, you know the drill.
Hack it up as needed. It ought to give someone a start at least... Oh,
and I wrote this to work with 1.2, not 2.x, since I don't have a 2.x status
file to work with. Sorry, no support for DB's, though it could be done (and
would probably be faster).
-Jeff
</pre>
<blockquote type="cite">
<pre wrap="">From: <a class="moz-txt-link-rfc2396E" href="mailto:brianmas@highstream.net"><brianmas@highstream.net></a>
Date: Mon, 7 Mar 2005 14:32:31 -0500
To: <a class="moz-txt-link-rfc2396E" href="mailto:nagios-users@lists.sourceforge.net"><nagios-users@lists.sourceforge.net></a>
Subject: Re: [Nagios-users] Alert suggestion: RSS
Quoting Marcel Smeets <a class="moz-txt-link-rfc2396E" href="mailto:mpgsmeets@gmail.com"><mpgsmeets@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Mmm, the second time someone tells it is simple to make a notification
script for this. Well how??
</pre>
</blockquote>
<pre wrap="">I already have something working, sorta, after just working on it a little bit
here and there today. I'll let the world know when I have something I think is
decent enough to use beyond my own machines.
b
</pre>
<blockquote type="cite">
<pre wrap="">
On Mon, 7 Mar 2005 15:57:37 +0000, Mike Simkins <a class="moz-txt-link-rfc2396E" href="mailto:mike.simkins@gmail.com"><mike.simkins@gmail.com></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have seen something like this for files, should be a simple job to
write one, I would personally find it useful..
On Mon, 7 Mar 2005 10:07:49 -0500, <a class="moz-txt-link-abbreviated" href="mailto:brianmas@highstream.net">brianmas@highstream.net</a>
<a class="moz-txt-link-rfc2396E" href="mailto:brianmas@highstream.net"><brianmas@highstream.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Quoting Andreas Ericsson <a class="moz-txt-link-rfc2396E" href="mailto:ae@op5.se"><ae@op5.se></a>:
</pre>
<blockquote type="cite">
<pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:brianmas@highstream.net">brianmas@highstream.net</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I looked around and I didn't see it mentioned anywhere but RSS as a
</pre>
</blockquote>
<pre wrap="">reporting
</pre>
<blockquote type="cite">
<pre wrap="">mechanism might be sorta useful. When I am on my laptop at home I
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">often
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">don't
</pre>
<blockquote type="cite">
<pre wrap="">have a browser window with nagios open or a mail client open but I'll
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">have
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">an
</pre>
<blockquote type="cite">
<pre wrap="">RSS client going. Maybe I am the only one and it'll never get used
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">though
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">...
</pre>
<blockquote type="cite">
<pre wrap="">just an idea. I'd "write a patch" if I thought I could, btw.
</pre>
</blockquote>
<pre wrap="">You don't have to write a patch. Just a notification script. It should
be fairly simple, really.
</pre>
</blockquote>
<pre wrap="">oh really? I honestly didn't look into notification stuff, the plugin API
</pre>
</blockquote>
</blockquote>
<pre wrap="">is
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">simple as hell though, I'll have a go at this when I have some free time
</pre>
</blockquote>
</blockquote>
<pre wrap="">this
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">week.
thanks for the info.
brian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when
</pre>
</blockquote>
</blockquote>
<pre wrap="">reporting any issue.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<pre wrap="">-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when
</pre>
</blockquote>
<pre wrap="">reporting any issue.
</pre>
<blockquote type="cite">
<pre wrap="">::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<pre wrap="">
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<pre wrap="">
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>