Skip to content

Bash script to check your redis is up and used memory is under %.

License

Notifications You must be signed in to change notification settings

padosoft/redismonitor.sh

Repository files navigation

redismonitor.sh

Bash script to check your redis is up and used memory is under %.

Software License

Table of Contents

Prerequisites

bash

Install

This package can be installed easy.

cd /root/myscript
git clone https://github.com/padosoft/redismonitor.sh.git
cd redismonitor.sh
chmod +x redismonitor.sh

If you want to set your value and override default var values create a redismonitor.config file by coping the given template redismonitor.config.template, open in your favorite editor and make changes:

cp /root/myscript/redismonitor.sh/redismonitor.config.template /root/myscript/redismonitor.sh/redismonitor.config 

nano /root/myscript/redismonitor.sh/redismonitor.config

If you want to run programmatically, add it to cronjobs manually or execute install script:

cd /root/myscript/redismonitor.sh
chmod +x install.sh
bash install.sh

Usage

bash redismonitor.sh

Example

bash redismonitor.sh

For help:

bash redismonitor.sh

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Credits

About Padosoft

Padosoft is a software house based in Florence, Italy. Specialized in E-commerce and web sites.

License

The MIT License (MIT). Please see License File for more information.