monitor_8c.tex
4.15 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
\hypertarget{monitor_8c}{
\section{system/monitor.c File Reference}
\label{monitor_8c}\index{system/monitor.c@{system/monitor.c}}
}
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$sys/wait.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$errno.h$>$}\par
{\tt \#include $<$signal.h$>$}\par
{\tt \#include $<$stdarg.h$>$}\par
{\tt \#include \char`\"{}../include/signalHandling.h\char`\"{}}\par
{\tt \#include \char`\"{}../include/monitor.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item
\#define \hyperlink{monitor_8c_d2e5f556fda8453832fa6b5f7c92bc85}{MONITORCMD}~\char`\"{}/usr/bin/monitor\char`\"{}
\item
\#define \hyperlink{monitor_8c_630eb7604f0fe1161c6165cec5200b3d}{MONITORTYPE}~\char`\"{}test\char`\"{}
\item
\#define \hyperlink{monitor_8c_d79291fa6d09c30b5ad1c10c8a5d647f}{MONITORNAME}~\char`\"{}virtualitemlogreceiver\char`\"{}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item
int \hyperlink{monitor_8c_afab1757e8c3bc9c5143490b256cb684}{monitor} (unsigned int sev, const char $\ast$pattern, const char $\ast$message)
\item
int \hyperlink{monitor_8c_13e7bf0022db0d9f5dd6aeb82ec69999}{syslogMonitor} (unsigned int logLvl, unsigned int sev, const char $\ast$pattern, const char $\ast$message,...)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item
const char \hyperlink{monitor_8c_8142dc3c72610140dfcacc52de5881fd}{severity} \mbox{[}$\,$\mbox{]}\mbox{[}10\mbox{]}
\end{CompactItemize}
\subsection{Define Documentation}
\hypertarget{monitor_8c_d2e5f556fda8453832fa6b5f7c92bc85}{
\index{monitor.c@{monitor.c}!MONITORCMD@{MONITORCMD}}
\index{MONITORCMD@{MONITORCMD}!monitor.c@{monitor.c}}
\subsubsection[{MONITORCMD}]{\setlength{\rightskip}{0pt plus 5cm}\#define MONITORCMD~\char`\"{}/usr/bin/monitor\char`\"{}}}
\label{monitor_8c_d2e5f556fda8453832fa6b5f7c92bc85}
Definition at line 13 of file monitor.c.\hypertarget{monitor_8c_d79291fa6d09c30b5ad1c10c8a5d647f}{
\index{monitor.c@{monitor.c}!MONITORNAME@{MONITORNAME}}
\index{MONITORNAME@{MONITORNAME}!monitor.c@{monitor.c}}
\subsubsection[{MONITORNAME}]{\setlength{\rightskip}{0pt plus 5cm}\#define MONITORNAME~\char`\"{}virtualitemlogreceiver\char`\"{}}}
\label{monitor_8c_d79291fa6d09c30b5ad1c10c8a5d647f}
Definition at line 15 of file monitor.c.\hypertarget{monitor_8c_630eb7604f0fe1161c6165cec5200b3d}{
\index{monitor.c@{monitor.c}!MONITORTYPE@{MONITORTYPE}}
\index{MONITORTYPE@{MONITORTYPE}!monitor.c@{monitor.c}}
\subsubsection[{MONITORTYPE}]{\setlength{\rightskip}{0pt plus 5cm}\#define MONITORTYPE~\char`\"{}test\char`\"{}}}
\label{monitor_8c_630eb7604f0fe1161c6165cec5200b3d}
Definition at line 14 of file monitor.c.
\subsection{Function Documentation}
\hypertarget{monitor_8c_afab1757e8c3bc9c5143490b256cb684}{
\index{monitor.c@{monitor.c}!monitor@{monitor}}
\index{monitor@{monitor}!monitor.c@{monitor.c}}
\subsubsection[{monitor}]{\setlength{\rightskip}{0pt plus 5cm}int monitor (unsigned int {\em sev}, \/ const char $\ast$ {\em pattern}, \/ const char $\ast$ {\em message})}}
\label{monitor_8c_afab1757e8c3bc9c5143490b256cb684}
Definition at line 26 of file monitor.c.\hypertarget{monitor_8c_13e7bf0022db0d9f5dd6aeb82ec69999}{
\index{monitor.c@{monitor.c}!syslogMonitor@{syslogMonitor}}
\index{syslogMonitor@{syslogMonitor}!monitor.c@{monitor.c}}
\subsubsection[{syslogMonitor}]{\setlength{\rightskip}{0pt plus 5cm}int syslogMonitor (unsigned int {\em logLvl}, \/ unsigned int {\em sev}, \/ const char $\ast$ {\em pattern}, \/ const char $\ast$ {\em message}, \/ {\em ...})}}
\label{monitor_8c_13e7bf0022db0d9f5dd6aeb82ec69999}
Definition at line 66 of file monitor.c.
\subsection{Variable Documentation}
\hypertarget{monitor_8c_8142dc3c72610140dfcacc52de5881fd}{
\index{monitor.c@{monitor.c}!severity@{severity}}
\index{severity@{severity}!monitor.c@{monitor.c}}
\subsubsection[{severity}]{\setlength{\rightskip}{0pt plus 5cm}const char {\bf severity}\mbox{[}$\,$\mbox{]}\mbox{[}10\mbox{]}}}
\label{monitor_8c_8142dc3c72610140dfcacc52de5881fd}
\textbf{Initial value:}
\begin{Code}\begin{verbatim} {
"info",
"warning",
"critical",
"failure"
}
\end{verbatim}
\end{Code}
Definition at line 17 of file monitor.c.