monitor_8h-source.html
3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!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: include/monitor.h Source File</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 Page</span></a></li>
<li><a href="annotated.html"><span>Data 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 List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<h1>include/monitor.h</h1><a href="monitor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __MONITOR_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __MONITOR_H__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include <syslog.h></span> <span class="comment">/* for logging */</span>
<a name="l00005"></a>00005
<a name="l00006"></a><a class="code" href="monitor_8h.html#d702c7f3311c0b76ee05d7efd27c87b2">00006</a> <span class="preprocessor">#define MON_INFO 0</span>
<a name="l00007"></a><a class="code" href="monitor_8h.html#8eabf82310c059cc80dceaa533a74182">00007</a> <span class="preprocessor"></span><span class="preprocessor">#define MON_WARNING 1</span>
<a name="l00008"></a><a class="code" href="monitor_8h.html#b11b9abcce9ac28426ff81c206e28fc8">00008</a> <span class="preprocessor"></span><span class="preprocessor">#define MON_CRITICAL 2</span>
<a name="l00009"></a><a class="code" href="monitor_8h.html#c41f84ee1d999369a9496a2c49c4181c">00009</a> <span class="preprocessor"></span><span class="preprocessor">#define MON_FAILURE 3</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="keywordtype">int</span> <a class="code" href="monitor_8h.html#afab1757e8c3bc9c5143490b256cb684">monitor</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sev, <span class="keyword">const</span> <span class="keywordtype">char</span> * pattern, <span class="keyword">const</span> <span class="keywordtype">char</span> * message);
<a name="l00012"></a>00012 <span class="keywordtype">int</span> <a class="code" href="monitor_8h.html#5d332cf84a9d6dd9c77382a74960cccf">syslogMonitor</a> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> logLvl, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sev, <span class="keyword">const</span> <span class="keywordtype">char</span> *pattern, <span class="keyword">const</span> <span class="keywordtype">char</span> * message, ...) __attribute__ ((format (printf, 4, 5)));
<a name="l00013"></a>00013
<a name="l00014"></a>00014 <span class="preprocessor">#endif </span><span class="comment">/* __MONITOR_H__ */</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Oct 10 01:24:35 2010 for xmlrpc by
<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>