How to graph CCQ on Ubiquiti devices

As you probably already know, the CCQ value is not available via SNMP (AirOS 5.5.2), but of course it doesn’t mean it can’t be graphed using Cacti. To graph CCQ on Ubiquiti devices, you just need to use a simple script to read the desired value using the web interface.


How to change RRD data source name

To change the data source name, you need to check its current value and then issue single rrdtool command.


Cacti and Mikrotik – How to graph signal strength without hassle

Signal strength on Mikrotik devices can be monitored by Cacti using SNMP protocol. It is straightforward if you have just couple of those devices but you can be easily overwhelmed by dozens of data templates because wireless card’s MAC address is part of the OID.


How to send Mikrotik logs to the remote server

Just two simple steps – create logging action and rule.


How to access sensor data

Install lm-sensors package:

$ sudo apt-get install lm-sensors

Execute sensors-detect command as root:

$ sudo sensors-detect

It will determine needed modules and at the end it will ask for your permission to automatically add them to the /etc/modprobe file. If you answered yes then load them using command:

$ sudo service module-init-tools start

Now you can use sensors command:

$ sensors
Adapter: Virtual device
temp1:        +44.0°C  (crit = +100.0°C)
temp2:        +44.0°C  (crit = +100.0°C)
Adapter: ISA adapter
Physical id 0:  +45.0°C  (high = +86.0°C, crit = +100.0°C)
Core 0:         +45.0°C  (high = +86.0°C, crit = +100.0°C)
Core 1:         +44.0°C  (high = +86.0°C, crit = +100.0°C)

How to filter Rsyslog logs by IP address and avoid duplicates

Store and stop processing specific log.

Keep your finger on the pulse with rsyslog and LogAnalyzer

It’s easy to miss something when you need to monitor dozen of logs on different servers and some other devices. Fortunately, there is a simple solution as you can use rsyslog with PostgreSQL or MySQL support to store all local and remote events on your network and then visualize results using LogAnalyzer.