6.1

Table Of Contents
<option name="process.query"
default="State.Name.eq=sendmail,State.Name.Pne=$1,CredName.User.eq=root"
description="PTQL for Sendmail Root Daemon Process"/>
</config>
<metric name="Availability"
template="sigar:Type=MultiProcCpu,Arg=%process.query%:Processes"
indicator="true"/>
&multi-process-metrics;
</service>
<!-- sendmail-stat metrics -->
<filter name="template"
value="exec:file=pdk/work/scripts/sendmail/hq-sendmail-stat,exec=%exec%:${alias}"/>
<metric name="Messages In Queue"
indicator="true"/>
<metric name="Messages Awaiting Preprocessing"
indicator="true"/>
<!-- protocol services+metrics -->
<service name="SMTP">
<config>
<option name="port"
description="SMTP Post"
default="25"/>
<option name="hostname"
description="SMTP Hostname"
default="localhost"/>
</config>
<filter name="template"
value="SMTP:hostname=%hostname%,port=%port%:${alias}"/>
<metric name="Availability"
indicator="true"/>
<metric name="Inbound Connections"
indicator="true"/>
<metric name="Outbound Connections"
indicator="true"/>
</service>
</server>
<!-- ==================== Plugin Help =========================== -->
<help name="Sendmail">
<![CDATA[
<p>
<h3>Configure HQ for monitoring Sendmail</h3>
</p>
<p>
This plugin needs sudo access as root in order to access the appropriate
<br>
Sendmail dirs.
<br>
To configure sudo (in /etc/sudoers):
<br>
Cmnd_Alias HQ_SENDMAIL_STAT = &lt;hqdir&gt;/agent/pdk/work/scripts/sendmail/hq-sendmail-stat
<br>
Chapter 1 Introduction to Plug-in Development
VMware, Inc. 19