Difference between revisions of "Management"
|Line 135:||Line 135:|
*Create a monitoring system that can monitor all of the servers, battery backups, network, and also some temperature sensors placed through the server room at strategic locations
*Notify computers of when to power down in a power outage
*Create API's that can be used to interface the management platform
*Rewrite cgi to use python fast-cgi module or similar
*Create a theme system which uses session cookies
*Add a sensor network to the server room for temperatures
*Create other useful scripts for connecting to Management
*Add battery backup indicators and health information
Revision as of 23:09, 14 September 2016
|Contact Person:||Jared Dunbar|
|Last Update:||February 2016|
|Services:||server status indicator|
|Operating system:||Armbian (Debian) Jessie (kernel 4.4.1-sunxi)|
|NIC 1:||eth0 |
|CPU:||Hard Float Dual Core Allwinner A20 armv7l, Mali 400 MP2|
|RAM:||1GB DDR3 ECC|
Management (manage2server) is a vm used for monitoring the status of VM's on other machines and the status of the hardware in the server room, ie. checking the CPU, RAM, and hard drive stats, among other configurable things.
Each computer in the server room that is configured sends data periodically to Management which will be shown in an uptime page on a webpage that can easily be used to determine system uptime and service uptime among other things.
Also, you can view COSI network stats at http://management.cosi.clarkson.edu/cacti with the csguest user (and default password)
Installing Management Clients
Required Software: Git, g++, make
apt update && apt install make g++ git
Clone with Git
First, set git to allow all certificates, and get the files using Git.
git config --global http.sslVerify false git clone https://gitlab.cosi.clarkson.edu/jared/manage2client.git
Optionally, re-secure the system by only accepting repos with certificates.
git config --global http.sslVerify true
Move the folder to the root.
mv manage2client /manage
Move the systemd service to the systemd serivces folder
sudo mv /manage/manage.service /etc/systemd/system/manage.service
If the hard drive you want to track is not /dev/sda1, select a different mount point to track in totaldisk.sh and useddisk.sh
If you want to have virsh, edit run.sh, and un-comment the line with virsh.sh
If you want to poll faster, change sleep from 30 to 5. Any faster, and the Linux scheduler will fall behind on busy boxes.
Compile Management for your platform
Enable Systemd Services
sudo systemctl enable manage sudo systemctl start manage
Sit back and relax! It should show up on a running manage2server momentarily.
Installing Management Server
Start with an Arch VM
Clear the contents and enter this on the first line, and save
Copy example ethernet-static to netctl folder
cp /etc/netctl/examples/ethernet-static /etc/netctl/ehternet
Clear the contents and set it to this:
Description='A basic static ethernet connection' Interface=ens3 # Make sure this is the interface or you won't have a network Connection=ethernet IP=static Address=('184.108.40.206/24') Gateway='220.127.116.11' DNS=('18.104.22.168')
- Create a monitoring system that can monitor all of the servers, battery backups, network, and also some temperature sensors placed through the server room at strategic locations
- Notify computers of when to power down in a power outage
- Create API's that can be used to interface the management platform
- Rewrite cgi to use python fast-cgi module or similar
- Create a theme system which uses session cookies
- Add a sensor network to the server room for temperatures
- Create other useful scripts for connecting to Management
- Add battery backup indicators and health information