SysExpert
asked on
Automated Deployments in AWS
Need to install a Nagios 3.x distro on the image ( micro ) - both the daemon and the client should be installed on the machine.
* the installation should be performed using a script invoked remotely i.e. without a need to manually ssh into the machine.
Any help appreciated. Looked at cloudformation, but I am not sure about how to use it.
TIA !
* the installation should be performed using a script invoked remotely i.e. without a need to manually ssh into the machine.
Any help appreciated. Looked at cloudformation, but I am not sure about how to use it.
TIA !
ASKER
AWS has an option to run an install file when an instance is strted. The problem is that none of install scripts I have found work properly on any of the RHEL, AWS or ubuntu Micros T2 instances. Ubuntu is closest, but requires manual input for mail server and other stuff.
I am going to add a nagios category. Maybe someone has a better script.
I am going to add a nagios category. Maybe someone has a better script.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Resolved issue. Needed EPEL for 7 not 6 on RHEL micro. used user-data in AWS console to use auto install script.
ASKER
Thanks. I already had all the info, just an issue with the install script.
thanks for sharing, indeed as stated "--userdata" parameter under
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html#user-data-shell-scripts
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html#user-data-shell-scripts
But not going via SSH as above link stated, it has to be offline type to create some sort of template file and push into the AWS to automate the necessary service and instance interfaces. Indeed unless we can get a readily available Nagios AMI (finding the AMI in marketplace did not surface much and those in public is pretty out-dated) otherwise its seems AWS Cloudformation is one mean you stated. You can know how Cloudformation actually works in - in short come up with a local template file, of AWS CloudFormation type (a JSON-formatted text file that describes your AWS infrastructure) and ask latter to automatically uploads your created template into an Amazon (S3) bucket in your AWS account. http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-whatis-howdoesitwork.html
May be good to have some starter reads ...this demonstrate for a Wordpress blog http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/GettingStarted.Walkthrough.html
I saw a sample Nagios Cloudformation below but of 2010 though
http://sea2shore.googlecode.com/svn-history/r3/trunk/src/infrastructure/nagios/nagios.template
But do note CLoudformation has limitations stated too and be aware (if venturing into it and seems the only optimal means ...) http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html
More info on Cloudformation in public doing https://opentodo.net/2015/01/aws-cloudformation-defining-your-stack/