easysnmp
I write the two scriptsmeru_AvailabilityStatus.py
and meru_OperationalState.py
: they takeas command line arguments the address of the meru controller, its SNMPcommunity and the AP index, they return a proper return code and ashort message. I also configure two custom commands in icinga thatruns this scripts.generic-host
template I create a newtemplate meru-AP
and the apply rules for the two services adding thefollowing lines to the configuration:merudiscovery.py
) that gets the listof all APs from the meru controller and from icinga, it compare themand update the icinga object using the APIs. Since it's so easy to doit I also get other propreties from the controller and add them asvars to icinga (for example the hwtype, the building,...).