Re: [Nagios-users] Improving performace of the check_folder_size script

2010-02-10 Thread Marc Powell

On Feb 9, 2010, at 11:45 AM, Kaplan, Andrew H. wrote:

> Hi there --
> 
> I am running Nagios 3.1.2 with the nrpe 2.12 client. One of the scripts that 
> I am using is the 
> check_folder_size script.

When asking about a non-standard plugin, it's very useful to also include where 
you got that plugin. How it does what it does is very relevant to your question.

> The script is configured on 
> the client to send warnings when the folder in question reaches 500 gigabytes.

How does it determine this?

> The script appears to be doing its job pretty well, but I notice that 
> occasionally I will get 
> timeout issues with the script. I suspect the configuration of the script on 
> the Nagios server is 
> the cause, and I wanted to get feedback as to the best settings to have for 
> the script.

Much more likely is that the script is using something like '/bin/du' to 
calculate the size of the directory and that it is sometimes taking longer than 
you've told nagios to wait to do so. That doesn't really surprise me for a 
directory of that size.

> The current 
> configuration is shown below:
> 
> # Service definition 
> define service{ 

> check_command   check_nrpe!check_folder_size1 
> }
> 
> Does anyone have any suggestions as to what settings would be better here? 
> Thanks.

Look at your check_nrpe command definition. If it specifies a timeout value 
(-to), increase it as needed. If it doesn't, add one. Also check the value of 
service_check_timeout in nagios.cfg. It should be higher than the check_nrpe 
timeout.

An even better solution is to make that directory it's own partition. Then you 
can use check_disk, which will be nearly instantaneous, to determine the size 
of the directory.

--
Marc
 
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Improving performace of the check_folder_size script

2010-02-09 Thread Kaplan, Andrew H.
Hi there --

I am running Nagios 3.1.2 with the nrpe 2.12 client. One of the scripts that I
am using is the 
check_folder_size script. The Nagios server is on one subnet, while the client
is on another. 
The connection between the two is via a 10GB WAN connection. The script is
configured on
the client to send warnings when the folder in question reaches 500 gigabytes.
The entire 
disk that the folder is on is four terabytes. 

The script appears to be doing its job pretty well, but I notice that
occasionally I will get 
timeout issues with the script. I suspect the configuration of the script on the
Nagios server is 
the cause, and I wanted to get feedback as to the best settings to have for the
script. The current 
configuration is shown below:

# Service definition
define service{
use generic-service ; Name
of service template to use

host_name   
service_description Folder Size Active 1
is_volatile 0
check_period24x7
max_check_attempts 1
normal_check_interval1440
retry_check_interval720
contact_groups  linux-admins
notification_interval   1440
notification_period 24x7
notification_optionsw,u,c,r
check_command   check_nrpe!check_folder_size1
}

Does anyone have any suggestions as to what settings would be better here?
Thanks. 




The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null