[CentOS] Nagios check_file size in another machine

Keith Keller kkeller at speakeasy.net
Tue Nov 3 20:08:32 UTC 2009


On Tue, Nov 03, 2009 at 08:08:27PM +0700, kebo jantan wrote:
> I just already. This on client
> 
> [root at xmen ~]# ps -ef | grep -i snmp
> root     10505 10172  0 20:06 pts/0    00:00:00 grep -i snmp
> 
> [root at cyclop ~]# ps -ef | grep -i nrpe
> root     10507 10172  0 20:06 pts/0    00:00:00 grep -i nrpe

This won't really help you, since the default is to run nrpe out of
(x)inetd.

On your nagios server, configure a service that uses check_nrpe to check
a named check on the remote host.  Then, on the mysqld host, create a
checkcommand in nrpe.cfg to do the (local) check that you want to do.
NRPE will perform the check and send the result back to check_nrpe on
the nagios server.

I believe that on the remote host you need the nagios-plugins and
nagios-nrpe packages, available from rpmforge.  (The nagios server needs
the nagios-plugins-nrpe package in addition to the other nagios packages
you probably already have.)

The config files are fairly well documented, and the PDF you were
referred to is very thorough.

--keith


-- 
kkeller at speakeasy.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20091103/85b04a5e/attachment.bin 


More information about the CentOS mailing list