In case you have a lot of devices monitored by observium and for a reason (a hypervisor migration maybe?) you need to change servers’ hostnames, observium, at the time being, doesn’t seem to support renaming via its web interface but you can successfully do it from the command-line. Read the instructions below. Change current directory […]
Category: System Monitoring
Fix nethogs ‘creating socket failed while establishing local IP’
As it’s not available in repo nor PPA you need to build it (it is really easy and quickly done). Fetch and extract
1 2 3 4 |
wget -c https://github.com/raboof/nethogs/archive/v0.8.1.tar.gz tar xf v0.8.1.tar.gz cd ./nethogs-0.8.1/ |
Install dependencies and build
1 2 3 |
sudo apt-get install libncurses5-dev libpcap-dev make && sudo make install |
Check and run
1 2 |
nethogs -V sudo nethogs |
Source
Setup central syslog server on raspberry pi 2 (and other debian based distros)
Central log server using rsyslog is an asset of your sysadmin life! It may get you on the surface on really critical failures when you manage xyz number of servers and some of them go down. In my case raspberry pi 2 with rasbian (debian wheezy for arm processors) does the job very well, without […]
Cacti installation for monitoring servers and routers
This is done with Ubuntu 12.04 Precise, but, it may be done with othe distros too. First install the required packages:
1 |
sudo apt-get install snmp snmpd apache2 mysql-server mysql-client rrdtool |
Go to /var/www/ download cacti, unpack it and rename it:
1 |
cd /var/www/ && sudo wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz && sudo tar zxvf cacti-0.8.8a.tar.gz && sudo mv cacti-0.8.8a cacti |
Create a database for cacti, a user for the database and insert the cacti tables in it:
1 |
mysqladmin -u root -p create cactidb |
1 |
mysql -u root -p -e "GRANT ALL ON cactidb.* TO 'cacti-admin'@'localhost' IDENTIFIED BY 'yourpassword';" |
1 |
mysql -u root -p cactidb < /var/www/cacti/cacti.sql |
Edit […]
Server monitoring – remote monitor a server with GKrellM via ssh tunnel
1 2 3 4 |
Let's say you have a server in a LAN you want to monitor from your house or from your office instead of being in a depressing computer room. By the way, computer rooms are not depressing at all, we all love them! ;)! But if you have multiple servers? Thinking the possibillities working mobile? Enough! <strong><span style="font-size: x-large;">GKrellM features</span></strong> |
1 |
<a href="http://gkrellm.net/">GKrellM</a> is a free monitoring tool that gives you information about: |
Hostname/systemname display. Clock/calendar. SMP CPU monitor that can chart individual CPUs and/or a composite CPU. Temperature, fan, and voltage sensor monitors if supported by the kernel and the mainboard hardware. Linux requires lm_sensors modules, sysfs sensors for kernels >= 2.6.0 or a running mbmon daemon. Sensors can also be read from mbmon on […]