<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>How to monitor disk usage with Apan ...</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Trebuchet MS">Hi Nagi Gurus,</FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">I have a challenge here. </FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">I am monitoring a Windows 2000 server from my Nagios server. The Win2K machine has NSClient service running. Monitoring is happening perfectly for ping, disk usage, exchange counters, etc. When I use Apan for generating graph, I am facing challenge. This problem comes in disk usage. It works good with Ping. Monitoring is happening and graph is also coming for Ping.</FONT></P>
<P><FONT SIZE=2 FACE="Trebuchet MS">I am unable to get results as well as graphs for disk usage. </FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">I am getting the following output in the monitoring screen.</FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">disk -usage </FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">status : unknown </FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">status information : No perf-definition for the service</FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">Error displays in the console :</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">/usr/local/nagios/apan/apan.sh: line 15: [: too many arguments </FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">/tmp/apan.debug has the following error :</FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">Args: nt-disk PARAMANP disk-usage 1067925657 150 100 Could not insert '' , " into </FONT>
</P>
<P><B><FONT SIZE=2 FACE="Trebuchet MS">The following is the setting of services.cfg :</FONT></B>
</P>
<BR>
<P><FONT SIZE=2 FACE="Trebuchet MS"># Service definition</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">define service{</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS">use generic-service ; Name of service template to use</FONT>
</P>
<P> <FONT SIZE=2 FACE="Trebuchet MS">host_name PARAMANP</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS">service_description disk-usage</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> is_volatile 0</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> check_period 24x7</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> max_check_attempts 10</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> normal_check_interval 1</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> retry_check_interval 1</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> contact_groups nt-admins</FONT>
<BR>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> notification_interval 120</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> notification_period 24x7</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS"> notification_options w,u,c,r</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS">check_command apan!nt-disk!150!100</FONT>
<BR> <FONT SIZE=2 FACE="Trebuchet MS">}</FONT>
</P>
<P><B><FONT SIZE=2 FACE="Trebuchet MS">The following is the setting of serviceextinfo.cfg:</FONT></B>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">define serviceextinfo{</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">host_name PARAMANP</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">service_description disk-usage</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">notes_url /nagios/cgi-bin/apan.cgi?host=PARAMANP&service=disk-usage</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">icon_image graph.png</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">icon_image_alt View graphs</FONT>
<BR><FONT SIZE=2 FACE="Trebuchet MS">}</FONT>
</P>
<P><B><FONT SIZE=2 FACE="Trebuchet MS">The following is the setting of apan.cfg:</FONT></B>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">PARAMANP;disk_usage;/usr/local/nagios/rrd/PARAMANP_disk_usage.rrd;c|d;c-used:AREA c-free:STACK c-used:AREA c-free:STACK;Disk usage;Bytes;-l 1 -b 1024;</FONT></P>
<P><FONT SIZE=2 FACE="Trebuchet MS">..</FONT>
</P>
<P><FONT SIZE=2 FACE="Trebuchet MS">I am unable to monitor the disk usage when implementing Apan. If there is no Apan, the check_nt works fine for disk usage. I want to monitor disk usage as well as graph. How to proceed on this ? Please help me.</FONT></P>
<P><FONT SIZE=2 FACE="Trebuchet MS">Any help will be appreciated. Thanks</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2 FACE="Trebuchet MS">Warm regards,</FONT>
</P>
<P><FONT COLOR="#000000" FACE="Arial Narrow">Paraman Pachaimuthu</FONT>
<BR><B><FONT COLOR="#999999" FACE="Arial Narrow">Consultant - Technology & Practices</FONT></B>
<BR><B><FONT COLOR="#FF0000" FACE="Arial Narrow">Microland</FONT><FONT FACE="Arial Narrow"> </FONT><FONT COLOR="#FF0000" FACE="Arial Narrow">Limited</FONT></B>
<BR><U><FONT COLOR="#0000FF" FACE="Arial Narrow">www.microland.net</FONT></U>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial Narrow">Email:</FONT><FONT COLOR="#808080" SIZE=2 FACE="Arial Narrow"></FONT> <FONT SIZE=2 FACE="Arial Narrow"> </FONT><U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial Narrow">paramanp@microland.net</FONT></U>
<BR><FONT SIZE=2 FACE="Arial Narrow">Tel: 91-80-5503313 extn. 151</FONT>
<BR><FONT SIZE=2 FACE="Arial Narrow">Fax: 91-80-5503319</FONT>
<BR><FONT COLOR="#FF0000" SIZE=1 FACE="Trebuchet MS"> </FONT>
</P>
<P><FONT COLOR="#808080" SIZE=2 FACE="Arial Narrow">The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from your computer. Microland takes adequate steps to ensure that its electronic communications are free from viruses. However, given the nature of the Internet, the Company cannot accept liability for any virus introduced by this e-mail or any attachment.</FONT></P>
<BR>
<BR>
</BODY>
</HTML>