Cacti installation for monitoring servers and routers 1

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:

Go to /var/www/ download cacti, unpack it and rename it:

Create a database for cacti, a user for the database and insert the cacti tables in it:

 

Edit […]

How To solve – ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

Something like: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) Ok this was tough enough to find. :PThree simple things. the number inside parenthesis indicates the error number we want to think about firstly. The number two means that mysql daemon cannot find that file. So, to solve this, try […]

Server monitoring - remote monitor a server with GKrellM via ssh tunnel 2

Server monitoring – remote monitor a server with GKrellM via ssh tunnel

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 […]

Linux Server Monitoring - Schedule a Command Output to be Sent via Email on Boot 3

Linux Server Monitoring – Schedule a Command Output to be Sent via Email on Boot

Scheduling a command on boot it’s easy and it can be done with different ways. One, with cronjobs and second, with the rc.local file (/etc/rc.local). Third, by putting your own script in /etc/init.d/. Fow now I’ll take the easy way to do it, the one with the rc.local. Requirements: sSMTP Mutt email client Implementation Open […]

Send email from Linux Terminal - How to install and use mutt terminal email client 4

Send email from Linux Terminal – How to install and use mutt terminal email client

Mutt is a sophisticated email client for linux terminal. It supports MIME, GPG, PGP and threading. In this tutorial I wont expand to report full use of the software because the whole point is to show you how to setup a basic but promising email notification system for your servers, so you can customize it […]

How to install PDO sqlite3 on Ubuntu 5

How to install PDO sqlite3 on Ubuntu

SQlite is a serverlessĀ Relational Database Management System. In plain words, it’s an SQL database without the need of running an SQL server. From my experience it’s not included in LAMP stack, so you have to install it by yourself. 1. Install php5-sqlite via apt …

If SQLite is installed but the PHP driver is […]