Categories
SysOps

How to monitor battery capacity

Recently battery in my notebook started to behave erratically. It will charge only to 70-80% of its maximum capacity. I suspect that it is probably slowly dying, so I will have to replace it soon, but at first, I will look at several utilities to monitor battery capacity.

Categories
Uncategorized

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.

Categories
SysOps

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.

Categories
Uncategorized

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.

Categories
Uncategorized

How to send Mikrotik logs to the remote server

Just two simple steps – create logging action and rule.

Categories
Uncategorized

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

Categories
Uncategorized

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.