Re: Odd Problem with check_yum on one server...

Sean Alderman <[email protected]> Fri, 13 Sep 2013 13:46:16 -0400
Newsgroups gmane.network.nagios.user
Message-ID <CAN39mj1MzJz2rjPnWdMNitoUaF10NPfy-SXvfehWNMmZMm+hPg@mail.gmail.com>
--===============9099094272274481242==
Content-Type: multipart/alternative; boundary=001a11c2b36a6962a804e6476ee8

--001a11c2b36a6962a804e6476ee8
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

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.

[root@test ~]# rpm -qa|grep yum
> yum-3.2.29-40.el6.centos.noarch
> yum-utils-1.1.30-14.el6.noarch
> yum-metadata-parser-1.1.2-16.el6.x86_64
> yum-plugin-fastestmirror-1.1.30-14.el6.noarch
> yum-plugin-security-1.1.30-14.el6.noarch
> [root@test ~]# which yum
> /usr/bin/yum
>

Thanks,


On Fri, Sep 13, 2013 at 11:00 AM, Tech Support <[email protected]>wro=
te:

> It seems to me that yum is simply located somewhere else on that server.
> Try =93which yum=94.****
>
> Regards;****
>
> John****
>
> ** **
>
> *From:* Sean Alderman [mailto:[email protected]]
> *Sent:* Friday, September 13, 2013 10:13 AM
> *To:* Nagios Users List
>
> *Subject:* [Nagios-users] Odd Problem with check_yum on one server...****
>
> ** **
>
> Greetings,****
>
>   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.****
>
> Nagios server reports /usr/bin/yum not found when executing the following
> test:
>
> ****
>
> [root@nagios ~]# sudo -u nagios /usr/lib64/nagios/plugins/check_nrpe -H
> test.example.com -c check_yum -a noarg
> UNKNOWN: /usr/bin/yum cannot be found****
>
> ** **
>
> Over on test.example.com:
>
> ****
>
> [root@test ~]# ps -ef|grep nrpe|grep -v grep
> nrpe     20038     1  0 Sep10 ?        00:00:22 /usr/sbin/nrpe -c
> /etc/nagios/nrpe.cfg -d
> [root@test ~]# sudo -u nrpe /usr/lib64/nagios/plugins/check_yum
> YUM OK: 0 Security Updates Available. 15 Non-Security Updates Available |
> ****
>
>
> ****
>
> Again, I have other CentOS servers monitored using the same check_yum
> command configured on the Nagios server, they all work fine - including t=
he
> Nagios server itself which is monitored through nrpe.
>
> ****
>
> Thank you for your time and consideration, kind regards,****
>
> -- ****
>
> Sean M. Alderman
> Senior Engineer, UDit Systems Integration and Engineering
> University of Dayton
> [email protected]
>
> *"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."*  - BXVI****
>
>
> -------------------------------------------------------------------------=
-----
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=3D51271111&iu=3D/4140/ostg.=
clktrk
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> 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
>



--=20
Sean M. Alderman
Senior Engineer, UDit Systems Integration and Engineering
University of Dayton
300 College Park
Dayton, Ohio 45469-1530
(937) 229-5088
[email protected]

*"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."*  - BXVI

--001a11c2b36a6962a804e6476ee8
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I apologize... I should have pasted that, but I thoug=
ht the fact that I could execute the check_yum script as the nrpe user on t=
he host with the problem would have implied that it functions as expected.=
=A0 Yum is located where we would expect it to be on a standard CentOS mach=
ine.<br>
<br><blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb=
(204,204,204);padding-left:1ex" class=3D"gmail_quote"><span style=3D"font-f=
amily: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<b=
r>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=3D"gmail_extra"><br><br>=
<div class=3D"gmail_quote">On Fri, Sep 13, 2013 at 11:00 AM, Tech Support <=
span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_=
blank">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div link=3D"blue" vlink=3D"purple" lang=3D"=
EN-US"><div><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-fam=
ily:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">It seems to m=
e that yum is simply located somewhere else on that server. Try =93which yu=
m=94.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards;<u></u><u></u></s=
pan></p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:=
&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">John<u></u><u></u=
></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=A0<u></u></span><=
/p><div style=3D"border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0=
in 0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Sean Ald=
erman [mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">s=
[email protected]</a>] <br>
<b>Sent:</b> Friday, September 13, 2013 10:13 AM<br><b>To:</b> Nagios Users=
 List</span></p><div class=3D"im"><br><b>Subject:</b> [Nagios-users] Odd Pr=
