Page 1 of 1
DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Tue Feb 28, 2017 1:39 pm
by vyasdevaguddi
i have tuning the parameters in the system file .cfg and shouls i am seeing the alert
please help in the fixing the error
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Tue Feb 28, 2017 4:28 pm
by rkennedy
You need to fix the service and modify your configuration to be different, or work through the problem with the plugin.
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Wed Mar 01, 2017 2:04 pm
by vyasdevaguddi
Which service you need to fix and configuration has been turned and how to verify the plugin
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Wed Mar 01, 2017 3:59 pm
by mcapra
Can you share the service definitions you are using? Also any relevant command configuration being used in the service.
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Tue Mar 07, 2017 10:20 am
by vyasdevaguddi
This are the variables which we are using in the environment and its working for all servers and its have issue only with this server
define service{
use local-service ; Name of service template to use
host_name hostname
service_description Var Partition
check_command check_nrpe!check_disk '-a -c5% -u GB /var' -n
#notification_interval 10
#contact_groups Aix admins
}
define service{
use local-service ; Name of service template to use
host_name hostname
service_description var Partition
check_command check_nrpe!check_disk '-a -w15% -u GB /var' -n
#notification_interval 10
#contact_groups Aix Warnings
}
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
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p /,/var/,/usr,/opt,/home,/tmp'
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Tue Mar 07, 2017 5:06 pm
by mcapra
Your check command doesn't exactly coincide with the NRPE command definition.
Here's what you're telling Nagios to do:
Code: Select all
check_command check_nrpe!check_disk '-a -w15% -u GB /var' -n
Where as your NRPE command definition isn't accepting any arguments:
Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p /,/var/,/usr,/opt,/home,/tmp'
So feeding it arguments in your Nagios check_command definition is pointless. If this check_command is not producing the desired behavior, the change will need to come in the form of altering the check_command or altering your remote machine's NRPE configurations.
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Wed Mar 08, 2017 3:41 pm
by vyasdevaguddi
what changes Need to be run to make and run the nrpe run successfully
please provide parameters for the nrpe to make it work
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
Posted: Thu Mar 09, 2017 9:52 am
by mcapra
If you can tell me the use-case you're trying to satisfy, I can certainly provide configuration sets. Based on the posts in this thread so far, it's unclear what exactly you're trying to do.
As an example from the NRPE end of things, I can create the following command definition to execute the check_disk plugin:
Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
Then, from my Nagios Core machine, I can call that plugin remotely using check_nrpe like so (using -a to pass arguments into $ARG1$):
Code: Select all
[root@core ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.67.97 -c check_disk -a '-w 10% -c 5% -p /var'
DISK OK - free space: / 3041 MB (17% inode=70%);| /=14836MB;16090;16984;0;17878