Dear all.... any one can help me??? I am aware of monitoring disk space using nagios (disk partitions with check_disk). Now, I have a situation that I would like to monitor size of an individual file through nagios. e.g /var/lib/mysql/somedatabase/vlog.myd, this file will grow very fast and i would like to monitor if the size of this file crosses 1.5 G. I'm already used 'check_file' but this can't solved my problem. The file in another machine, that 'check_file' can't do it.
On 11/03/2009 12:48 PM, kebo jantan wrote:
I'm already used 'check_file' but this can't solved my problem. The file in another machine, that 'check_file' can't do it.
Look into how nagios runs its tests over a ssh connection or snmp info or nrpe.
I just already. This on client
[root@xmen ~]# ps -ef | grep -i snmp root 10505 10172 0 20:06 pts/0 00:00:00 grep -i snmp
[root@cyclop ~]# ps -ef | grep -i nrpe root 10507 10172 0 20:06 pts/0 00:00:00 grep -i nrpe
[root@xmen ~]# ps -ef | grep -i ssh root 8899 1 0 Oct26 ? 00:00:00 /usr/sbin/sshd root 10138 8899 0 18:05 ? 00:00:00 sshd: kebo [priv] kebo 10140 10138 0 18:05 ? 00:00:00 sshd: kebo@pts/0 root 10509 10172 0 20:06 pts/0 00:00:00 grep -i ssh
On Tue, Nov 3, 2009 at 7:52 PM, Karanbir Singh mail-lists@karan.org wrote:
On 11/03/2009 12:48 PM, kebo jantan wrote:
I'm already used 'check_file' but this can't solved my problem. The file in another machine, that 'check_file' can't do it.
Look into how nagios runs its tests over a ssh connection or snmp info or nrpe.
-- Karanbir Singh London, UK | http://www.karan.org/ | twitter.com/kbsingh ICQ: 2522219 | Yahoo IM: z00dax | Gtalk: z00dax GnuPG Key : http://www.karan.org/publickey.asc _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, Nov 03, 2009 at 08:08:27PM +0700, kebo jantan wrote:
I just already. This on client
[root@xmen ~]# ps -ef | grep -i snmp root 10505 10172 0 20:06 pts/0 00:00:00 grep -i snmp
[root@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
From: kebo jantan jantan.kebo99@gmail.com
Now, I have a situation that I would like to monitor size of an individual file through nagios. e.g /var/lib/mysql/somedatabase/vlog.myd, this file will grow very fast and i would like to monitor if the size of this file crosses 1.5 G. I'm already used 'check_file' but this can't solved my problem. The file in another machine, that 'check_file' can't do it.
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
JD