Nagios Configuration for mongo plugin

Prerequisite: Git installation on  Ubuntu remote server. $which git $sudo apt-get install git-core $which git /usr/bin/git $git –version git version 1.7.0.4 git clone git://github.com/mzupan/nagios-plugin-mongodb.git Python dependencies installation on remote...

Linux User Management

Disable user login shell usermod -s /bin/false username Enable User login shell usermod -s /bin/bash username Edit home directory vi /etc/passwd Check the status more /etc/passwd

Chef

knife ec2 server create -G default -f t1.micro -S nagios-quick-start -x ubuntu –region eu-west-1 -I ami-ce7b6fba

Ubuntu Firewall

sudo ufw allow proto tcp from 192.168.0.2 to any port 22 sudo ufw delete deny 22 sudo ufw allow 22 sudo ufw enable Ref: https://help.ubuntu.com/lts/serverguide/firewall.html