Hi,
i have a qustion. I'm trying to achieve monitoring Hyper-V replication with zabbix but nothing what i have tried didn't work.
i did:
write in zabbix_agentd.conf
Userparameter=vm.state,powershell,c:\test.ps1
and contecnt in script is:
$Health = Get-VMReplication
foreach($State in $Health){
if($state.Health -match "Normal"){
$output = 1
}else{
$output = 1
}
}
write-host $output
i get ZBX_NOTSUPPORTED when running zabbix_get -s IP -k vm.state from zabbix server
for testing purposes i have tried to modify last line to write-host "1"
and i get value. after digging in i noticed that i'm unable to run any powershell get- command.
i have tried this:
$Health = "BLABLABLA"
write-host $output
i got
BLABLABLA
so i'm i missing something or is just a bug. version of server and zabbix agent is 2.2.2
any userful hints?
i have a qustion. I'm trying to achieve monitoring Hyper-V replication with zabbix but nothing what i have tried didn't work.
i did:
write in zabbix_agentd.conf
Userparameter=vm.state,powershell,c:\test.ps1
and contecnt in script is:
$Health = Get-VMReplication
foreach($State in $Health){
if($state.Health -match "Normal"){
$output = 1
}else{
$output = 1
}
}
write-host $output
i get ZBX_NOTSUPPORTED when running zabbix_get -s IP -k vm.state from zabbix server
for testing purposes i have tried to modify last line to write-host "1"
and i get value. after digging in i noticed that i'm unable to run any powershell get- command.
i have tried this:
$Health = "BLABLABLA"
write-host $output
i got
BLABLABLA
so i'm i missing something or is just a bug. version of server and zabbix agent is 2.2.2
any userful hints?
Comment