change Parameter of a Host

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
aschmid
Posts: 2
Joined: Tue Aug 07, 2012 9:08 am

change Parameter of a Host

Post by aschmid »

Hello,

I am a NAGIOS beginner and I have the need to adjust the Parameter disk usage c: of a host (one disk of a terminal-server)

is there an easy way to adjust this setting?

thanks for your help in advance,


Axel
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: change Parameter of a Host

Post by slansing »

Hello and welcome aschmid,

Just to clarify, you would like to change the parameter of a check that looks at disk space? So for instance if the check is checking disk "C:" if the disk has a warning level of 60, and a critical level of 80 you would like to change these values?
aschmid
Posts: 2
Joined: Tue Aug 07, 2012 9:08 am

Re: change Parameter of a Host

Post by aschmid »

slansing wrote:Hello and welcome aschmid,

Just to clarify, you would like to change the parameter of a check that looks at disk space? So for instance if the check is checking disk "C:" if the disk has a warning level of 60, and a critical level of 80 you would like to change these values?

yes we noticed that a threshold of 80 is not what we want, so we want to change this value to 90 %

best regards,


Axel
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: change Parameter of a Host

Post by slansing »

If you look at the following web page it will show examples for the check_disk NRPE check:

http://nagiosplugins.org/man/check_disk

You would be changing the critical value or "-c 80" to "-c 90" in this case.

Since this is a Service specific change it must be made from the Service's config file. All of your Services are located at:

Code: Select all

/usr/local/nagios/etc/services
You are going to be looking for a string starting with "check_command" and at the end it will say something along the lines of:

Code: Select all

!USEDDISKSPACE! -l C -w 75 -c 80
Here, simply change the value as dictated above.

Hope this helps!
Locked