Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·5bdd41b78044e19a42c4475acd3a07a8·74376·admin·extra·mon-contrib_1.0+dfsg-4_armhf.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2017-08-27·04:57:17.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2017-08-27·04:57:17.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····34 | 2 | -rw-r--r--···0········0········0·····3468·2017-08-27·04:57:17.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0····70 | 3 | -rw-r--r--···0········0········0····70716·2017-08-27·04:57:17.000000·data.tar.xz |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | Package:·mon-contrib | 1 | Package:·mon-contrib |
2 | Version:·1.0+dfsg-4 | 2 | Version:·1.0+dfsg-4 |
3 | Architecture:·armhf | 3 | Architecture:·armhf |
4 | Maintainer:·Dario·Minnucci·<midget@debian.org> | 4 | Maintainer:·Dario·Minnucci·<midget@debian.org> |
5 | Installed-Size:·4 | 5 | Installed-Size:·453 |
6 | Depends:·mon·(>=·1.2.0-3) | 6 | Depends:·mon·(>=·1.2.0-3) |
7 | Section:·admin | 7 | Section:·admin |
8 | Priority:·extra | 8 | Priority:·extra |
9 | Homepage:·https://mon.wiki.kernel.org/articles/c/o/n/Contrib_repository.html | 9 | Homepage:·https://mon.wiki.kernel.org/articles/c/o/n/Contrib_repository.html |
10 | Description:·contributed·tools,·monitors·and·alert·for·mon | 10 | Description:·contributed·tools,·monitors·and·alert·for·mon |
11 | ·mon-contrib·is·the·mon·/contrib·archive.·It·contains·user-submitted | 11 | ·mon-contrib·is·the·mon·/contrib·archive.·It·contains·user-submitted |
12 | ·add-ons·to·mon,·which·are·not·included·in·the·main·mon·distribution. | 12 | ·add-ons·to·mon,·which·are·not·included·in·the·main·mon·distribution. |
Offset 33, 15 lines modified | Offset 33, 15 lines modified | ||
33 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····1289·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ipsec.monitor | 33 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····1289·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ipsec.monitor |
34 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····2301·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ipvs.monitor | 34 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····2301·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ipvs.monitor |
35 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7051·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/krb5.monitor | 35 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7051·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/krb5.monitor |
36 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3837·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/lmtp.monitor | 36 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3837·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/lmtp.monitor |
37 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····5088·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/mailloop.monitor | 37 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····5088·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/mailloop.monitor |
38 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3857·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/mupdate.monitor | 38 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3857·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/mupdate.monitor |
39 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7497·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/netsnmp-exec.monitor | 39 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7497·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/netsnmp-exec.monitor |
40 | -rwxr-xr-x···0·root·········(0)·root·········(0)····· | 40 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····6648·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/netsnmp-freespace.monitor |
41 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7359·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/netsnmp-proc.monitor | 41 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7359·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/netsnmp-proc.monitor |
42 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7799·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/netwarefree.monitor | 42 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7799·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/netwarefree.monitor |
43 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····8405·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ospf.monitor | 43 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····8405·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ospf.monitor |
44 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3165·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/postgresql.monitor | 44 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3165·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/postgresql.monitor |
45 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4415·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/printmib.monitor | 45 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4415·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/printmib.monitor |
46 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3314·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/process-full-command-line.monitor | 46 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3314·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/process-full-command-line.monitor |
47 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····5740·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/pubcookielogin.monitor | 47 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····5740·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/pubcookielogin.monitor |
Offset 94, 15 lines modified | Offset 94, 15 lines modified | ||
94 | -rw-r--r--···0·root·········(0)·root·········(0)·····1421·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/informix.monitor.README | 94 | -rw-r--r--···0·root·········(0)·root·········(0)·····1421·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/informix.monitor.README |
95 | -rw-r--r--···0·root·········(0)·root·········(0)······921·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/informixdbspace.monitor.README | 95 | -rw-r--r--···0·root·········(0)·root·········(0)······921·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/informixdbspace.monitor.README |
96 | -rw-r--r--···0·root·········(0)·root·········(0)·····1410·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/ipsec.monitor.README | 96 | -rw-r--r--···0·root·········(0)·root·········(0)·····1410·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/ipsec.monitor.README |
97 | -rw-r--r--···0·root·········(0)·root·········(0)······982·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/krb5.monitor.README | 97 | -rw-r--r--···0·root·········(0)·root·········(0)······982·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/krb5.monitor.README |
98 | -rw-r--r--···0·root·········(0)·root·········(0)······439·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/lwp-http.mon.README | 98 | -rw-r--r--···0·root·········(0)·root·········(0)······439·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/lwp-http.mon.README |
99 | -rw-r--r--···0·root·········(0)·root·········(0)·····2517·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/mailloop.monitor.README | 99 | -rw-r--r--···0·root·········(0)·root·········(0)·····2517·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/mailloop.monitor.README |
100 | -rw-r--r--···0·root·········(0)·root·········(0)·····2345·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/netsnmp-exec.monitor.README | 100 | -rw-r--r--···0·root·········(0)·root·········(0)·····2345·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/netsnmp-exec.monitor.README |
101 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 101 | -rw-r--r--···0·root·········(0)·root·········(0)·····2116·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/netsnmp-freespace.monitor.README |
102 | -rw-r--r--···0·root·········(0)·root·········(0)······980·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/netsnmp-proc.monitor.README | 102 | -rw-r--r--···0·root·········(0)·root·········(0)······980·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/netsnmp-proc.monitor.README |
103 | -rw-r--r--···0·root·········(0)·root·········(0)·····1784·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/postgresql.monitor.README | 103 | -rw-r--r--···0·root·········(0)·root·········(0)·····1784·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/postgresql.monitor.README |
104 | -rw-r--r--···0·root·········(0)·root·········(0)·····1462·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/printmib.monitor.README | 104 | -rw-r--r--···0·root·········(0)·root·········(0)·····1462·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/printmib.monitor.README |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······253·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/process-full-command-line.monitor.README | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······253·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/process-full-command-line.monitor.README |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······906·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/radius.monitor.detailcheck.README | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······906·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/radius.monitor.detailcheck.README |
107 | -rw-r--r--···0·root·········(0)·root·········(0)·····3522·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/remote.monitor.README | 107 | -rw-r--r--···0·root·········(0)·root·········(0)·····3522·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/remote.monitor.README |
108 | -rw-r--r--···0·root·········(0)·root·········(0)·····2090·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/rptr.monitor.README | 108 | -rw-r--r--···0·root·········(0)·root·········(0)·····2090·2017-08-27·04:57:17.000000·./usr/share/doc/mon-contrib/monitors/rptr.monitor.README |
Offset 1, 29 lines modified | Offset 1, 50 lines modified | ||
1 | #!/usr/bin/perl | 1 | #!/usr/bin/perl |
2 | # | 2 | # |
3 | #·Monitor·diskspace·via·SNMP | 3 | #·Monitor·diskspace·via·SNMP |
4 | #·(based·on·process.monitor·by·Brian·Moore) | 4 | #·(based·on·process.monitor·by·Brian·Moore) |
5 | # | 5 | # |
6 | #· | 6 | #·Originally·written·by·SATOH·Fumiyasu·<fumiya@samba.gr.jp>. |
7 | #·Modified·Oct·2001·by·Dan·Urist·<durist@world.std.com> | ||
8 | #···Changes:·added·usage,·SNMP·v.3·support,·-T·threshold·option·and | ||
9 | #············unique-ified·errors | ||
10 | # | ||
11 | #·Usage: | ||
12 | #·······[-h]················#·Usage | ||
13 | #·······[-t·Timeout]········#·Timeout·in·ms·(default:·1000000) | ||
14 | #·······[-r·Retries]········#·Retries·before·failure·(default:·5) | ||
15 | #·······[-v·SNMPversion]····#·1,2,2c·or·3·(default:·1) | ||
16 | #·······[-c·Community]······#·For·SNMP·v.1,2,2c·(default:·public) | ||
17 | #·······[-u·snmpuser]·······#·For·SNMP·v.3·(default:·initial) | ||
18 | #·······[-l·seclevel]·······#·For·SNMP·v.3·(default:·noAuthNoPriv) | ||
19 | #·······[-A·authpassphrase]·#·For·SNMP·v.3· | ||
20 | #·······[-T·threshold]······#·If·a·disk·threshold·is·given,·the·script | ||
21 | #···························#·will·exit·with·the·value·of·the·highest | ||
22 | #···························#·disk·percentage·found·that·is·over·the | ||
23 | #···························#·threshold;·if·no·disks·are·over·the·threshold | ||
24 | #···························#·it·will·exit·with·value·0,·and·it·will·exit | ||
25 | #···························#·with·value·2·for·SNMP·error | ||
26 | #·······host·[host·...] | ||
7 | # | 27 | # |
8 | #·[-c·community]·host·[host·...] | ||
9 | # | 28 | # |
10 | #·This·script·will·exit·with·value·1·if·host:community·has·dskErrorFlag | 29 | #·This·script·will·exit·with·value·1·if·host:community·has·dskErrorFlag |
11 | #·set.··The·summary·output·line·will·be·the·host·names·that·failed | 30 | #·set.··The·summary·output·line·will·be·the·host·names·that·failed |
12 | #·and·the·disk·information.··The·detail·lines·are·what·UCD·snmp·returns | 31 | #·and·the·disk·information.··The·detail·lines·are·what·UCD·snmp·returns |
13 | #·for·an·dskErrMessage.·('/filesystem:·less·than·WATERMARK·free·(=·CURRENT)'). | 32 | #·for·an·dskErrMessage.·('/filesystem:·less·than·WATERMARK·free·(=·CURRENT)'). |
14 | #·If·there·is·an·SNMP·error·(either·a·problem·with·the·SNMP·libraries, | 33 | #·If·there·is·an·SNMP·error·(either·a·problem·with·the·SNMP·libraries, |
15 | #·or·a·problem·communicating·via·SNMP·with·the·destination·host), | 34 | #·or·a·problem·communicating·via·SNMP·with·the·destination·host), |
16 | #·this·script·will·exit·with·a·warning·value·of·2. | 35 | #·this·script·will·exit·with·a·warning·value·of·2. |
17 | # | 36 | # |
18 | #·There·probably·should·be·a·better·way·to·specify·a·given·filesystem·to | ||
19 | #·watch·instead·of·everything-ucd-snmp-is-watching. | ||
20 | # | ||
21 | #·$Id:·netsnmp-freespace.monitor,v·1.2·2005/03/18·19:25:27·trockij·Exp·$ | ||
22 | # | 37 | #·If·the·-T·threshold·option·is·used,·the·script·will·exit·with·the |
38 | #·highest·disk·percentage·found·that·is·over·the·threshold.·The·intent | ||
39 | #·is·to·allow·use·with·mon's·"alert·exit=value"·parameter·to·allow·for | ||
40 | #·finer-grained·alerts·based·on·disk·usage.··If·no·disks·are·over·the | ||
41 | #·threshold,·the·script·will·exit·with·value·0;·if·an·SNMP·error | ||
42 | #·occurs·(and·there·are·no·other·errors),·the·script·will·exit·with | ||
43 | #·value·2. | ||
23 | # | 44 | # |
24 | #····Copyright·(C)·2001·SATOH·Fumiyasu·<fumiya@samba.gr.jp> | 45 | #····Copyright·(C)·2001·SATOH·Fumiyasu·<fumiya@samba.gr.jp> |
25 | # | 46 | # |
26 | #····This·program·is·free·software;·you·can·redistribute·it·and/or·modify | 47 | #····This·program·is·free·software;·you·can·redistribute·it·and/or·modify |
27 | #····it·under·the·terms·of·the·GNU·General·Public·License·as·published·by | 48 | #····it·under·the·terms·of·the·GNU·General·Public·License·as·published·by |
28 | #····the·Free·Software·Foundation;·either·version·2·of·the·License,·or | 49 | #····the·Free·Software·Foundation;·either·version·2·of·the·License,·or |
29 | #····(at·your·option)·any·later·version. | 50 | #····(at·your·option)·any·later·version. |
Offset 33, 69 lines modified | Offset 54, 132 lines modified | ||
33 | #····MERCHANTABILITY·or·FITNESS·FOR·A·PARTICULAR·PURPOSE.··See·the | 54 | #····MERCHANTABILITY·or·FITNESS·FOR·A·PARTICULAR·PURPOSE.··See·the |
34 | #····GNU·General·Public·License·for·more·details. | 55 | #····GNU·General·Public·License·for·more·details. |
35 | # | 56 | # |
36 | #····You·should·have·received·a·copy·of·the·GNU·General·Public·License | 57 | #····You·should·have·received·a·copy·of·the·GNU·General·Public·License |
37 | #····along·with·this·program;·if·not,·write·to·the·Free·Software | 58 | #····along·with·this·program;·if·not,·write·to·the·Free·Software |
38 | #····Foundation,·Inc.,·59·Temple·Place,·Suite·330,·Boston,·MA··02111-1307··USA | 59 | #····Foundation,·Inc.,·59·Temple·Place,·Suite·330,·Boston,·MA··02111-1307··USA |
39 | # | 60 | # |
40 | use·SNMP; | 61 | use·SNMP;· |
41 | use·Getopt::Std; | 62 | use·Getopt::Std; |
42 | $ENV{'MIBS'}·=·"UCD-SNMP-MIB"; | 63 | $ENV{'MIBS'}·=·"UCD-SNMP-MIB"; |
43 | getopts("c:"); | ||
44 | 64 | getopts("ht:r:v:c:u:l:A:T:"); | |
65 | my·$VERSION·=·"0.1"; | ||
66 | if(·$opt_h·||·(scalar·@ARGV·==·0)·){ | ||
67 | ··print·<<"USAGE"; | ||
68 | $0·Version·$VERSION;·original·version·by·SATOH·Fumiyasu·<fumiya@samba.gr.jp>, | ||
69 | SNMP·v.3·support·by·Daniel·J.·Urist·<durist\@world.std.com>. | ||
45 | 70 | Usage: | |
71 | ······[-h]················#·Usage | ||
72 | ······[-t·Timeout]········#·Timeout·in·ms·(default:·1000000) | ||
73 | ······[-r·Retries]········#·Retries·before·failure·(default:·5) | ||
74 | ······[-v·SNMPversion]····#·1,2,2c·or·3·(default:·1) | ||
75 | ······[-c·Community]······#·For·SNMP·v.1,2,2c·(default:·public) | ||
76 | ······[-u·snmpuser]·······#·For·SNMP·v.3·(default:·initial) | ||
77 | ······[-l·seclevel]·······#·For·SNMP·v.3·(default:·noAuthNoPriv) | ||
78 | ······[-A·authpassphrase]·#·For·SNMP·v.3· | ||
79 | ······[-T·threshold]······#·If·a·disk·threshold·is·given,·the·script·will·exit | ||
80 | ··························#·with·the·value·of·the·highest·disk·percentage·found | ||
81 | ··························#·that·is·over·the·threshold;·if·no·disks·are·over·the | ||
82 | ··························#·the·threshold·it·will·exit·with·value·0,·and·it·will | ||
83 | ··························#·exit·with·value·2·for·SNMP·error | ||
84 | ······host·[host·...] | ||
85 | USAGE | ||
86 | ··exit; | ||
87 | } | ||
46 | foreach·$host·(@ARGV)·{ | ||
47 | ····$session·=·new·SNMP::Session(DestHost·=>·$host, | ||
48 | ·································Community·=>·$community); | ||
49 | ····if·(!defined·($session))·{ | ||
50 | ····» $RETVAL·=·($RETVAL·==·1)·?·1·:·2; | ||
51 | » push·@failures,·"$host·session·error"; | ||
52 | » push·@longerr,·"$host·could·not·get·SNMP·session"; | ||
53 | » next; | ||
54 | ····} | ||
55 | ····my·$v·=·new·SNMP::Varbind·(["dskIndex"]); | ||
56 | ···· | 88 | #·FIXME·we·should·probably·offer·all·the·v3·options·that·the·SNMP·module·does |
89 | my·$Timeout·=·$opt_t·||·1000000; | ||
90 | my·$Retries·=·$opt_r·||·5; | ||
91 | my·$SNMPVersion·=·$opt_v·||·1; | ||
92 | my·$Community·=·$opt_c·||·'public'; | ||
93 | my·$SecName·=·$opt_u·||·'initial';· | ||
94 | my·$SecLevel·=·$opt_l·||·'noAuthNoPriv'; | ||
95 | my·$Authpass·=·$opt_A·||·''; | ||
96 | my·$Threshold·=·$opt_T·if·defined($opt_T); | ||
97 | my·%SNMPARGS·=·( | ||
98 | » » Timeout·=>·$Timeout, | ||
99 | » » Version·=>·$SNMPVersion, | ||
100 | » ·······); | ||
101 | if·($SNMPVersion·eq·"3"){ | ||
102 | ··$SNMPARGS{SecName}·=·$SecName; | ||
103 | ··$SNMPARGS{SecLevel}·=·$SecLevel; | ||
104 | ··$SNMPARGS{AuthPass}·=·$Authpass; | ||
105 | } | ||
Max diff block lines reached; 3042/8530 bytes (35.66%) of diff not shown. |
Offset 1, 20 lines modified | Offset 1, 43 lines modified | ||
1 | Date:·Thu,·21·Jun·2001·05:46:47·+0900 | ||
2 | From:·SATOH·Fumiyasu·<fumiya@samba.gr.jp> | ||
3 | To:·trockij@transmeta.com | ||
4 | 1 | # | |
2 | #·Monitor·diskspace·via·SNMP | ||
3 | #·(based·on·process.monitor·by·Brian·Moore) | ||
4 | # | ||
5 | #·Originally·written·by·SATOH·Fumiyasu·<fumiya@samba.gr.jp>. | ||
6 | #·Modified·Oct·2001·by·Dan·Urist·<durist@world.std.com> | ||
7 | #···Changes:·added·usage,·SNMP·v.3·support,·-T·threshold·option·and | ||
8 | #············unique-ified·errors | ||
9 | # | ||
10 | #·Usage: | ||
11 | #·······[-h]················#·Usage | ||
12 | #·······[-t·Timeout]········#·Timeout·in·ms·(default:·1000000) | ||
13 | #·······[-r·Retries]········#·Retries·before·failure·(default:·5) | ||
14 | #·······[-v·SNMPversion]····#·1,2,2c·or·3·(default:·1) | ||
15 | #·······[-c·Community]······#·For·SNMP·v.1,2,2c·(default:·public) | ||
16 | #·······[-u·snmpuser]·······#·For·SNMP·v.3·(default:·initial) | ||
17 | #·······[-l·seclevel]·······#·For·SNMP·v.3·(default:·noAuthNoPriv) | ||
18 | #·······[-A·authpassphrase]·#·For·SNMP·v.3· | ||
19 | #·······[-T·threshold]······#·If·a·disk·threshold·is·given,·the·script | ||
20 | #···························#·will·exit·with·the·value·of·the·highest | ||
21 | #···························#·disk·percentage·found·that·is·over·the | ||
22 | #···························#·threshold;·if·no·disks·are·over·the·threshold | ||
23 | #···························#·it·will·exit·with·value·0,·and·it·will·exit | ||
24 | #···························#·with·value·2·for·SNMP·error | ||
25 | #·······host·[host·...] | ||
26 | # | ||
27 | # | ||
28 | #·This·script·will·exit·with·value·1·if·host:community·has·dskErrorFlag | ||
29 | #·set.··The·summary·output·line·will·be·the·host·names·that·failed | ||
30 | #·and·the·disk·information.··The·detail·lines·are·what·UCD·snmp·returns | ||
31 | #·for·an·dskErrMessage.·('/filesystem:·less·than·WATERMARK·free·(=·CURRENT)'). | ||
32 | #·If·there·is·an·SNMP·error·(either·a·problem·with·the·SNMP·libraries, | ||
33 | #·or·a·problem·communicating·via·SNMP·with·the·destination·host), | ||
34 | #·this·script·will·exit·with·a·warning·value·of·2. | ||
35 | # | ||
36 | #·If·the·-T·threshold·option·is·used,·the·script·will·exit·with·the | ||
37 | #·highest·disk·percentage·found·that·is·over·the·threshold.·The·intent | ||
38 | #·is·to·allow·use·with·mon's·"alert·exit=value"·parameter·to·allow·for | ||
39 | #·finer-grained·alerts·based·on·disk·usage.··If·no·disks·are·over·the | ||
40 | #·threshold,·the·script·will·exit·with·value·0;·if·an·SNMP·error | ||
41 | #·occurs·(and·there·are·no·other·errors),·the·script·will·exit·with | ||
42 | #·value·2. | ||
5 | Hi,·``mon''·developper. | ||
6 | I·wrote·freespace-snmp.monitor·based·on·process.monitor·for·mon. | ||
7 | This·monitors·disk·space·via·SNMP·(NET-SNMP,·aka·UCD-SNMP). | ||
8 | I·want·to·commit·this·monitor·to·mon·archive.·Any·comments? | ||
9 | If·you·think·that·``freespace-snmp''·is·not·suitable·name, | ||
10 | please·name·this·monitor·as·you·wish·:-). | ||
11 | SATOH·Fumiyasu·-·fumiya·@net-thrust.com,·@samba.gr.jp,·@namazu.org·or·... | ||
12 | THRUST·Co.,·Ltd.·@·Fujisawa,·Kanagawa,·Japan·-·http://www.net-thrust.com | ||
13 | Samba-JP,·aka·`Samba·Users·Group·Japan'······-·http://www.samba.gr.jp | ||
14 | Apache-JP(?),·aka·`Japan·Apache·Users·Group'·-·http://www.apache.or.jp | ||
15 | Namazu,·a·full-text·search·engine············-·http://www.namazu.org |