Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7917523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:10:46+00:00 2026-06-03T15:10:46+00:00

Im trying to debug a nagios plugin (check_aacraid.py) that uses NRPE. The system in

  • 0

Im trying to debug a nagios plugin (check_aacraid.py) that uses NRPE. The system in question is a new setup CentOS 6.2 fileserver.

The command that appears to be giving me trouble is:

for line in Popen(["/usr/bin/sudo", "/usr/bin/arcconf", "GETCONFIG", "1", "LD"],
                  stdin=PIPE, stdout=PIPE, close_fds=True).stdout:

If I run the script as the ‘nagios’ user it works fine. If it gets called from NRPE/XINETD it fails (NRPE reports “Unable to read output” – usu indicates an error).

I used strace to watch the output of xinetd and found this:

7706  execve("/usr/bin/sudo", ["/usr/bin/sudo", "/usr/bin/arcconf", "GETCONFIG", "1", "AD"], [/* 15 vars */]) = -1 EACCES (Permission denied)

Im trying to figure out if its a problem with:
-python
-sudo
-nagios
-xinetd
-other

I’ve trolled about for issues with sudo and have done the std things ( comment out ‘requiretty’, set path, add nagios user with ‘NOPASSWD’ ). Haven’t found the problem yet.

Other commands run fine via NRPE (‘check_user’, etc).

Note: this is a published, established plugin for nagios. I’ve done something wrong on this system such that it isn’t working.

Suggestions?

Answers to questions:
1) I can run the app if I login as ‘nagios’.
2) Using ‘visudo’ I have this entry: ‘nagios ALL=(ALL) NOPASSWD:ALL’
– yes its a security hole. I will tighten it up when I get this thing working.
3) The permissions for /usr/bin/sudo are —s–x–x. 2 root root 215144 May 9 23:59 /usr/bin/sudo

It appears that SELinux is the problem. When I ‘echo 0 > /selinux/enforce’ then the app runs properly. Now to figure out how to work with it instead of around it. @Josh – post this as an answer and I’ll happily accept it!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:10:47+00:00Added an answer on June 3, 2026 at 3:10 pm

    It sounds like SELinux is the problem. If executing sudo from xinetd gets a permission denied error and executing it outside of xinetd is succeeding, then it seems that something like SELinux might be enforcing a policy that denies it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to debug a binary that uses a lot of pointers. Sometimes for
I'm trying to debug a cons script, and the problem I'm having is that
I am trying to debug a JavaScript script that gets read in a Firefox
Trying to debug something that basically .trim()'s, .val()'s and .length's a textarea input as
Im trying to debug the following code using System; public class Parent { string
I'm trying to debug an Outlook 2007 VBA script that's fired by a rule.
I'm trying to debug a rest/json service that i build using Jersey and Amazon
I am trying to debug my app while connected to the system through USB
We are trying to debug some legacy code. We have found that we are
I'm trying to debug a Windows program compiled using MinGW's gcc that only ever

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.