Hello, so I'm newbie IT support intern. Have some learning tasks to do. Task is quite simple, cause I'm learning powershell and little bit of zabbix, I have an task to create some kind of powershell script which sends trigger to zabbix. Firstly I'm just thinking of making simple script, which checks if USB is connected to PC, if not it should trigger zabbix, I'm totally newbie to zabbix so not sure how triggers works, is it even possible to do such thing like I said? Let's say here is my simple script:
$usb=Get-WmiObject Win32_LogicalDisk -filter "DeviceID = 'E:' "
if(!$usb)
{
}
I can create like scheduled task to check it every 30minutes or so, but how to send trigger to zabbix when the script runs and the USB is removed? Maybe there are easier options, but I need to do it using Powershell. Any help is appreciated.
$usb=Get-WmiObject Win32_LogicalDisk -filter "DeviceID = 'E:' "
if(!$usb)
{
}
I can create like scheduled task to check it every 30minutes or so, but how to send trigger to zabbix when the script runs and the USB is removed? Maybe there are easier options, but I need to do it using Powershell. Any help is appreciated.
Comment