I’ve downloaded the script from nagiosexchange and it refuses to give me an output error code (I’m wrong, there is errorcode output, just “no output” in the status information in nagios). It does however report correctly the FILECOUNT, FOLDERSIZE, and WRITEABLE options for the script, if ran by command line.
nagiosexchange.org/Windows.4 … nagext_pi1[p_view]=38
Does anyone else have this same trouble or can you get it to work? I have no clue on perl scripting.
./check_smb_shares.pl -S FILECOUNT -U nagios -P somepassword -D somedomain -H somehost -A /Vol1/DPS-ADS/Bus_Sys/ASC -w 0 -c 5
4 Items (2 Directorys, 2 Files, 0 Links, 115 ) in smb://somehost//Vol1/DPS-ADS/Bus_Sys/ASC | ‘FILECOUNT’=4;0;5