Re: [Nagios-users] Odd Problem with check_yum on one server...

2013-09-16 Thread Andreas Ericsson
On 2013-09-13 19:46, Sean Alderman wrote:
 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.


Then it seems like you're running nrpe in a chroot jail or a limited
container, where /usr/bin/yum doesn't exist.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Odd Problem with check_yum on one server...

2013-09-16 Thread Sean Alderman
It would appear to be an selinux problem.


On Mon, Sep 16, 2013 at 4:43 AM, Andreas Ericsson a...@op5.se wrote:

 On 2013-09-13 19:46, Sean Alderman wrote:

 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.


 Then it seems like you're running nrpe in a chroot jail or a limited
 container, where /usr/bin/yum doesn't exist.

 --
 Andreas Ericsson   andreas.erics...@op5.se
 OP5 AB www.op5.se
 Tel: +46 8-230225  Fax: +46 8-230231

 Considering the successes of the wars on alcohol, poverty, drugs and
 terror, I think we should give some serious thought to declaring war
 on peace.




-- 
Sean M. Alderman
Senior Engineer, UDit Systems Integration and Engineering
University of Dayton
300 College Park
Dayton, Ohio 45469-1530
(937) 229-5088
salderm...@udayton.edu

*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
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@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

[Nagios-users] Odd Problem with check_yum on one server...

2013-09-13 Thread Sean Alderman
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
salderm...@udayton.edu

*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=5127iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Odd Problem with check_yum on one server...

2013-09-13 Thread Tech Support
It seems to me that yum is simply located somewhere else on that server. Try
which yum.

Regards;

John

 

From: Sean Alderman [mailto:salderm...@udayton.edu] 
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
salderm...@udayton.edu

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=5127iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Odd Problem with check_yum on one server...

2013-09-13 Thread Sean Alderman
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 supp...@voipbusiness.uswrote:

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

 Regards;

 John

 ** **

 *From:* Sean Alderman [mailto:salderm...@udayton.edu]
 *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
 salderm...@udayton.edu

 *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=5127iu=/4140/ostg.clktrk
 ___
 Nagios-users mailing list
 Nagios-users@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




-- 
Sean M. Alderman
Senior Engineer, UDit Systems Integration and Engineering
University of Dayton
300 College Park
Dayton, Ohio 45469-1530
(937) 229-5088
salderm...@udayton.edu

*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=5127iu=/4140/ostg.clktrk___
Nagios-users mailing list
Nagios-users@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