53 |
|
|
54 |
<li><b>Monitoring file systems and devices.</b><p> |
<li><b>Monitoring file systems and devices.</b><p> |
55 |
|
|
|
Monitoring of file/storage systems. |
|
|
<pre> |
|
|
Statements: |
|
|
CHECK [PROCESS] name options,... |
|
|
CHECK [FILE|DIRECTORY|DEVICE] PATH options,... |
|
|
|
|
|
|
|
|
Control file examples: |
|
|
|
|
|
# Optionally prefix the current check statement |
|
|
# with a process tag |
|
|
check process sshd with pidfile "/var/run/sshd.pid" |
|
|
start "/etc/init.d/sshd start" |
|
|
[...] |
|
|
|
|
|
|
|
|
check device /dev/hda1 |
|
|
if used > 100Gb then alert martin or |
|
|
if available < 100Mb then alert martin |
|
|
if available < 1000inodes then alert martin |
|
|
# In case the device is not there anymore |
|
|
if error then alert martin |
|
|
|
|
|
check directory /foo/directory |
|
|
if size > 100Mb then alert martin |
|
|
# If the directory was deleted |
|
|
if deleted then alert security@bar |
|
|
|
|
|
check file /foo/bar/file |
|
|
if size > 10Mb then alert hauk |
|
|
if deleted then alert security@bar |
|
|
|
|
|
</pre> |
|
56 |
<p> |
<p> |
57 |
<code> |
<code> |
58 |
<table border=0 cellspacing=5> |
<table border=0 cellspacing=5> |
61 |
</tr> |
</tr> |
62 |
<tr> |
<tr> |
63 |
<td width=50%>Progress:</td> |
<td width=50%>Progress:</td> |
64 |
<td width=50% bgcolor="#00aaaa" align=center><b><font color=#ffffff>10%</font></b></td> |
<td width=50% bgcolor="green" align=center><b><font color=#ffffff>100%</font></b></td> |
65 |
</tr> |
</tr> |
66 |
<tr> |
<tr> |
67 |
<td width=50%>Importance:</td><td width=50%>HIGH</td> |
<td width=50%>Importance:</td><td width=50%>HIGH</td> |