installing check_mysql and check_mem nagios plugins
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Thanks for your response. I had already visited the nagios plugins site, and I followed its instructions on how to build the check_mysql plugin from the /usr/local/nagios/plugins directory, but this is what I get:
[root@localhost plugins]# make check_mysql
check_mysql.c:48:19: error: mysql.h: No such file or directory
check_mysql.c:49:20: error: errmsg.h: No such file or directory
check_mysql.c:56: error: ‚MYSQL_PORT‚ undeclared here (not in a function)
check_mysql.c:148: warning: passing argument 2 of ‚memcpy‚ makes pointer from integer without a cast
check_mysql.c:148: warning: passing argument 1 of ‚__strdup‚ makes pointer from integer without a cast
check_mysql.c:166: error: ‚MYSQL_FIELD‚ undeclared (first use in this function)
check_mysql.c:166: error: ‚fields‚ undeclared (first use in this function)
make: *** [check_mysql-check_mysql.o] Error 1
I hope that either you or someone else has some other feedback.
This is what I see when I look at the requirements:
- Requires the MySQL libraries available from http://www.mysql.org/
Lib: libmysql, libmysqlclient
Redhat Powertools Source: mysql-3.20.32a-3.i386.rpm, mysql-devel-3.20.32a-3.i386.rpm (these seem to be broken, however)
RPMS from www.mysql.org work better
Must have mysql_config in PATH or specified with --with-mysql=DIR for DIR/bin/mysql_config
At least, I can now check the memory of my remote server with check_mem.pl plugin. That was one of the two problems. For some reason, I cannot still monitor the memory of my nagios server (localhost), but I think I am closer now.
Regarding the check_mysql plugin, I will configure the nrpe plugin with it now and see what happens.
I understand the part of running the commands from the command line. What I do not know is if we are supposed to see what the, for example, check_mysql plugin is doing on the nagios web interface itself like we see a ping status?