Answer the question
In order to leave comments, you need to log in
How to control one of the network interfaces?
In windows 2012, there is a zabbix agent, you need to control the second interface (with access to vpn), the presence of pings on a defined. the address. Tell me how to set up a metric in zabbixe for control.
Answer the question
In order to leave comments, you need to log in
Used a PowerShell script to output 0/1
$ip ="192.168.1.1"
$wq = (‘select statuscode from win32_pingstatus where address="’ + $ip + ‘"’)
$res = gwmi –query "$wq"
if ($res.StatusCode –eq 0) {
write-host "1"
} else {
write-host "0"
}
$res = $null
I can make assumptions. I didn't implement it myself.
We make item with such a key.
we form the command so that we get 0 or 1 at the output,
for example:
It seems to work ... or prompt thoughts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question