i have tuning the parameters in the system file .cfg and shouls i am seeing the alert
please help in the fixing the error
DISK WARNING - free space: /var 0 GB (49% inode=96%):
-
- Posts: 21
- Joined: Fri Jan 27, 2017 11:30 am
DISK WARNING - free space: /var 0 GB (49% inode=96%):
- Attachments
-
- nagios.PNG (8.77 KiB) Viewed 5317 times
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
You need to fix the service and modify your configuration to be different, or work through the problem with the plugin.
Former Nagios Employee
-
- Posts: 21
- Joined: Fri Jan 27, 2017 11:30 am
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
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%):
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/
https://www.mcapra.com/
-
- Posts: 21
- Joined: Fri Jan 27, 2017 11:30 am
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
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'
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%):
Your check command doesn't exactly coincide with the NRPE command definition.
Here's what you're telling Nagios to do:
Where as your NRPE command definition isn't accepting any arguments:
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.
Here's what you're telling Nagios to do:
Code: Select all
check_command check_nrpe!check_disk '-a -w15% -u GB /var' -n
Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p /,/var/,/usr,/opt,/home,/tmp'
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- Posts: 21
- Joined: Fri Jan 27, 2017 11:30 am
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
what changes Need to be run to make and run the nrpe run successfully
please provide parameters for the nrpe to make it work
please provide parameters for the nrpe to make it work
Re: DISK WARNING - free space: /var 0 GB (49% inode=96%):
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:
Then, from my Nagios Core machine, I can call that plugin remotely using check_nrpe like so (using -a to pass arguments into $ARG1$):
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$
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/
https://www.mcapra.com/