80 |
|
|
81 |
<li><b>Monitoring file systems and devices.</b><p> |
<li><b>Monitoring file systems and devices.</b><p> |
82 |
|
|
83 |
Monitoring of file/storage systems. Control file examples: |
Monitoring of file/storage systems. |
84 |
<pre> |
<pre> |
85 |
if filesystem /usr/doc/* > 98% then alert foo@bar |
Statements: |
86 |
if filesystem /dev/hda1 > 90% then alert foo@bar |
CHECK [PROCESS] name options,... |
87 |
if filesystem /tmp has less than 95% free space |
CHECK [FILE|DIRECTORY|DEVICE] PATH options,... |
88 |
then alert foo@bar |
|
89 |
|
|
90 |
|
Control file examples: |
91 |
|
|
92 |
|
# Optionally prefix the current check statement |
93 |
|
# with a process tag |
94 |
|
check process sshd with pidfile "/var/run/sshd.pid" |
95 |
|
start "/etc/init.d/sshd start" |
96 |
|
[...] |
97 |
|
|
98 |
|
|
99 |
|
check device /dev/hda1 |
100 |
|
if used > 100Gb then alert martin or |
101 |
|
if available < 100Mb then alert martin |
102 |
|
if available < 1000inodes then alert martin |
103 |
|
# In case the device is not there anymore |
104 |
|
if error then alert martin |
105 |
|
|
106 |
|
check directory /foo/directory |
107 |
|
if size > 100Mb then alert martin |
108 |
|
# If the directory was deleted |
109 |
|
if deleted then alert security@bar |
110 |
|
|
111 |
|
check file /foo/bar/file |
112 |
|
if size > 10Mb then alert hauk |
113 |
|
if deleted then alert security@bar |
114 |
|
|
115 |
</pre> |
</pre> |
116 |
<p> |
<p> |
117 |
<code> |
<code> |
118 |
<table border=0 cellspacing=5> |
<table border=0 cellspacing=5> |
119 |
<tr> |
<tr> |
120 |
<td width=50%>Responsible:</td><td width=50%>?</td> |
<td width=50%>Responsible:</td><td width=50%>Martin</td> |
121 |
</tr> |
</tr> |
122 |
<tr> |
<tr> |
123 |
<td width=50%>Progress:</td> |
<td width=50%>Progress:</td> |
124 |
<td width=50% bgcolor="#0000aa" align=center><b><font color=#ffffff>0%</font></b></td> |
<td width=50% bgcolor="#00aaaa" align=center><b><font color=#ffffff>10%</font></b></td> |
125 |
</tr> |
</tr> |
126 |
<tr> |
<tr> |
127 |
<td width=50%>Importance:</td><td width=50%>HIGH</td> |
<td width=50%>Importance:</td><td width=50%>HIGH</td> |
131 |
<br> |
<br> |
132 |
<p> |
<p> |
133 |
|
|
134 |
|
<li><b>Central monitoring application.</b><p>If monit is installed and |
135 |
|
runs on many machines it can be usefull to have one application which |
136 |
|
will report the status on all machines by querying with each monit |
137 |
|
daemon instance. |
138 |
|
<p> |
139 |
|
The idea is that by looking at one application you can get an overview |
140 |
|
of the status on every machine running a monit daemon. This |
141 |
|
application will also show statistical and historical data for each |
142 |
|
machine. |
143 |
|
|
144 |
|
<p>This application will either be implemented with a HTML GUI or with |
145 |
|
a GTK GUI. |
146 |
|
|
147 |
|
<p> |
148 |
|
<code> |
149 |
|
<table border=0 cellspacing=5> |
150 |
|
<tr> |
151 |
|
<td width=50%>Responsible:</td><td width=50%>Jan-Henrik</td> |
152 |
|
</tr> |
153 |
|
<tr> |
154 |
|
<td width=50%>Progress:</td> <td width=50% bgcolor="#0000aa" |
155 |
|
align=center><b><font color=#ffffff>0%</font></b></td> |
156 |
|
</tr> |
157 |
|
<tr> |
158 |
|
<td width=50%>Importance:</td><td width=50%>MEDIUM</td> |
159 |
|
</tr> |
160 |
|
</table> |
161 |
|
</code> |
162 |
|
<br> |
163 |
|
<p> |
164 |
|
|
165 |
|
|
166 |
</ol> |
</ol> |
167 |
|
|
168 |
</TD> |
</TD> |