I have defined _AWS_Instance ID in a host entry
(I've removed the hostname/ IP etc. in this listing)
Code: Select all
define host {
host_name ServerA
_AWS_InstanceID i-c58a9a0a
register 1
}Code: Select all
define service {
host_name ServerA
service_description Check Instance Scheduled Events
check_command check_instance_status!asg-txt!$_HOSTAWS_InstanceID$!$HOSTNAME$!!!!!
register 1
}Code: Select all
define command {
command_name check_instance_status
command_line $USER3$/AWS/check_instance_status.sh $ARG1$ $_HOSTAWS_InstanceID$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}Code: Select all
$USER3$/AWS/check_instance_status.sh asg-txt i-c58a9a0a i-c58a9a0a SERVERACode: Select all
echo $* >> /tmp/event-status.logCode: Select all
asg-txt $ $ ServerAI am using NagiosXI 2014 R2.3
Any ideas ?
regards... Fred