#Setting up nagios plugin for ami check
- copy check_ami.py to your nagios plugin directory
- give executable permission check_ami.py
- copy config file in you nagios plugin directory add your id and key
- change command file and add new command
define command{
command_name check_ami
command_line $USER1$/check_ami.py $ARG1$ $ARG2$ "$ARG3$"
}
- add service in your host configuration or service configuration
define service{
use generic-service ; Name of service template to use
host_name mylocalhost
service_description check ami
check_command check_ami!mycentos!7!us-east-1
}
- Restart nagios