Difference between revisions of "Management"
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|ip_addr = 128.153.145.62 |
|ip_addr = 128.153.145.62 |
||
|contact_person = [[User:Jared|Jared Dunbar]] |
|contact_person = [[User:Jared|Jared Dunbar]] |
||
− | |last_update = '' |
+ | |last_update = ''July 2017'' |
|services = server status collection server |
|services = server status collection server |
||
− | |development_status = |
+ | |development_status = 30% |
|category = Machines |
|category = Machines |
||
|handoff = no |
|handoff = no |
||
− | }} |
||
− | |||
− | {{services |
||
− | | screenshot = |
||
− | | caption = |
||
− | |ip_addr = 128.153.145.63 |
||
− | |contact_person = [[User:Jared|Jared Dunbar]] |
||
− | |last_update = ''November 2016'' |
||
− | |services = server status display [soon to be depricated] |
||
− | |development_status = 50% |
||
− | |category = Machines |
||
− | |handoff = no |
||
− | }} |
||
− | |||
− | {{Machine |
||
− | | screenshot = |
||
− | | maintainer = [[User:Jared|Jared Dunbar]] |
||
− | | hostname = management |
||
− | | operating_system = Armbian (Debian) Jessie (kernel 4.4.1-sunxi) |
||
− | | interface1 = {{Network Interface | name = eth0 | mac = 02:8e:08:41:65:6a | ip = 128.153.145.63 }} |
||
− | | cpuspecs = Hard Float Dual Core Allwinner A20 armv7l, Mali 400 MP2 |
||
− | | ramspecs = 1GB DDR3 ECC |
||
− | | hddspecs = 8GB SD Class 4 (4MB/s) |
||
}} |
}} |
||
− | '''Management''' ( |
+ | '''Management''' (stat3) is a vm used for monitoring the status of hosts 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 |
+ | Each computer in the server room that is configured sends data periodically 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) |
+ | Also, you can view COSI network stats at <del>http://management.cosi.clarkson.edu/cacti with the csguest user (and default password)</del> in raw data at http://stat.cosi.clarkson.edu/data since Cacti broke (again) |
=Installing Management Clients= |
=Installing Management Clients= |
||
Line 60: | Line 37: | ||
</pre> |
</pre> |
||
− | + | Re-secure the system by only accepting repos with certificates. |
|
<pre style="background-color:#ffcccc"> |
<pre style="background-color:#ffcccc"> |
||
Line 101: | Line 78: | ||
</pre> |
</pre> |
||
+ | ==Whitelist== |
||
− | Sit back and relax! It should show up on a running manage2server momentarily. |
||
+ | |||
+ | Email dunbarj@clarkson.edu to get the server added to the whitelist |
||
=Installing Management Server= |
=Installing Management Server= |
||
Line 155: | Line 134: | ||
==Plans== |
==Plans== |
||
+ | * Update ALL instances of Management to stat3 when client completed (and depricate the old versions - we still have versions of Management 1.0 and manage2client out there) |
||
− | *Split off Cacti VM |
||
+ | * Create new server with authentication (both real encryption and perhaps OpenComputers compatible for Minecraft servers :P) |
||
− | *Create network interface system |
||
+ | * Configurable low power options |
||
− | *Add a sensor network to the server room for temperatures |
||
+ | * Email Notifications |
||
− | *Create other useful scripts for connecting to Management |
||
+ | * Shutdowns |
||
+ | * Sensors Interface - configurability is a must |
||
+ | * Better web interface? Cookies? Logins? LDAP? PAM? |
||
+ | * Ability for custom messages, custom dashboards? |
||
[[Category:Web Service]] |
[[Category:Web Service]] |
Latest revision as of 11:50, 29 July 2017
Management | |
![]() | |
IP Address(es): | 128.153.145.62 |
Contact Person: | Jared Dunbar |
Last Update: | July 2017 |
Services: | server status collection server |
Management (stat3) is a vm used for monitoring the status of hosts 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 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) in raw data at http://stat.cosi.clarkson.edu/data since Cacti broke (again)
Contents
Installing Management Clients
Required Software: Git, g++, make
On Debian:
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
Re-secure the system by only accepting repos with certificates.
git config --global http.sslVerify true
Prepare files
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
Configure system
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
make
Enable Systemd Services
sudo systemctl enable manage sudo systemctl start manage
Whitelist
Email dunbarj@clarkson.edu to get the server added to the whitelist
Installing Management Server
Start with an Arch VM
Set Hostname
Edit
/etc/hostname
Clear the contents and enter this on the first line, and save
management
Set Network
Copy example ethernet-static to netctl folder
cp /etc/netctl/examples/ethernet-static /etc/netctl/ehternet
Edit
/etc/netctl/ethernet
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=('128.153.145.62/24') Gateway='128.153.145.1' DNS=('128.153.145.3')
Objectives
- 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
Plans
- Update ALL instances of Management to stat3 when client completed (and depricate the old versions - we still have versions of Management 1.0 and manage2client out there)
- Create new server with authentication (both real encryption and perhaps OpenComputers compatible for Minecraft servers :P)
* Configurable low power options * Email Notifications * Shutdowns
- Sensors Interface - configurability is a must
- Better web interface? Cookies? Logins? LDAP? PAM?
- Ability for custom messages, custom dashboards?