Azure Monitoring - Realtime example

Hi Team,

icingaweb2-module-azure/README.md at master · credativ/icingaweb2-module-azure (github.com) - I have installed the azure module and can see the objects on ICINGA. I am looking for help in converting this information into monitors. Can someone pls help here -

1 Like

This module extends the Directors Import & Sync.
You will first need to create an import source, like the modules github page describes, e.g. for virtual machines.

After this you need to create a sync rule that converts the objects from the import source into icinga objects, like hosts.

In the import source you can modify the retrieved data.
In the sync rule you and information from your import source to the created object, like IP address to the address field, or the operating system to a custom variable os.

The Directors doc page has an example for importing windows servers from an AD into icinga. That shows you the connection between the import source and the sync rule.
https://icinga.com/docs/icinga-director/latest/doc/70-Import-and-Sync/

Thank You. The sync job is failing with error " Attribute ‘check_command’: Attribute must not be empty". However the error is straight forward but how can I assign the check command to large group of Azure objects that are being imported to ICINGA. Pls advise.

The check command should be set in the host template. After that use the template in your sync rule when creating the host objects.

Thank you @log1c this insight. this is useful for me