Xymon Mailing List Archive search

client/ext yum update notifier extension script

3 messages in this thread

list Netz-haut - Stephan Seitz · Wed, 3 Jun 2009 09:56:16 +0200 ·
Hi there,

I'm currently using hobbit/xymon to monitor our hostmachines. Most of them are Ubuntu/Debian.
The debian guys wrote an extension (hobbit-plugins, /usr/lib/hobbit/client/ext/apt) to get informed
about the availability of updates/security-updates via apt.
As we're going to setup some new Machines with CentOS, I'ld like to ask if someone already did a similar
extension script for yum/rpm?

Cheers,

Stephan


--
Stephan Seitz
Senior System Administrator

*netz-haut* e.K.
multimediale kommunikation

zweierweg 22
97074 würzburg

fon: +49 931 2876247
fax: +XX XXX XXXXXXX

web: www.netz-haut.de <http://www.netz-haut.de/>;

registriergericht: amtsgericht würzburg, hra 5054
list Christoph Berg · Wed, 3 Jun 2009 11:18:12 +0200 ·
Re: netz-haut - stephan seitz 2009-06-03 <user-f7d6d33ad5ca@xymon.invalid>
quoted from Netz-haut - Stephan Seitz
As we're going to setup some new Machines with CentOS, I'ld like to ask if someone already did a similar
extension script for yum/rpm?
Here's an ugly one:

#!/bin/sh

COLOR='yellow'
# strip CR
MACHINE=`echo $MACHINE`

yum check-update > $BBTMP/yum.out 2>&1
EXIT="$?"

[ "$EXIT" = "0" ] && COLOR='green'
egrep -q -i '^(Error|Cannot)' $BBTMP/yum.out && COLOR="red"

( echo status $MACHINE.yum $COLOR `date`
  cat $BBTMP/yum.out ) | $BB $BBDISP @

rm $BBTMP/yum.out


Christoph
-- 
user-92157dbc91bf@xymon.invalid | http://www.df7cb.de/
list Buchan Milne · Wed, 3 Jun 2009 14:03:33 +0200 ·
quoted from Netz-haut - Stephan Seitz
On Wednesday 03 June 2009 09:56:16 netz-haut - stephan seitz wrote:
Hi there,

I'm currently using hobbit/xymon to monitor our hostmachines. Most of them
are Ubuntu/Debian. The debian guys wrote an extension (hobbit-plugins,
/usr/lib/hobbit/client/ext/apt) to get informed about the availability of
updates/security-updates via apt.
As we're going to setup some new Machines with CentOS, I'ld like to ask if
someone already did a similar extension script for yum/rpm?
We're using the attached check on RHEL3/4/5, with support for up2date (on RHEL 
< 5) and support for checking that required channels (named provided as 
commandline argument, only tested with up2date)/repos are available.

Regards,
Buchan