In this article, we are going to monitor Memcached Service with most popular monitoring tool called Nagios Monitoring.
I hope you already install Nagios server and NRPE Service if not or you are new who just started working on Nagios then refer below links which help you to clear your doubts regarding Nagios Application.
Default Nagios plugins installation only provide you some plugins which help us to monitor default services and application on the server. In such case, we need to install custom plugins which help us to monitor particular services and applications on Server.
Memcached
Is very important part of the caching mechanism. It will help to improve the speed of your website as well as performance. It is our duty to keep an eye on service running is properly or not and also we can monitor Memcache through Nagios by using the simple custom plugin on the host server.
Below are the parameters we are going to monitor about Memcache :
- Total-free-memory
- Current_items
- Current_connections
- Total_connections
- Limit_maxbytes
Configuration of Memcache Custom Plugin
Step 1 : Install Dependency package
To run custom plugin of Memcache you need to first install dependency package on the server which supports Memcached plugin.
Run below command to install package,
I am trying to get your plugin to run under LibreNMS /usr/lib/nagios/plugins. I have the basics being returned using the following:
./check_memcached.pl -H 10.104.197.240 -p 11211
What other parameters need to be passed via the CLI in order to get the following:
Total-free-memory
Current_items
Current_connections
Total_connections
Limit_maxbytes
Thank you.