check disk_write?

Hari Sekhon hpsekhon at googlemail.com
Wed Feb 27 15:55:42 CET 2008


Oliver Klein wrote:
> Hi
>
> perfect this is exactly what iŽm looking for but I load the script on the remote server and define command I the nrpe.cfg on the remote host.
> On the nagios server I define the disk_checkrw in commands.cfg and also in the host.cfg .
>
>
> # 'check_diskrw' commands.cfg definition
> define command{
>         command_name    check_diskrw
>         command_line    $USER1$/check_diskrw
>         }
>
> # command definition in nrpe.cfg
> command[check_diskrw]=/usr/local/nagios/libexec/check_diskrw
>
> I use the the command on console it wrote "OK" in the nagios webinterface I got "write error on" 
> What I had missing? maybe I have to touch a file? sorry but iŽm a little bit confused today.
>   
You're probably trying it on the command line as root and nrpe is 
running it as a regular user that may not have permission to write that 
location....

Either that or your nrpe.cfg is wrong.

-h

-- 
Hari Sekhon


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list