Well here I will expose how to monitor whether someone used a flash drive on any pc with Windows.
If for some security reason anyone needs to know when someone uses a flash drive, well here it is.
This monitor is designed for PCs with:
not yet for Windows 2000/NT (I had to modify the script)
First of all is the script that detects when someone plugs a flash drive:
Then the user parameter for the windows agent:
Monitor for Zabbix Frontend:

Trigger:

(change FSA_Windows for your template)
Action:

I made it thinking in someone new for zabbix or as they always say " for dummies", just like me
.
I hope you find usefull this check.
Best Regards and happy 2011!
Lopexxx
PD: god bless google translator, my native language is spanish. So apologies for errors.
If for some security reason anyone needs to know when someone uses a flash drive, well here it is.
This monitor is designed for PCs with:
- Windows XP
- Windows Vista
- Windows 7
not yet for Windows 2000/NT (I had to modify the script)
First of all is the script that detects when someone plugs a flash drive:
@echo off
for /f "tokens=1" %%x in ('wmic logicaldisk get caption^, description ^| find /i "extra"') do (GOTO ENCONTRADO)
GOTO EXIT
:ENCONTRADO
ECHO 1
EXIT
:EXIT
ECHO 0
EXIT
for /f "tokens=1" %%x in ('wmic logicaldisk get caption^, description ^| find /i "extra"') do (GOTO ENCONTRADO)
GOTO EXIT
:ENCONTRADO
ECHO 1
EXIT
:EXIT
ECHO 0
EXIT
UserParameter=pendrive.detection,c:\scripts\pendri ve.bat

Trigger:

(change FSA_Windows for your template)
Action:

I made it thinking in someone new for zabbix or as they always say " for dummies", just like me
.I hope you find usefull this check.
Best Regards and happy 2011!
Lopexxx
PD: god bless google translator, my native language is spanish. So apologies for errors.

e incluir capturas de pantalla.
Comment