[Nagiosplug-help] Regarding check_disk

Teemu Järvenpää teemu.jarvenpaa at hamk.fi
Sat Nov 29 12:15:32 CET 2008


I solved my problem with Suse machine. All I had to do was to enable sudo for nrpe, and give it nopassword right to execute on check_disk. After restarting daemon all worked fine. 

Did this by uncommenting on nrpe.conf this line


and givin the nagios user sudo right to libexec/check_disk in /etc/sudoers

nagios          ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/cehck_disk

-Teemu J-

----- Original Message ----- 
  From: Pak, Dmitry (dmpa) 
  To: Nagios Plugin Help List 
  Sent: Saturday, 29 November 2008 8:59 p.m.
  Subject: Re: [Nagiosplug-help] Regarding check_disk

  Actually I did ran commands under root, until you've advised to su to Nagios user (completely forgot about it!).

  Now I did all the checks logged as Nagios users, and I have same results - where it's working - it's working, others still don't.

  Could it be somehow related to ssh or probably NIS configuration (since I do have Nagios user created in NIS)?

  How does check_disk plugin work? Does it use "df" cmd or somewhat else?
  Yours faithfully, 
  Dmitry Pak 
  /usr/bin/ - *NIX+Backup Team 

More information about the Help mailing list