<!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 6.5.7654.12">
<TITLE>Problem with check_mailq and check_smtp plugins</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 recently rebuilt an e-mail server from scratch, and part of the process was restoring from disk backup the</FONT>

<BR><FONT SIZE=2 FACE="Arial">nrpe directory that was one the original server. The original server ran on the Fedora Core 7 32-bit distribution,</FONT>

<BR><FONT SIZE=2 FACE="Arial">while the new one is running on the CentOS 5.6 64-bit operating system. The version of nrpe that was restored</FONT>

<BR><FONT SIZE=2 FACE="Arial">to the new server is 2.6, while that of the plugins is the 1.4.5 release. The Nagios server is version 3.1.2 running</FONT>

<BR><FONT SIZE=2 FACE="Arial">on a CentOS 5.3 32-bit distribution.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Two of the plugins that I use to monitor the e-mail portion of the server, check_mailq and check_smtp, do not appear</FONT>

<BR><FONT SIZE=2 FACE="Arial">to be working. The error messages that appear on the Nagios server web interface are shown below:</FONT>
</P>

<P><A HREF="http://romonitor/nagios/cgi-bin/extinfo.cgi?type=2&host=hadron&service=Check+Sendmail+Queue"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Check Sendmail Queue</FONT></U></A>    <FONT SIZE=2 FACE="Arial">(check_mailq)</FONT>

<BR><FONT SIZE=2 FACE="Arial">CRITICAL        04-15-2011 15:41:36     0d 3h 7m 54s    4/4     CRITICAL: Error code 78 returned from /usr/bin/mailq    </FONT></P>

<P><A HREF="http://romonitor/nagios/cgi-bin/extinfo.cgi?type=2&host=hadron&service=Check+Sendmail+Server"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Check Sendmail Server</FONT></U></A>   <FONT SIZE=2 FACE="Arial">(check_smtp)</FONT>

<BR><FONT SIZE=2 FACE="Arial">CRITICAL        04-15-2011 15:41:36     0d 3h 7m 54s    4/4     Connection refused </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I tried running both locally on the e-mail server, and while check_mailq appears to work based on the output shown below:</FONT></P>

<P><B><FONT SIZE=2 FACE="Arial">/usr/local/nrpe/libexec/check_mailq -w 30 -c 40 -M sendmail</FONT></B>

<BR><B><FONT SIZE=2 FACE="Arial">OK: mailq is empty|unsent=0;30;40;0     </FONT></B>
</P>

<P><FONT SIZE=2 FACE="Arial">the check_smtp plugin has the following output:</FONT>
</P>

<P><B><FONT SIZE=2 FACE="Arial">Connection refused</FONT></B>

<BR><B><FONT SIZE=2 FACE="Arial">SMTP CRITICAL - 0.059 sec. response time|time=0.058524s;;;0.000000</FONT></B>
</P>

<P><FONT SIZE=2 FACE="Arial">Other plugins that I run on the server, i.e: check_disk, check_zombie_procs, check_imap, are all running without issue.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Does anyone have insight into what is going on, and how it can be corrected? Thanks.</FONT>
</P>
<BR>

<font face="monospace"><br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
http://www.partners.org/complianceline . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.</font></BODY>
</HTML>