monitor_8c.html 9.06 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>xmlrpc: system/monitor.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>system/monitor.c File Reference</h1><code>#include &lt;stdlib.h&gt;</code><br>
<code>#include &lt;sys/wait.h&gt;</code><br>
<code>#include &lt;stdio.h&gt;</code><br>
<code>#include &lt;string.h&gt;</code><br>
<code>#include &lt;errno.h&gt;</code><br>
<code>#include &lt;signal.h&gt;</code><br>
<code>#include &lt;stdarg.h&gt;</code><br>
<code>#include &quot;<a class="el" href="signalHandling_8h-source.html">../include/signalHandling.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="monitor_8h-source.html">../include/monitor.h</a>&quot;</code><br>

<p>
<a href="monitor_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="monitor_8c.html#d2e5f556fda8453832fa6b5f7c92bc85">MONITORCMD</a>&nbsp;&nbsp;&nbsp;&quot;/usr/bin/monitor&quot;</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="monitor_8c.html#630eb7604f0fe1161c6165cec5200b3d">MONITORTYPE</a>&nbsp;&nbsp;&nbsp;&quot;test&quot;</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="monitor_8c.html#d79291fa6d09c30b5ad1c10c8a5d647f">MONITORNAME</a>&nbsp;&nbsp;&nbsp;&quot;virtualitemlogreceiver&quot;</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="monitor_8c.html#afab1757e8c3bc9c5143490b256cb684">monitor</a> (unsigned int sev, const char *pattern, const char *message)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="monitor_8c.html#13e7bf0022db0d9f5dd6aeb82ec69999">syslogMonitor</a> (unsigned int logLvl, unsigned int sev, const char *pattern, const char *message,...)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="monitor_8c.html#8142dc3c72610140dfcacc52de5881fd">severity</a> [][10]</td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="d2e5f556fda8453832fa6b5f7c92bc85"></a><!-- doxytag: member="monitor.c::MONITORCMD" ref="d2e5f556fda8453832fa6b5f7c92bc85" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MONITORCMD&nbsp;&nbsp;&nbsp;&quot;/usr/bin/monitor&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="monitor_8c-source.html#l00013">13</a> of file <a class="el" href="monitor_8c-source.html">monitor.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="d79291fa6d09c30b5ad1c10c8a5d647f"></a><!-- doxytag: member="monitor.c::MONITORNAME" ref="d79291fa6d09c30b5ad1c10c8a5d647f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MONITORNAME&nbsp;&nbsp;&nbsp;&quot;virtualitemlogreceiver&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="monitor_8c-source.html#l00015">15</a> of file <a class="el" href="monitor_8c-source.html">monitor.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="630eb7604f0fe1161c6165cec5200b3d"></a><!-- doxytag: member="monitor.c::MONITORTYPE" ref="630eb7604f0fe1161c6165cec5200b3d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MONITORTYPE&nbsp;&nbsp;&nbsp;&quot;test&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="monitor_8c-source.html#l00014">14</a> of file <a class="el" href="monitor_8c-source.html">monitor.c</a>.</p>

</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="afab1757e8c3bc9c5143490b256cb684"></a><!-- doxytag: member="monitor.c::monitor" ref="afab1757e8c3bc9c5143490b256cb684" args="(unsigned int sev, const char *pattern, const char *message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int monitor           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>sev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>message</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="monitor_8c-source.html#l00026">26</a> of file <a class="el" href="monitor_8c-source.html">monitor.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="13e7bf0022db0d9f5dd6aeb82ec69999"></a><!-- doxytag: member="monitor.c::syslogMonitor" ref="13e7bf0022db0d9f5dd6aeb82ec69999" args="(unsigned int logLvl, unsigned int sev, const char *pattern, const char *message,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int syslogMonitor           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>logLvl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>sev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="monitor_8c-source.html#l00066">66</a> of file <a class="el" href="monitor_8c-source.html">monitor.c</a>.</p>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="8142dc3c72610140dfcacc52de5881fd"></a><!-- doxytag: member="monitor.c::severity" ref="8142dc3c72610140dfcacc52de5881fd" args="[][10]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char <a class="el" href="monitor_8c.html#8142dc3c72610140dfcacc52de5881fd">severity</a>[][10]          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
    <span class="stringliteral">"info"</span>,
    <span class="stringliteral">"warning"</span>,
    <span class="stringliteral">"critical"</span>,
    <span class="stringliteral">"failure"</span>
}
</pre></div>
<p>Definition at line <a class="el" href="monitor_8c-source.html#l00017">17</a> of file <a class="el" href="monitor_8c-source.html">monitor.c</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Oct 10 01:24:36 2010 for xmlrpc by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>