<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Improving performace of the check_folder_size script</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi there --</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am running Nagios 3.1.2 with the nrpe 2.12 client. One of the scripts that I am using is the </FONT>
<BR><FONT SIZE=2 FACE="Arial">check_folder_size script. The Nagios server is on one subnet, while the client is on another. </FONT>
<BR><FONT SIZE=2 FACE="Arial">The connection between the two is via a 10GB WAN connection. The script is configured on</FONT>
<BR><FONT SIZE=2 FACE="Arial">the client to send warnings when the folder in question reaches 500 gigabytes. The entire </FONT>
<BR><FONT SIZE=2 FACE="Arial">disk that the folder is on is four terabytes. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The script appears to be doing its job pretty well, but I notice that occasionally I will get </FONT>
<BR><FONT SIZE=2 FACE="Arial">timeout issues with the script. I suspect the configuration of the script on the Nagios server is </FONT>
<BR><FONT SIZE=2 FACE="Arial">the cause, and I wanted to get feedback as to the best settings to have for the script. The current </FONT>
<BR><FONT SIZE=2 FACE="Arial">configuration is shown below:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"># Service definition</FONT>
<BR><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> use generic-service ; Name of service template to use</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> host_name <hostname></FONT>
<BR><FONT SIZE=2 FACE="Arial"> service_description Folder Size Active 1</FONT>
<BR><FONT SIZE=2 FACE="Arial"> is_volatile 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> check_period 24x7</FONT>
<BR><FONT SIZE=2 FACE="Arial"> max_check_attempts 1</FONT>
<BR><FONT SIZE=2 FACE="Arial"> normal_check_interval 1440</FONT>
<BR><FONT SIZE=2 FACE="Arial"> retry_check_interval 720</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_groups linux-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> notification_interval 1440</FONT>
<BR><FONT SIZE=2 FACE="Arial"> notification_period 24x7</FONT>
<BR><FONT SIZE=2 FACE="Arial"> notification_options w,u,c,r</FONT>
<BR><FONT SIZE=2 FACE="Arial"> check_command check_nrpe!check_folder_size1</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Does anyone have any suggestions as to what settings would be better here? Thanks. </FONT>
</P>
<BR>
<pre>
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.
</pre></BODY>
</HTML>