Build precise queries to find exactly what you need
Press ESC to close
@arigaud
Favorites1
Views0
Projects3
Nice plugin ! But see my request on github https://github.com/lairsdragon/check_hp Overall IML entries isn't found by default check line 521 replaced by if ($_[3] eq "cpqHeEventLogCondition") {
Reviewed 8 years ago
Here is a new version. Notes : Added a function to check exit value of commands (check_for_errors was useless). # Added debug option to displaying navicli return. # Added output option (nagios states, one line stdout for faults only) # Added Timeout option, default is 10 sec.
Reviewed 10 years ago
Excellent ! Add check windows version, tested ont w2k, w2003, 2008, 7 (not in xp) for /f "tokens=2 delims=[]" %%x in ('ver') do set cmdver=%%x set cmdver=%cmdver:Version =% for /f "tokens=1,2,3* delims=." %%g in ("%cmdver%") do ( set major=%%g set minor=%%h set build=%%i ) rem Windows 3.1,95,95 OSR2,NT 4.0,98,98 SE,ME IF %major% LEQ 4 goto ver_false rem Windows 2000 echo %cmdver% | FINDSTR /C:"5.0" > nul IF %ERRORLEVEL% EQU 0 goto ver_false :ver_false echo UNKNOWN: OS Version not supported [%cmdver%] exit /b 3 heklp source : http://ss64.org/viewtopic.php?pid=3151#p3151
Reviewed 11 years ago
https://github.com/arigaud/nagios-plugins/blob/master/check_ad.vbs
Reviewed 9 years ago