-
Notifications
You must be signed in to change notification settings - Fork 2
/
subagent-shell-functions-conf.xml
46 lines (46 loc) · 1.58 KB
/
subagent-shell-functions-conf.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version='1.0'?>
<config>
<function id="ntpSyncMIB">
<args server="ntp"/>
</function>
<function id="procCountMIB"/>
<function id="osInfoMIB"/>
<function id="lastLoginsMIB"/>
<function id="vmstatMIB"/>
<function id="ip_conntrackMIB"/>
<!--
<function id="asvMib">
<args cmd="curl --connect-timeout 1 -s {}:10181/status | awk '/^[0-9 ]*$/ {print $3}'" hosts="host{1,3,4,5}" />
</function>
<function id="diskStatsMIB">
<args command="ssh localhost cat /proc/diskstats" match="sda\d+" />
</function>
<function id="pingStatMIB">
<args host="www.google.com"/>
<args host="8.8.8.8" count="5" options="-A"/>
</function>
<function id="httpResponseMIB">
<args curl="m.google.com" match="session=(\d+)" description="google" monitoringTemplate="SubagentShellWebService"/>
<args curl="mail.google.com" description="mail"/>
</function>
<function id="apacheStatusMIB">
<args status_url="localhost/server-status?auto" description="standard status"/>
<args status_url="localhost/server-status?auto"/>
</function>
<function id="execCommandMIB">
<args cmd="ls -alh" match="total (.*)$" description="total" monitoringTemplate="SubagentShellCommandStatus"/>
<args cmd="find" match="afile" description="looking for afile in subtree"/>
</function>
<function id="dnsLookUpMIB">
<args fqdn="www.google.com"/>
<args fqdn="mail.google.com"/>
</function>
<function id="rndcStatMIB">
<args stat_file="/var/named/data/named_stats.txt"/>
</function>
<function id="mailqMIB"/>
<function id="nginxStatusMIB">
<args status_url="localhost/server-status?auto" description="standard status"/>
</function>
-->
</config>