title: Grant sudo permissions for nrpe to run the check as root
body: <p>When I run <code>service httpd status</code> like root user I get <code>httpd (pid  2932) is running...</code> which is like expected.</p>
  
  <p>Now, when I <code>su nrpe</code> and run the same cmd <code>service httpd status</code> I get <code>httpd dead but subsys locked</code>. </p>
  
  <p>I'm kind of new to the Linux world but to me this smells like <code>nrpe</code> doesn't have the permissions to run this cmd so it gives mentioned output.</p>
  
  <p>How can I grant sudo permissions to nrpe so it can run chis cmd as root?</p>
  
  <p>I have a nagios plugin that checks httpd status and it gives <code>httpd dead but subsys locked</code> which is not what I need.</p>
  
  <p>Thanks</p>