Skip to content

Instantly share code, notes, and snippets.

@burner1024
Created February 9, 2016 15:39
Show Gist options
  • Save burner1024/f5d2a6f306b9f9ca10ad to your computer and use it in GitHub Desktop.
Save burner1024/f5d2a6f306b9f9ca10ad to your computer and use it in GitHub Desktop.
Dell cpu max temperature item for Zabbix using SuperDoctor5
@echo off
set "cpu_temp=0"
for /f "tokens=2" %%a in ('"C:\Program Files\SuperMicro\SuperDoctor5\sdc.bat" ^| findstr ^CPU ^| findstr /r Temp ^| findstr HIGH') do (
set "cpu_temp=1"
goto done
)
:done
echo %cpu_temp%
exit /b 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment