\documentclass[DIV=12,%
               BCOR=0mm,%
               headinclude=false,%
               footinclude=false,%
               fontsize=10pt,%
               oneside,%
               paper=210mm:11in]%
               {scrartcl}


\usepackage{microtype}
\usepackage{graphicx}
\usepackage{alltt}
\usepackage{verbatim}
\usepackage[shortlabels]{enumitem}
\usepackage{tabularx}
\usepackage[normalem]{ulem}
\def\hsout{\bgroup \ULdepth=-.55ex \ULset}
% https://tex.stackexchange.com/questions/22410/strikethrough-in-section-title
% Unclear if \protect \hsout is needed. Doesn't looks so
\DeclareRobustCommand{\sout}[1]{\texorpdfstring{\hsout{#1}}{#1}}
\usepackage{wrapfig}

% avoid breakage on multiple <br><br> and avoid the next [] to be eaten
\newcommand*{\forcelinebreak}{\strut\\*{}}

\newcommand*{\hairline}{%
  \bigskip%
  \noindent \hrulefill%
  \bigskip%
}

% reverse indentation for biblio and play

\newenvironment*{amusebiblio}{
  \leftskip=\parindent
  \parindent=-\parindent
  \smallskip
  \indent
}{\smallskip}

\newenvironment*{amuseplay}{
  \leftskip=\parindent
  \parindent=-\parindent
  \smallskip
  \indent
}{\smallskip}

\newcommand*{\Slash}{\slash\hspace{0pt}}


% http://tex.stackexchange.com/questions/3033/forcing-linebreaks-in-url
\PassOptionsToPackage{hyphens}{url}\usepackage[hyperfootnotes=false,hidelinks,breaklinks=true]{hyperref}
\usepackage{bookmark}

\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setmainfont{cmunrm.otf}[Script=Latin,%
 Path=/home/wiki/.fonts/cm-unicode/,%
 BoldFont=cmunbx.otf,%
 BoldItalicFont=cmunbi.otf,%
 ItalicFont=cmunti.otf]
\setmonofont{cmuntt.otf}[Script=Latin,%
 Scale=MatchLowercase,%
 Path=/home/wiki/.fonts/cm-unicode/,%
 BoldFont=cmuntb.otf,%
 BoldItalicFont=cmuntx.otf,%
 ItalicFont=cmunit.otf]
\setsansfont{cmunss.otf}[Script=Latin,%
 Scale=MatchLowercase,%
 Path=/home/wiki/.fonts/cm-unicode/,%
 BoldFont=cmunsx.otf,%
 BoldItalicFont=cmunso.otf,%
 ItalicFont=cmunsi.otf]
\newfontfamily\englishfont{cmunrm.otf}[Script=Latin,%
 Path=/home/wiki/.fonts/cm-unicode/,%
 BoldFont=cmunbx.otf,%
 BoldItalicFont=cmunbi.otf,%
 ItalicFont=cmunti.otf]
% footnote handling
\usepackage[fragile]{bigfoot}
\usepackage{perpage}
\DeclareNewFootnote{default}




\let\chapter\section


% global style

\pagestyle{plain}




\usepackage{indentfirst}

% remove the numbering
\setcounter{secnumdepth}{-2}

% remove labels from the captions
\renewcommand*{\captionformat}{}
\renewcommand*{\figureformat}{}
\renewcommand*{\tableformat}{}
\KOMAoption{captions}{belowfigure,nooneline}
\addtokomafont{caption}{\centering}







\DeclareNewFootnote{B}
\MakeSorted{footnoteB}
\renewcommand*\thefootnoteB{(\arabic{footnoteB})}

\deffootnote[3em]{0em}{4em}{\textsuperscript{\thefootnotemark}~}


\addtokomafont{disposition}{\rmfamily}
\addtokomafont{descriptionlabel}{\rmfamily}


\frenchspacing
% avoid vertical glue
\raggedbottom

% this will generate overfull boxes, so we need to set a tolerance
% \pretolerance=1000
% pretolerance is what is accepted for a paragraph without
% hyphenation, so it makes sense to be strict here and let the user
% accept tweak the tolerance instead.
\tolerance=200
% Additional tolerance for bad paragraphs only
\setlength{\emergencystretch}{30pt}

% (try to) forbid widows/orphans
\clubpenalty=10000
\widowpenalty=10000





% given that we said footinclude=false, this should be safe
\setlength{\footskip}{2\baselineskip}

\title{Monitoring Exim's Mail Queue with Nagios}
\date{2008-04-16}
\author{Stefan Hornburg (Racke)}
\subtitle{}




% https://groups.google.com/d/topic/comp.text.tex/6fYmcVMbSbQ/discussion
\hypersetup{%
pdfencoding=auto,
pdftitle={Monitoring Exim's Mail Queue with Nagios},%
pdfauthor={Stefan Hornburg (Racke)},%
pdfsubject={},%
pdfkeywords={blog; Exim; Nagios}%
}


\begin{document}






\thispagestyle{empty}


  \strut\vskip 2em
  \begin{center}

  {\usekomafont{title}{\huge Monitoring Exim's Mail Queue with Nagios\par}}%
  \vskip 1em
  
  \vskip 2em
  
  {\usekomafont{author}{Stefan Hornburg (Racke)\par}}%
  
  \vskip 1.5em





  
  {\usekomafont{date}{2008-04-16\par}}%
  


  \end{center}


  \vskip 3em
  \par





There is a plugin at Nagios Exchange to monitor Exim's Mail Queue:


\href{http://www.monitoringexchange.org/inventory/Check-Plugins/Software/Mail/check\_eximailqueue}{check\_eximailqueue}.


Put this script into your Nagios plugin directory. Adjust the paths to \texttt{utils.sh} and the exim binary if necessary.


On Debian you need to install \texttt{nagios-plugins-basic} first and use the following


paths:


\begin{alltt}

. /usr/lib/nagios/plugins/utils.sh</code>

EXIM=/usr/sbin/exim4

Install <code>sudo</code> if necessary.

Now add the following line to <code>/etc/sudoers</code> with <code>visudo</code>:

<example>

nagios ALL=NOPASSWD:/usr/sbin/exim4

\end{alltt}


Add a line to \texttt{nrpe\_local.cfg} on your mail server.


\begin{alltt}

command[check\_eximailqueue]=/usr/lib/nagios/plugins/check\_eximailqueue -w 250 -c 500

\end{alltt}


Restart Nagios NRPE server with:


\begin{alltt}

/etc/init.d/nagios-nrpe-server restart

\end{alltt}




% begin final page

\clearpage



% new page for the colophon

\thispagestyle{empty}

\begin{center}

Linuxia Wiki





\strut

\end{center}

\strut

\vfill

\begin{center}


Stefan Hornburg (Racke)

Monitoring Exim's Mail Queue with Nagios



2008-04-16


\bigskip



   

       

       

       

       

       
   



\bigskip
\textbf{wiki.linuxia.de}


\end{center}

% end final page with colophon


\end{document}


% No format ID passed.



