Monitoring Azure resources with Zabbix

Comments  

Kingsley
# zabbix monitor from on-prem to cloudKingsley 2018-08-07 17:56
Is it possible to monitor azure resources (i.e server VMs) from on premises zabbix server
Reply | Reply with quote | Quote
Super User
# RE: zabbix monitor from on-prem to cloudSuper User 2018-08-10 16:25
Quoting Kingsley:
Is it possible to monitor azure resources (i.e server VMs) from on premises zabbix server


Hi!

Yep, it's possible, there is no any difference.
Reply | Reply with quote | Quote
Dragan Vucanovic
# Problem with running scripDragan Vucanovic 2018-08-08 20:37
Powershell script runs fine on Windows but on zabbbix server no results, only get {"data":}, and how did you manage to run sh script, just replaced ps1 with sh, i tried it but got bunch of errors, installed powershell following this guide:https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6
Reply | Reply with quote | Quote
Super User
# RE: Problem with running scripSuper User 2018-08-10 16:33
Quoting Dragan Vucanovic:
Powershell script runs fine on Windows but on zabbbix server no results, only get {"data":}, and how did you manage to run sh script, just replaced ps1 with sh, i tried it but got bunch of errors, installed powershell following this guide:https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6


Hi!

I believe you're talking about discovery script...

1. I think the problem, when script's working on Windows, but not on Linux, is somewhere around 56 and 66 strings:
$sql_servers = (Invoke-RestMethod -Uri $uri -Headers $azure_header -Method Get -ErrorAction Stop).content.properties;

I've faced some issues and played with data returned from API - for some reason there were no "content.properties" - just echo $sql_servers and check if you're getting correct data.

2.
How to run ps1 from sh:

pwsh /usr/lib/zabbix/externalscripts/azure.discovery.sql.databases.ps1 $1 $2
Reply | Reply with quote | Quote
Dragan Vucanovic
# RE: Problem with running scripDragan Vucanovic 2018-08-11 20:40
yes, when testing on windows had to replace content.properties with Value, and when pasted it on Linux forgot to revert it back, all works now
Reply | Reply with quote | Quote

Add comment


Security code
Refresh