alert RSS feed possible?
MAD
mad at b-care.net
Fri Jul 27 14:35:00 CEST 2012
Hi,
I wrote this a long time ago, so it can clearly be improved.
Create a Nagios commands called notify-host-rss and notify-service-rss
like this :
defined command {
command_name notify-host-rss
command_line $USER1$/notification_rss.pl -n '$NOTIFICATIONTYPE$' -H
"$HOSTNAME$" -e $HOSTSTATE$ -o "$HOSTOUTPUT$" -m 30 -f '$CONTACTEMAIL$'
}
defined command {
command_name notify-service-rss
command_line $USER1$/notification_rss.pl -n '$NOTIFICATIONTYPE$' -H
"$HOSTNAME$" -s "$SERVICEDESC$" -e $SERVICESTATE$ -o "$SERVICEOUTPUT$"
-m 30 -f '$CONTACTEMAIL$'
}
And define a contact called RSS with the path to the RSS file on your
system as its email. Something like
define contact {
...
contact_name RSS
email /var/www/html/rss/nagios.rss
host_notification_commands notify-host-rss
service_notification_commands notify-service-rss
...
}
Associate your RSS contact to whatever hosts/services you want and
reload your Nagios.
On 07/27/2012 01:42 PM, Werner Flamme wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I just wonder if it is possible to show f. e. current CRITICAL results
> in an RSS feed. Is there any possibility that a nagios 3.x server
> provides a newsfeed?
>
> Maybe every sent notification can be forwarded to this feed?
>
> TIA
> Werner
>
> - --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.18 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlASfq0ACgkQk33Krq8b42OJvgCfTTIpkIHQbbxYjmQgGnMYcOzd
> p90An10xXBGmSwGSlvuVNULceY8ba0cy
> =mlK3
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: notification_rss.pl
Type: application/x-perl
Size: 2818 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120727/e0917541/attachment.bin>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- 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