client/ext yum update notifier extension script
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: +49 931 2876248
web: www.netz-haut.de <http://www.netz-haut.de/>
registriergericht: amtsgericht würzburg, hra 5054
Re: netz-haut - stephan seitz 2009-06-03 <6B73AB901767CA49B818C7A071E03FAC0CF0CA at exchange.nh.local>
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
cb at df7cb.de | http://www.df7cb.de/
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
participants (3)
-
bgmilne@staff.telkomsa.net
-
cb@df7cb.de
-
s.seitz@netz-haut.de