You could use the output of glsa-check. That are the packages that needs to be updated for security reasons, so you can see them as critical.<br><br>Nice project<br><br><div class="gmail_quote">On Fri, Feb 15, 2008 at 12:54 PM, Hari Sekhon <<a href="mailto:hpsekhon@googlemail.com">hpsekhon@googlemail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Matthias Kellermann wrote:<br>
> Hari Sekhon schrieb:<br>
>> Matthias Kellermann wrote:<br>
>>> Hi list,<br>
>>><br>
>>> does anyone know a Nagios plugin for monitoring Gentoo's portage for<br>
>>> updates? A quick google search did not give any results<br>
>> That sounds like a good idea and one that I am quite interested in<br>
>> since I run a lot of gentoo servers.<br>
>><br>
>> Could you please elaborate on what exactly you want this plugin to<br>
>> do, perhaps I can write it...<br>
>><br>
>> -h<br>
><br>
> The plugin should check the output of "emerge -upD --newuse world" for<br>
> updates. It's been a while since I've used Gentoo on a daily basis so<br>
> I'm not sure if the output of the above command shows any difference<br>
> between critical and non-critical updates.<br>
><br>
> I wrote a similar plugin for FreeBSD where I use portaudit to see if<br>
> there are any critical packages on the system. This way I can divide<br>
> between critical packages and normal updates and give the right state<br>
> back to Nagios (1 = non-critical, yellow / 2 = critical, red).<br>
</div>When you say critical and non-critical updates do you mean the severity<br>
of the security package announcements? Ie. whether is a remote<br>
exploitable service and might be considered Critical or whether it takes<br>
some previous user account to elevate privilege and therefore is not as<br>
severe and only "Important" or "Warning" in Nagios.<br>
<br>
I take it that you do not mean any old package that has updates or the<br>
thing would be permanently triggered?<br>
<br>
I've just had a look at this and it doesn't look like it distinguishes<br>
between security upgrades deemed Critical/Non-Critical. So I guess it<br>
would be an all-or-nothing Critical/OK result.<br>
<br>
Any other ideas on this are welcome.<br>
<br>
I'll have a go at writing this since I think this is a neat idea and I<br>
have a lot of gentoo to test it on here.<br>
<br>
-h<br>
<br>
--<br>
<font color="#888888">Hari Sekhon<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br>
Defy all challenges. Microsoft(R) Visual Studio 2008.<br>
<a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a 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>
</div></div></blockquote></div><br>