D
D
Dmitry Filyushin2015-05-08 13:07:32
Zabbix
Dmitry Filyushin, 2015-05-08 13:07:32

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

2 answer(s)
D
Dmitry Filyushin, 2015-05-08
@Filyushin

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

Added it to the agent as a custom parameter.
Any other suggestions?
Maybe there are other solutions?

K
Konstantin Luntovsky, 2015-06-15
@Conekt

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 question

Ask a Question

731 491 924 answers to any question