issue 2 check remote server free disk space using check_nrpe

Hi,
I am facing an issue to check Remote server's free disk space of a particular 'Path' using "check_nrpe" plugin.
I used below command to check the the free disk space for current logged in server and got the success --
./check_disk -w 20% -c 10% -p /var
( output --> DISK WARNING - free space: /var 918 MB (19% inode=66%);| /var=3737MB;3928;4419;0;4911)
However when I am trying to check the same (using check_nrpe) for other remote servers from my current logged in server using below command I am getting error message as " ./check_nrpe: invalid option -- 'w' Incorrect command line arguments supplied"
Command ---> ./check_nrpe -H xyz.com -w 20% -c 20% -p /var
I tried below command also but getting error message as "CHECK_NRPE: Socket timeout after 10 seconds."
Command --> ./check_nrpe -H xyz.com
I tried below command also but "Socket timeout" error is coming after 10 seconds.
Command --> ./check_nrpe -H xyz.com -c check_dm-o 'warning=free<20%' 'critical=free<10%' show-all
Appreciate all your extended help.
Regards
Debashis
I am facing an issue to check Remote server's free disk space of a particular 'Path' using "check_nrpe" plugin.
I used below command to check the the free disk space for current logged in server and got the success --
./check_disk -w 20% -c 10% -p /var
( output --> DISK WARNING - free space: /var 918 MB (19% inode=66%);| /var=3737MB;3928;4419;0;4911)
However when I am trying to check the same (using check_nrpe) for other remote servers from my current logged in server using below command I am getting error message as " ./check_nrpe: invalid option -- 'w' Incorrect command line arguments supplied"
Command ---> ./check_nrpe -H xyz.com -w 20% -c 20% -p /var
I tried below command also but getting error message as "CHECK_NRPE: Socket timeout after 10 seconds."
Command --> ./check_nrpe -H xyz.com
I tried below command also but "Socket timeout" error is coming after 10 seconds.
Command --> ./check_nrpe -H xyz.com -c check_dm-o 'warning=free<20%' 'critical=free<10%' show-all
Appreciate all your extended help.
Regards
Debashis