Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
arigaud
byarigaud, November 27, 2017
1 of 1 people found this review helpful
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") {
Overall IML entries isn't found by default check
line 521 replaced by
if ($_[3] eq "cpqHeEventLogCondition") {
byarigaud, June 30, 2016
https://github.com/arigaud/nagios-plugins/blob/master/check_ad.vbs
byarigaud, July 18, 2014
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
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