No, it’s not. But use the command without any options for a test. Perhaps, that IP is not the DHCP server. The command does NOT need to have any options in the command line.
./check_dhcp -v
i downloaded and install the latest plugin - nagios-plugins-1.4.3.
i got the same error when running check_dhcp in the libexec directory, ie
./check_dhcp -v
DHCP socket: 3
Error: if_nametoindex error - Device not configured.
however when checking through through the web it show
"Return code of 126 is out of bounds - plugin may be missing" instead
any advice on this? is the plugin error? or something need to be done at nagios configurations files??
most of the files are having -rwxr-xr-x 755. i change the permission from -rwsr-sr-x to 755, i had this error instead
" Error: Could not bind to DHCP socket (port 68)! Check your privileges… "