oblem with check_yum on one server...<u></u><u></u></div><p></p></div><p cl=
ass=3D"MsoNormal">
<u></u>=A0<u></u></p><div><div><div><div><p class=3D"MsoNormal" style=3D"te=
xt-align:justify">Greetings,<u></u><u></u></p></div><div><div class=3D"h5">=
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt;text-align:justify">=
=A0 I&#39;m hoping someone might be able to provide a hint on this issue.=
=A0 Its strange, it happens only on one of my CentOS 6.4 servers.<u></u><u>=
</u></p>
</div></div></div><div><div class=3D"h5"><p class=3D"MsoNormal" style=3D"te=
xt-align:justify">Nagios server reports /usr/bin/yum not found when executi=
ng the following test:<br><br clear=3D"all"><u></u><u></u></p><p class=3D"M=
soNormal" style=3D"text-align:justify">
<span style=3D"font-family:&quot;Courier New&quot;">[root@nagios ~]# sudo -=
u nagios /usr/lib64/nagios/plugins/check_nrpe -H <a href=3D"http://test.exa=
mple.com" target=3D"_blank">test.example.com</a> -c check_yum -a noarg<br>U=
NKNOWN: /usr/bin/yum cannot be found</span><u></u><u></u></p>
<p class=3D"MsoNormal" style=3D"text-align:justify"><u></u>=A0<u></u></p></=
div></div></div><div><div class=3D"h5"><p class=3D"MsoNormal" style=3D"text=
-align:justify">Over on <a href=3D"http://test.example.com" target=3D"_blan=
k">test.example.com</a>:<br>
<br clear=3D"all"><u></u><u></u></p><p class=3D"MsoNormal" style=3D"text-al=
ign:justify"><span style=3D"font-family:&quot;Courier New&quot;">[root@test=
 ~]# ps -ef|grep nrpe|grep -v grep<br>nrpe=A0=A0=A0=A0 20038=A0=A0=A0=A0 1=
=A0 0 Sep10 ?=A0=A0=A0=A0=A0=A0=A0 00:00:22 /usr/sbin/nrpe -c /etc/nagios/n=
rpe.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=3D"MsoNormal" style=3D"text-align:justify"><br cl=
ear=3D"all">
<u></u><u></u></p><div><div><div><div><p class=3D"MsoNormal" style=3D"margi=
n-bottom:12.0pt;text-align:justify">Again, I have other CentOS servers moni=
tored using the same check_yum command configured on the Nagios server, the=
y all work fine - including the Nagios server itself which is monitored thr=
ough nrpe.<br>
<br><u></u><u></u></p></div><div><p class=3D"MsoNormal" style=3D"text-align=
:justify">Thank you for your time and consideration, kind regards,<u></u><u=
></u></p></div><div><p class=3D"MsoNormal" style=3D"text-align:justify">-- =
<u></u><u></u></p>
<div><p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt;text-align:justif=
y">Sean M. Alderman<br>Senior Engineer, UDit Systems Integration and Engine=
ering<br>University of Dayton<br><a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a><br>
<br><i>&quot;We are not some casual and meaningless product of evolution. E=
ach 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.&quot;</i>=A0 - 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=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D51271111&amp;iu=
=3D/4140/ostg.clktrk" target=3D"_blank">http://pubads.g.doubleclick.net/gam=
pad/clk?id=3D51271111&amp;iu=3D/4140/ostg.clktrk</a><br>___________________=
____________________________<br>

Nagios-users mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]=
urceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/nagios-users" targe=
t=3D"_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><=
br>
::: Please include Nagios version, plugin version (-v) and OS when reportin=
g any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br><=
/blockquote></div><br><br clear=3D"all"><br>-- <br><div dir=3D"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=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a><br><br><i>&quot;We are not some casual and=
 meaningless product of evolution. Each=20
of us is the result of a thought of God. Each of us is willed. Each of=20
us is loved. Each of us is necessary.&quot;</i>=A0 - BXVI<br><br></div>
</div>

--001a11c2b36a6962a804e6476ee8--


--===============9099094272274481242==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
--===============9099094272274481242==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Nagios-users mailing list
[email protected]
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
--===============9099094272274481242==--