Cloud Instances Monitoring

I usually use Munin as monitoring software, but this (I guess for other software) needs an IP address to do ICMP or something else to collect data.

Amazon EC2 creates instances on the fly with an IP address that you don’t know.

How can they be controlled?

I was thinking of using amazon console commands to read the IP addresses of instances and change the monit configuration file on the fly as well, but it might be too complicated ... or not?

Any other solution / suggestion?

thank

+3
source share
3 answers

revealcloud amazon. ami , . - , rc.local( ). , .

+2

-, IP-/, (= ) /etc/hosts . , IP- ( /etc/munin/munin.conf).

. . munin- node ( 4949). :

, ec2-authorize,

ec2-authorize mygroup -o monitorgroup -u <AWS-USER-ID>

, monitorgroup mygroup.

, !

0

Munin EC2, , domU-00-00-00-00-00-00.compute-1.internal. IP- .

/etc/munin/munin - node.conf:

allow ^.*$

AWS Ubuntu Munin

Munin EC2, Elastic IP EC2.

0

Source: https://habr.com/ru/post/1793323/


All Articles