1title Monitor Various Aspects of the Running Host
2description The following check up on various aspects of a host.
3
4token proc
5info Check for processes that should be running.
6info #  proc NAME [MAX=0] [MIN=0]
7info #
8info #  NAME:  the name of the process to check for.  It must match
9info #         exactly (ie, http will not find httpd processes).
10info #  MAX:   the maximum number allowed to be running.  Defaults to 0.
11info #  MIN:   the minimum number to be running.  Defaults to 0.
12info #
13info The results are reported in the prTable section of the UCD-SNMP-MIB tree
14info Special Case:  When the min and max numbers are both 0, it assumes
15info you want a max of infinity and a min of 1.
16question 1 Name of the process you want to check on
17question 2 Maximum number of processes named '$1' that should be running [default = 0]
18question 3 Minimum number of processes named '$1' that should be running [default = 0]
19
20token disk
21info Check for disk space usage of a partition.
22info The agent can check the amount of available disk space, and make
23info sure it is above a set limit.
24info
25info # disk PATH [MIN=100000]
26info #
27info # PATH:  mount path to the disk in question.
28info # MIN:   Disks with space below this value will have the Mib's errorFlag set.
29info #        Can be a raw integer value (units of kB) or a percentage followed by the %
30info #        symbol.  Default value = 100000.
31info #
32info The results are reported in the dskTable section of the UCD-SNMP-MIB tree
33question 1 Enter the mount point for the disk partion to be checked on
34question 2 Enter the minimum amount of space that should be available on $1
35
36token load
37info Check for unreasonable load average values.
38info Watch the load average levels on the machine.
39info
40info # load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
41info #
42info # 1MAX:   If the 1 minute load average is above this limit at query
43info #         time, the errorFlag will be set.
44info # 5MAX:   Similar, but for 5 min average.
45info # 15MAX:  Similar, but for 15 min average.
46info #
47info The results are reported in the laTable section of the UCD-SNMP-MIB tree
48question 1 Enter the maximum allowable value for the 1 minute load average
49question 2 Enter the maximum allowable value for the 5 minute load average
50question 3 Enter the maximum allowable value for the 15 minute load average
51validanswer 1 ^[\d\.]+$
52validanswer 2 ^([\d\.]+|)$
53validanswer 3 ^([\d\.]+|)$
54
55token file
56info Check on the size of a file.
57info Display a files size statistics.
58info If it grows to be too large, report an error about it.
59info
60info # file /path/to/file [maxsize_in_kilobytes]
61info #
62info #   if maxsize is not specified, assume only size reporting is needed.
63info #
64info The results are reported in the fileTable section of the UCD-SNMP-MIB tree
65question 1 Enter the path to the file you wish to monitor
66question 2 Enter the maximum size (in kilobytes) allowable for $1
67
68group monitoring_services
69multiple proc Do you want to configure the agents ability to monitor processes?
70multiple disk Do you want to configure the agents ability to monitor disk space?
71multiple load Do you want to configure the agents ability to monitor load average?
72multiple file Do you want to configure the agents ability to monitor file sizes?
73