<!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.0.6487.1">
<TITLE>Nagios scripting question</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I just a have a question that hopefully somebody knows the answer to.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm trying to monitor SMART on unix box using the check_smart.pl script.  I have got it to work but it always reports "No Output!".  The way I have set it up to work is like the following:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">In my services.cfg file I have it setup like this:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">define service {</FONT>

<BR><FONT SIZE=2 FACE="Arial">host_name                      Sentry</FONT>

<BR><FONT SIZE=2 FACE="Arial">service_description            S.M.A.R.T - Status</FONT>

<BR><FONT SIZE=2 FACE="Arial">register                       1</FONT>

<BR><FONT SIZE=2 FACE="Arial">max_check_attempts             1</FONT>

<BR><FONT SIZE=2 FACE="Arial">normal_check_interval          3</FONT>

<BR><FONT SIZE=2 FACE="Arial">retry_check_interval           1</FONT>

<BR><FONT SIZE=2 FACE="Arial">check_period                   24x7</FONT>

<BR><FONT SIZE=2 FACE="Arial">notification_interval          0</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">contact_groups                 ntadmins</FONT>

<BR><FONT SIZE=2 FACE="Arial">check_command                  "/usr/local/nagios/etc/scheck.sh SMART"</FONT>

<BR><FONT SIZE=2 FACE="Arial">}</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">and in the scheck.sh file:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">if [ $1 = 'SMART' ] ; then</FONT>

<BR><FONT SIZE=2 FACE="Arial">/usr/local/nagios/libexec/check_smart.pl -t -d /dev/hda</FONT>

<BR><FONT SIZE=2 FACE="Arial">fi</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This works fine but it show up as NO OUTPUT within nagios.  I want to be able to see the results of this command with Nagios.  Does anyone know how to do this?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance…..</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Neil</FONT>
</P>

</BODY>
</HTML>