DISK WARNING - free space: /var 0 GB (49% inode=96%):

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vyasdevaguddi
Posts: 21
Joined: Fri Jan 27, 2017 11:30 am

DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post 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
Attachments
nagios.PNG
nagios.PNG (8.77 KiB) Viewed 5301 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post by rkennedy »

You need to fix the service and modify your configuration to be different, or work through the problem with the plugin.
Former Nagios Employee
vyasdevaguddi
Posts: 21
Joined: Fri Jan 27, 2017 11:30 am

Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post by vyasdevaguddi »

Which service you need to fix and configuration has been turned and how to verify the plugin
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post by mcapra »

Can you share the service definitions you are using? Also any relevant command configuration being used in the service.
Former Nagios employee
https://www.mcapra.com/
vyasdevaguddi
Posts: 21
Joined: Fri Jan 27, 2017 11:30 am

Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post 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'
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post 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.
Former Nagios employee
https://www.mcapra.com/
vyasdevaguddi
Posts: 21
Joined: Fri Jan 27, 2017 11:30 am

Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):

Post 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
Former Nagios employee
https://www.mcapra.com/
Locked