i installed check_diskio in remote host workiing CLI but i can not get in nagios web
i have to manage disk io so i have installed check_diskio-3.2.4.tar.gz
it is working properly in CLI but i could not get into nagios web interface
what are the configurations i have to make change into
commands.cfg (define command)
remotehost.cfg ( define service)
nrpe.cfg
this is the output got from CLI
Quote:
[root@localhost Desktop]# /usr/local/nagios/libexec/check_nrpe -H 172.30.0.72 -c check_diskio
CHECK_DISKIO OK - sda 123.00 sectors/s | WRITE=123;4000;6000 READ=0;4000;6000 TOTAL=123;4000;6000
i have installed check_diskio-3.2.4.tar.gz through this steps
Quote:
At the Client Machine.
# yum install perl
# tar -zxvf check_diskio-3.2.2.tar.gz
# cd check_diskio-3.2.2
# less INSTALL (Read the INSTALL Readme file)
# perl Makefile.PL INSTALLSCRIPT=/usr/lib64/nagios/plugins
(You will see a list of warnings of prerequisites)
B. Install the prerequisites Perl-Modules. Here may not be completed lists.
# yum install perl-Nagios*
# yum install perl-List*
# yum install perl-Readonly*
# yum install perl-Number-Format
# yum install perl-File-Slurp*
# yum install perl-Array-Unique
C. Finally compile
# perl Makefile.PL INSTALLSCRIPT=/usr/lib64/nagios/plugins
# make
# make install
(You will see the check_diskio at /usr/lib64/nagios/plugins)
D. Edit the nrpe.cfg file on the client machine. If you have not download nagios nrpe plugins, just do a
# yum install nagios-nrpe
D1. Edit /etc/nagios/nrpe.cfg on the client machine,
# vim /etc/nagios/nrpe.cfg
command[check_diskio]=/usr/lib64/nagios/plugins/check_diskio --device=/dev/sda -w 200 -c 300
At the Server, just make sure you install the nagios nrpe plugins like D. Finally to ensure that the remote server plugins are ok, do a test at Nagios Server
# cd /usr/lib64/nagios/plugins
# ./check_nrpe -H remote-server -c check_diskio
CHECK_DISKIO OK - sda 194 sectors/s | WRITE=194;200;300 READ=0;200;300 TOTAL=194;200;3
please help me immediatly
check_diskio working CLI but but i cannot get in nagios web
Re: check_diskio working CLI but but i cannot get in nagios
Did you get anything set up in your Nagios configuration yet? If so, what does the web interface show?
Re: check_diskio working CLI but but i cannot get in nagios
my web interface shows
commands.cfg in client machine and servermachine
nrpe.cfg command
my clientmachine.cfg
service definition
when i am executing my command through CLI
i provide
i can get this output
please help me
i configured like this in my magios server machineDisk IO CRITICAL 08-23-2012 10:12:26 2d 21h 41m 40s 4/4 (Return code of 127 is out of bounds - plugin may be missing)
commands.cfg in client machine and servermachine
Code: Select all
define command{
command_name check_diskio
command_line /usr/lib/nagios/plugins/contrib/check_diskio --device /dev/sda1 -w $ARG1$ -c $ARG2$
}
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
} Code: Select all
command[check_diskio]=/usr/lib/nagios/plugins/contrib/check_diskio -d /dev/sda1 -w 4000 -c 6000service definition
Code: Select all
define service{
use local-service
host_name onal
service_description Disk IO
check_command check_diskio!20!50
notifications_enabled 0
}
i provide
Code: Select all
[root@localhost Desktop]# /usr/local/nagios/libexec/check_nrpe -H 172.30.0.72 -c check_diskioactually i m confusing now what are the configurations i have to make in client machin and server machineCHECK_DISKIO OK - sda 123.00 sectors/s | WRITE=123;4000;6000 READ=0;4000;6000 TOTAL=123;4000;6000
i have installed check_diskio-3.2.4.tar.gz through this steps
please help me