[Nagiosplug-devel] [ nagiosplug-New Plugins-939170 ] check_yum - Check if YUM/RPM based system is up-to-date

SourceForge.net noreply at sourceforge.net
Wed Aug 4 12:27:05 CEST 2004


New Plugins item #939170, was opened at 2004-04-21 11:23
Message generated for change (Comment added) made by g_krist
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880

Category: System monitor
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: G. Krist (g_krist)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_yum - Check if YUM/RPM based system is up-to-date

Initial Comment:
check_yum does a check to see if a system is up-to-date
with all updates/patches. It's using the "yum
check-update" command on either local host or remote
hosts (using nrpe). It has 3 levels of return text:
1) Server is up-to-date              (no updates available)
2) Server is NOT up-to-date, xxx packages etc (There
are updates, will be a Criticical error)
3) Something wrong with yum etc etc (something is wrong
with yum, will be a warning)

IMHO there is no need for -w or -c parameters not even
possible i think :D


note:
I would like to see some feedback, i'm already using it
for like 10 servers, it worked oke here. We run it once
a day.

----------------------------------------------------------------------

>Comment By: G. Krist (g_krist)
Date: 2004-08-04 21:26

Message:
Logged In: YES 
user_id=1025858

Oke seems I forgot something to tell. Indeed check_yum
doesn't work correct. Why? nrpe remote can't run yum
check-update because it needs root for that. The problem
only occurs when there are new header files to be downloaded.

I found a work-a-round for it (he it's better then playing
with suid!).
- open/create /etc/cron.hourly/yumupdatedb
- put the following lines of text in it:
#!/bin/sh
/usr/bin/yum check-update
- save file
- make it +x (executable)

This way it will work!

@g_force
I could make an apt one, but i don't have apt boxes laying
around. You can help me with that?



----------------------------------------------------------------------

Comment By: Garry W.  Cook (g_force)
Date: 2004-08-04 20:25

Message:
Logged In: YES 
user_id=197417

I can see a need for -w and -c. Perhaps I want to know when 
updated 'Frozen Bubble' packages are available, but don't 
need to update them right away. I might want to pass a list 
of such apps to the -w flag.
However, when Apache or OpenSSH packages are out of 
date, I would want to generate a critical message, as there 
could be security issues on my server that need to be 
updated right away. So, these would be passed to the -c flag.
Perhaps nothing would need to be passed to -w, only -c, 
anything not passed to -c would default to warning. Or 
perhaps both could be specified, and anything else would 
generate an unknown?

Just some thoughts... I don't even use Yum. I would however 
be interested in seeing a similar plugin for APT. Is this 
available or in the works? I'm guessing that it wouldn't be too 
difficult to convert what you have for Yum, which I might 
tackle if I get some spare time and can't find an existing 
plugin. Perhaps you could make your plugin accept an 
argument to check Yum or APT, depending on user 
preferences?

----------------------------------------------------------------------

Comment By: Eric Gunnett (egunnett)
Date: 2004-08-04 20:10

Message:
Logged In: YES 
user_id=1039116

Have added this to 40 servers. Found that I have 2 RPMs to 
be updated and it is still saying that the servers are okay and 
have not updates? 
Did not see any flags to pass to the module.

-Eric


----------------------------------------------------------------------

Comment By: G. Krist (g_krist)
Date: 2004-05-08 09:46

Message:
Logged In: YES 
user_id=1025858

Oke somehow check_yum was always reporting that there was 1
package to be updated (IF the system was not up2date
ofcourse). I fixed that in this release.

----------------------------------------------------------------------

Comment By: G. Krist (g_krist)
Date: 2004-04-21 17:20

Message:
Logged In: YES 
user_id=1025858

0.3 is using the exit codes from yum now!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880




More information about the Devel mailing list