<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
how about just using sudo to grant the nagios user the suid equivalent
privilege since that's what it was designed for...<br>
<br>
that's what I do with my plugins that need root.<br>
<br>
-h<br>
<pre class="moz-signature" cols="72">Hari Sekhon
</pre>
<br>
<br>
Phil Costelloe wrote:
<blockquote
 cite="midB25A11A2459AD84BA9B8A4DA3D8155327358F6@CADWELL.fit.local"
 type="cite">
  <pre wrap="">dhaval thakar wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I tried with check_icmp,
but the results in "check_icmp: Failed to obtain ICMP socket:
Operation not permitted". i used "chmod 777 check_icmp" but didn't
worked out. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I think check_icmp needs to be owned by root and setuid in order for it
to carry out socket operations.

Try:

chown root check_icmp
chmod u+s check_icmp

Standard warning: you should always understand the consequences before
setting the setuid or setgid bit on a file. A Google search on "setuid"
will turn up plenty of general info.

Phil
 
--------------------------------------------------------

Phil Costelloe
Technical Consultant

   
<a class="moz-txt-link-abbreviated" href="mailto:philc@foundation-it.com">philc@foundation-it.com</a>
<a class="moz-txt-link-freetext" href="http://www.foundation-it.com">http://www.foundation-it.com</a>
Foundation IT
Foundation Court
Old Street
Oare
Hermitage Berkshire RG18 9SE
Switch: +44 (0) 1635 203700
Helpdesk: +44 (0) 800 0121099
DDI: +44 (0) 1635 203719
Fax: +44 (0) 8700 543537
Mobile: +44 (0) 7884 236299

 

--------------------------------------------------------
This message contains confidential information and is intended only for <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>. If you are not <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a> you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required pl
 ease request a hard-copy version.
--------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

  </pre>
</blockquote>
</body>
</html>