Hello!
I've made a script that will print in JSON all Hyper-V snapshots.
The output is formatted correctly:
{
"data":
[
{"{#VM}":"SNAPSHOTNAME1"},
{"{#VM}":"SNAPSHOTNAME2"},
{"{#VM}":"SNAPSHOTNAME3"},
]
}
I was struggling to get this to work as Zabbix all the time told me "Value should be a JSON object."
After some testing I noticed that Zabbix Agent doesn't have rights to run any Get-SCVM powershell commands.
I also tried to import the "virtualmachinemanager" snap-in to the script but it doesn't help.
Does anyone have any good ideas how I can overcome this issue?
I've made a script that will print in JSON all Hyper-V snapshots.
The output is formatted correctly:
{
"data":
[
{"{#VM}":"SNAPSHOTNAME1"},
{"{#VM}":"SNAPSHOTNAME2"},
{"{#VM}":"SNAPSHOTNAME3"},
]
}
I was struggling to get this to work as Zabbix all the time told me "Value should be a JSON object."
After some testing I noticed that Zabbix Agent doesn't have rights to run any Get-SCVM powershell commands.
I also tried to import the "virtualmachinemanager" snap-in to the script but it doesn't help.
Does anyone have any good ideas how I can overcome this issue?