<div dir="ltr"><div>I apologize... I should have pasted that, but I thought the fact that I could execute the check_yum script as the nrpe user on the host with the problem would have implied that it functions as expected.  Yum is located where we would expect it to be on a standard CentOS machine.<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-family:courier new,monospace">[root@test ~]# rpm -qa|grep yum<br>yum-3.2.29-40.el6.centos.noarch<br>
yum-utils-1.1.30-14.el6.noarch<br>yum-metadata-parser-1.1.2-16.el6.x86_64<br>yum-plugin-fastestmirror-1.1.30-14.el6.noarch<br>yum-plugin-security-1.1.30-14.el6.noarch<br>[root@test ~]# which yum<br>/usr/bin/yum</span><br>
</blockquote><br></div>Thanks,<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 11:00 AM, Tech Support <span dir="ltr"><<a href="mailto:support@voipbusiness.us" target="_blank">support@voipbusiness.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It seems to me that yum is simply located somewhere else on that server. Try “which yum”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Regards;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">John<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Sean Alderman [mailto:<a href="mailto:salderman1@udayton.edu" target="_blank">salderman1@udayton.edu</a>] <br>
<b>Sent:</b> Friday, September 13, 2013 10:13 AM<br><b>To:</b> Nagios Users List</span></p><div class="im"><br><b>Subject:</b> [Nagios-users] Odd Problem with check_yum on one server...<u></u><u></u></div><p></p></div><p class="MsoNormal">
<u></u> <u></u></p><div><div><div><div><p class="MsoNormal" style="text-align:justify">Greetings,<u></u><u></u></p></div><div><div class="h5"><p class="MsoNormal" style="margin-bottom:12.0pt;text-align:justify">  I'm hoping someone might be able to provide a hint on this issue.  Its strange, it happens only on one of my CentOS 6.4 servers.<u></u><u></u></p>
</div></div></div><div><div class="h5"><p class="MsoNormal" style="text-align:justify">Nagios server reports /usr/bin/yum not found when executing the following test:<br><br clear="all"><u></u><u></u></p><p class="MsoNormal" style="text-align:justify">
<span style="font-family:"Courier New"">[root@nagios ~]# sudo -u nagios /usr/lib64/nagios/plugins/check_nrpe -H <a href="http://test.example.com" target="_blank">test.example.com</a> -c check_yum -a noarg<br>UNKNOWN: /usr/bin/yum cannot be found</span><u></u><u></u></p>
<p class="MsoNormal" style="text-align:justify"><u></u> <u></u></p></div></div></div><div><div class="h5"><p class="MsoNormal" style="text-align:justify">Over on <a href="http://test.example.com" target="_blank">test.example.com</a>:<br>
<br clear="all"><u></u><u></u></p><p class="MsoNormal" style="text-align:justify"><span style="font-family:"Courier New"">[root@test ~]# ps -ef|grep nrpe|grep -v grep<br>nrpe     20038     1  0 Sep10 ?        00:00:22 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d<br>
[root@test ~]# sudo -u nrpe /usr/lib64/nagios/plugins/check_yum <br>YUM OK: 0 Security Updates Available. 15 Non-Security Updates Available | </span><u></u><u></u></p><p class="MsoNormal" style="text-align:justify"><br clear="all">
<u></u><u></u></p><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt;text-align:justify">Again, I have other CentOS servers monitored using the same check_yum command configured on the Nagios server, they all work fine - including the Nagios server itself which is monitored through nrpe.<br>
<br><u></u><u></u></p></div><div><p class="MsoNormal" style="text-align:justify">Thank you for your time and consideration, kind regards,<u></u><u></u></p></div><div><p class="MsoNormal" style="text-align:justify">-- <u></u><u></u></p>
<div><p class="MsoNormal" style="margin-bottom:12.0pt;text-align:justify">Sean M. Alderman<br>Senior Engineer, UDit Systems Integration and Engineering<br>University of Dayton<br><a href="mailto:salderman1@udayton.edu" target="_blank">salderman1@udayton.edu</a><br>
<br><i>"We are not some casual and meaningless product of evolution. Each of us is the result of a thought of God. Each of us is willed. Each of us is loved. Each of us is necessary."</i>  - BXVI<u></u><u></u></p>
</div></div></div></div></div></div></div></div></div></div><br>------------------------------------------------------------------------------<br>
How ServiceNow helps IT people transform IT departments:<br>
1. Consolidate legacy IT systems to a single system of record for IT<br>
2. Standardize and globalize service processes across IT<br>
3. Implement zero-touch automation to replace manual, redundant tasks<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk</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><div dir="ltr">Sean M. Alderman<br>Senior Engineer, UDit Systems Integration and Engineering<br>
University of Dayton<br>300 College Park<br>Dayton, Ohio 45469-1530<br><a>(937) 229-5088</a><br><a href="mailto:salderman1@udayton.edu" target="_blank">salderman1@udayton.edu</a><br><br><i>"We are not some casual and meaningless product of evolution. Each 
of us is the result of a thought of God. Each of us is willed. Each of 
us is loved. Each of us is necessary."</i>  - BXVI<br><br></div>
</div>