check_yum issue

Terry td3201 at gmail.com
Thu Jun 3 20:40:19 CEST 2010


On Thu, Jun 3, 2010 at 1:28 PM, Terry <td3201 at gmail.com> wrote:
> Hello,
>
> I am trying to use check_yum:
> http://exchange.nagios.org/directory/Plugins/Uncategorized/Operating-Systems/Linux/Check_Yum/details
>
> It works great from the command line:
> [root at foo ~]# yum --security check-update
> Loaded plugins: dellsysid, rhnplugin, security
> Limiting package lists to security relevant ones
> Needed 4 of 11 packages, for security
>
> rhn-check.noarch
>                         0.4.20-33.el5_5.2
>                                             rhel-x86_64-server-5
> rhn-client-tools.noarch
>                         0.4.20-33.el5_5.2
>                                             rhel-x86_64-server-5
> rhn-setup.noarch
>                         0.4.20-33.el5_5.2
>                                             rhel-x86_64-server-5
> rhn-setup-gnome.noarch
>                         0.4.20-33.el5_5.2
>                                             rhel-x86_64-server-5
> [root at foo ~]# /usr/lib64/nagios/plugins/check_yum
> YUM CRITICAL: 4 Security Updates Available. 7 Non-Security Updates Available
> [root at foo ~]# echo $?
> 2
>
> It returns this from nagios:
> [root at foo ~]# /usr/lib64/nagios/plugins/check_nrpe -H 10.0.0.2 -t 50
> -c check_yum
> YUM OK: 0 Security Updates Available
>
> Here's my NRPE configuration:
> [root at bar ~]# cat /etc/nagios/nrpe.cfg | grep check_yum
>        command[check_yum]=/usr/lib64/nagios/plugins/check_yum
>
> What am I missing here?
>

I think I fail here.  This is a permissions issue as noted in the
description of the plugin.    Anyone doing something similar?  If so,
how is your solution architected?

Thanks!

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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