It appears that root has permissions but whatever user the nagios instance is running doesn't. Start there<div>g.;</div><div><br><br><div class="gmail_quote">On Thu, Jun 3, 2010 at 11:28 AM, Terry <span dir="ltr"><<a href="mailto:td3201@gmail.com">td3201@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
I am trying to use check_yum:<br>
<a href="http://exchange.nagios.org/directory/Plugins/Uncategorized/Operating-Systems/Linux/Check_Yum/details" target="_blank">http://exchange.nagios.org/directory/Plugins/Uncategorized/Operating-Systems/Linux/Check_Yum/details</a><br>

<br>
It works great from the command line:<br>
[root@foo ~]# yum --security check-update<br>
Loaded plugins: dellsysid, rhnplugin, security<br>
Limiting package lists to security relevant ones<br>
Needed 4 of 11 packages, for security<br>
<br>
rhn-check.noarch<br>
                         0.4.20-33.el5_5.2<br>
                                             rhel-x86_64-server-5<br>
rhn-client-tools.noarch<br>
                         0.4.20-33.el5_5.2<br>
                                             rhel-x86_64-server-5<br>
rhn-setup.noarch<br>
                         0.4.20-33.el5_5.2<br>
                                             rhel-x86_64-server-5<br>
rhn-setup-gnome.noarch<br>
                         0.4.20-33.el5_5.2<br>
                                             rhel-x86_64-server-5<br>
[root@foo ~]# /usr/lib64/nagios/plugins/check_yum<br>
YUM CRITICAL: 4 Security Updates Available. 7 Non-Security Updates Available<br>
[root@foo ~]# echo $?<br>
2<br>
<br>
It returns this from nagios:<br>
[root@foo ~]# /usr/lib64/nagios/plugins/check_nrpe -H 10.0.0.2 -t 50<br>
-c check_yum<br>
YUM OK: 0 Security Updates Available<br>
<br>
Here's my NRPE configuration:<br>
[root@bar ~]# cat /etc/nagios/nrpe.cfg | grep check_yum<br>
        command[check_yum]=/usr/lib64/nagios/plugins/check_yum<br>
<br>
What am I missing here?<br>
<br>
------------------------------------------------------------------------------<br>
ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit.  See the prize list and enter to win:<br>
<a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</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>
</blockquote></div><br><br clear="all"><br>-- <br>Gary Every<br>"Pay it Forward!"<br><br>
</div>