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

"Tech Support" <[email protected]> Fri, 13 Sep 2013 11:00:56 -0400
Newsgroups gmane.network.nagios.user
Message-ID <004801ceb092$0d0aabc0$27200340$@us>
This is a multi-part message in MIME format.

--===============2799909225966629122==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0049_01CEB070.85F90BC0"
Content-Language: en-us

This is a multi-part message in MIME format.

------=_NextPart_000_0049_01CEB070.85F90BC0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

It seems to me that yum is simply located somewhere else on that server. Try
"which yum".

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 the
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


------=_NextPart_000_0049_01CEB070.85F90BC0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;}
.MsoPapDefault
	{mso-style-type:export-only;
	text-align:justify;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>It seems to me that yum is simply located somewhere else on that =
server. Try &#8220;which yum&#8221;.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Regards;<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>John<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><div =
style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
Sean Alderman [mailto:[email protected]] <br><b>Sent:</b> Friday, =
September 13, 2013 10:13 AM<br><b>To:</b> Nagios Users =
List<br><b>Subject:</b> [Nagios-users] Odd Problem with check_yum on one =
server...<o:p></o:p></span></p></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><div><div><p =
class=3DMsoNormal =
style=3D'text-align:justify'>Greetings,<o:p></o:p></p></div><p =
class=3DMsoNormal =
style=3D'margin-bottom:12.0pt;text-align:justify'>&nbsp; I'm hoping =
someone might be able to provide a hint on this issue.&nbsp; Its =
strange, it happens only on one of my CentOS 6.4 =
servers.<o:p></o:p></p></div><p class=3DMsoNormal =
style=3D'text-align:justify'>Nagios server reports /usr/bin/yum not =
found when executing the following test:<br><br =
clear=3Dall><o:p></o:p></p><p class=3DMsoNormal =
style=3D'text-align:justify'><span style=3D'font-family:"Courier =
New"'>[root@nagios ~]# sudo -u nagios =
/usr/lib64/nagios/plugins/check_nrpe -H <a =
href=3D"http://test.example.com">test.example.com</a> -c check_yum -a =
noarg<br>UNKNOWN: /usr/bin/yum cannot be found</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'text-align:justify'><o:p>&nbsp;</o:p></p></div><p =
class=3DMsoNormal style=3D'text-align:justify'>Over on <a =
href=3D"http://test.example.com">test.example.com</a>:<br><br =
clear=3Dall><o:p></o:p></p><p class=3DMsoNormal =
style=3D'text-align:justify'><span style=3D'font-family:"Courier =
New"'>[root@test ~]# ps -ef|grep nrpe|grep -v =
grep<br>nrpe&nbsp;&nbsp;&nbsp;&nbsp; 20038&nbsp;&nbsp;&nbsp;&nbsp; =
1&nbsp; 0 Sep10 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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><o:p></o:p></p><p =
class=3DMsoNormal style=3D'text-align:justify'><br =
clear=3Dall><o:p></o:p></p><div><div><div><div><p class=3DMsoNormal =
style=3D'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><o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'text-align:justify'>Thank you for your time and consideration, =
kind regards,<o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'text-align:justify'>-- <o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'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=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a><br><br><i>&quot;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.&quot;</i>&nbsp; - =
BXVI<o:p></o:p></p></div></div></div></div></div></div></div></body></htm=
l>
------=_NextPart_000_0049_01CEB070.85F90BC0--



--===============2799909225966629122==
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
--===============2799909225966629122==
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
--===============2799909225966629122==--