forked from lethain/apache-log-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache-requests.xml
24 lines (24 loc) · 927 Bytes
/
apache-requests.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0"?>
<config>
<apicredentials apikey="%API_KEY%" secretkey="%SECRET_KEY%"/>
<agent name="Apache Agent" interval="60">
<monitor name="Apache monitor - HTTP Requests" tag="apache">
<exectemplate>/usr/local/monitis/apache-log-parser.py -t "unix" -r "min" -m "requests"</exectemplate>
<metric name="Number of GETs">
<type>integer</type>
<uom>Requests/min</uom>
<regex>\d,\s*(\d+)</regex>
</metric>
<metric name="Number of POSTs">
<type>integer</type>
<uom>Requests/min</uom>
<regex>\d,\s*\d+,\s*(\d+)</regex>
</metric>
<metric name="MONITIS_CHECK_TIME">
<type>integer</type>
<uom>timestamp</uom>
<regex>(\d+)</regex>
</metric>
</monitor>
</agent>
</config>