Configuring nrpe
Subhendu Ghosh
sghosh at sghosh.org
Fri Apr 18 17:05:42 CEST 2003
You should be able to use "-C /bin/sh -a /usr/bin/safe_mysqld"
note the ps on the command line probably has different defaults than ps in
check_procs. Take look at your config.h for PS_COMMAND.
-sg
On Fri, 18 Apr 2003, Jeff Lane wrote:
> 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
>
>
>
--
-------------------------------------------------------
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