Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
Installing module: rptmonitor uses redis module as a redis client to interact with Redis.
Installing redis :
- Using pip :
pip install redis(python2) &
pip3 install redis(python3)
- Using easy_install :
From source :
git clone https://github.com/andymccurdy/redis-py.git
python setup.py install
‘pip’ is preferred installer program.
- Using pip :
Edit config.cfg file :
- Uncomment the lines containing redis_server & redis_port config variables (remove # symbol).
- Change default values as required.
- Provide password(redis_pswd) if Redis server is protected & remove # symbol to uncomment the line.
Restart rptmonitor :
For deb/rpm package supported Linux distros :
sudo /etc/init.d/rptmonitor restart
For OpenSUSE(11.4+) with systemd :
sudo systemctl restart rptmonitor.service
For other Linux distro, FreeBSD 8+, Mac OS X+ :
sudo python /usr/local/bin/rptmonitor/monitor.py restart