Configuring nrpe

Jeff Lane crash at pinehurst.net
Fri Apr 18 16:13:42 CEST 2003


Good morning all...

I need a little help in configureing a check for nrpe... the one thing 
that has me stumped is how to check a process that is started by /bin/sh

specifically mysqld.

I have tried the following in nrpe.cfg:

command[check_mysql]=/usr/local/nagios/libexec/check_procs -w2: -c 1: -C 
'/bin/sh /usr/bin/safe_mysqld'
command[check_mysql]=/usr/local/nagios/libexec/check_procs -w2: -c 1: -C 
"/bin/sh /usr/bin/safe_mysqld"
command[check_mysql]=/usr/local/nagios/libexec/check_procs -w2: -c 1: -C 
`/bin/sh /usr/bin/safe_mysqld`
command[check_mysql]=/usr/local/nagios/libexec/check_procs -w2: -c 1: -C 
/usr/bin/safe_mysqld
command[check_mysql]=/usr/local/nagios/libexec/check_procs -w2: -c 1: -C 
/bin/sh\ /usr/bin/safe_mysqld

and none of these worked...

here is what mysql looks like to ps:


28887 ?        S      0:00 /bin/sh /usr/bin/safe_mysqld 
--defaults-file=/etc/my.
28914 ?        S      0:00  \_ /usr/libexec/mysqld 
--defaults-file=/etc/my.cnf -
28916 ?        S      0:16      \_ /usr/libexec/mysqld 
--defaults-file=/etc/my.c
28917 ?        S      1:29          \_ /usr/libexec/mysqld 
--defaults-file=/etc/

I have even tried it wiht the child process names as well...

since this is a server that is constantly tweaked, just using the 
process number would be futile, as it changes at least once a week... 
so could someone point me in the right direction to getting this checked???

Thanks!
Jeff


-- 
Jeffrey Lane
ConnectNC.com / Internet of the Sandhills
W4KDH at arrl.net

chown -r us:us /yourbase/




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list