disk_check HELP!!!!
Posted: Fri Feb 26, 2016 5:10 pm
on Nagios Server :
NRPE.CFG
# i also enable dont blane nrpe 1.
and add the IP address of the server
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1 <--- this be where i select the partion to momitor for a client side
command[check_zombie_procs]=/usr/local/nagios/libexec/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 250 -c 300
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1 <--- or do i use this one
command[check_users]=/usr/local/nagios/libexec/check_users -w "$ARG1$" -c "$ARG2$"
command[check_load]=/usr/local/nagios/libexec/check_load -w "$ARG1$" -c "$ARG2$"
command[check_disk]=/usr/local/nagios/libexec/check_disk -w "$ARG1$" -c "$ARG2$" -p "$ARG3$"
command[check_procs]=/usr/local/nagios/libexec/check_procs -w "$ARG1$" -c "$ARG2$" -s "$ARG3$"
command.cfg
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
# 'check_disk' command definition
define command{
command_name check_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
Servicegroup.cfg
define service{
use local-service
service_description Free Space
check_command check_nrpe!check_disk
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
hostgroups *
host_name !localhost
Client Side
# i also enable dont blane nrpe 1.
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda2
command[check_zombie_procs]=/usr/local/nagios/libexec/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 250 -c 300
command[check_users]=/usr/local/nagios/libexec/check_users -w "$ARG1$" -c "$ARG2$"
command[check_load]=/usr/local/nagios/libexec/check_load -w "$ARG1$" -c "$ARG2$"
command[check_disk]=/usr/local/nagios/libexec/check_disk -w "$ARG1$" -c "$ARG2$" -p "$ARG3$"
command[check_procs]=/usr/local/nagios/libexec/check_procs -w "$ARG1$" -c "$ARG2$" -s "$ARG3$"
so why do i recieved error
NRPE: Command 'check_disk' not defined what i am missing
Thank you for all your Help
please let me know if there is something else you need form me
NRPE.CFG
# i also enable dont blane nrpe 1.
and add the IP address of the server
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1 <--- this be where i select the partion to momitor for a client side
command[check_zombie_procs]=/usr/local/nagios/libexec/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 250 -c 300
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1 <--- or do i use this one
command[check_users]=/usr/local/nagios/libexec/check_users -w "$ARG1$" -c "$ARG2$"
command[check_load]=/usr/local/nagios/libexec/check_load -w "$ARG1$" -c "$ARG2$"
command[check_disk]=/usr/local/nagios/libexec/check_disk -w "$ARG1$" -c "$ARG2$" -p "$ARG3$"
command[check_procs]=/usr/local/nagios/libexec/check_procs -w "$ARG1$" -c "$ARG2$" -s "$ARG3$"
command.cfg
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
# 'check_disk' command definition
define command{
command_name check_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
Servicegroup.cfg
define service{
use local-service
service_description Free Space
check_command check_nrpe!check_disk
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
hostgroups *
host_name !localhost
Client Side
# i also enable dont blane nrpe 1.
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda2
command[check_zombie_procs]=/usr/local/nagios/libexec/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 250 -c 300
command[check_users]=/usr/local/nagios/libexec/check_users -w "$ARG1$" -c "$ARG2$"
command[check_load]=/usr/local/nagios/libexec/check_load -w "$ARG1$" -c "$ARG2$"
command[check_disk]=/usr/local/nagios/libexec/check_disk -w "$ARG1$" -c "$ARG2$" -p "$ARG3$"
command[check_procs]=/usr/local/nagios/libexec/check_procs -w "$ARG1$" -c "$ARG2$" -s "$ARG3$"
so why do i recieved error
NRPE: Command 'check_disk' not defined what i am missing
Thank you for all your Help
please let me know if there is something else you need form me