Offset 1, 2 lines modified | Offset 1, 2 lines modified | ||
1 | · | 1 | ·9e03993b00cefd0ebfba90bf361bc6b3·74656·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····70996·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:·450 |
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 7, 15 lines modified | Offset 7, 15 lines modified | ||
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/ |
8 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/ | 8 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/ |
9 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4948·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/aim.alert | 9 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4948·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/aim.alert |
10 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4041·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/bugzilla.alert | 10 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4041·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/bugzilla.alert |
11 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3108·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/gnats.alert | 11 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3108·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/gnats.alert |
12 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4477·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/hpov.alert | 12 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····4477·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/hpov.alert |
13 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3880·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/ipvs.alert | 13 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3880·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/ipvs.alert |
14 | -rwxr-xr-x···0·root·········(0)·root·········(0)····· | 14 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····2330·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/sms.alert |
15 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3960·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/snapdelete.alert | 15 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····3960·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/snapdelete.alert |
16 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····2580·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/winpopup.alert | 16 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····2580·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/alert.d/winpopup.alert |
17 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon-local.d/ | 17 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon-local.d/ |
18 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ | 18 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/ |
19 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····6967·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/bgp.monitor | 19 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····6967·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/bgp.monitor |
20 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7258·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/cisco-env.monitor | 20 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····7258·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/cisco-env.monitor |
21 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····2490·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/citrix.monitor | 21 | -rwxr-xr-x···0·root·········(0)·root·········(0)·····2490·2017-08-27·04:57:17.000000·./usr/lib/mon-contrib/mon.d/citrix.monitor |
Offset 1, 26 lines modified | Offset 1, 75 lines modified | ||
1 | #!/usr/bin/perl | 1 | #!/usr/bin/perl |
2 | 2 | # | |
3 | 3 | #·sms.alert·-·send·an·alert·via·SMS·(sendsms)··········v1.5·2003-04-07 | |
4 | 4 | # | |
5 | 5 | #·This·will·accept·multiple·phone·numbers·in·@ARGV·and·call· | |
6 | 6 | #·sendsms·for·each·one·of·them. | |
7 | 7 | # | |
8 | 8 | #·sendsms-specific·options: | |
9 | 9 | #···-n·destination·number | |
10 | 10 | #···-t·"message" | |
11 | 11 | #···host | |
12 | 12 | # | |
13 | 13 | #·Peter·Holzleitner,·P.Holzleitner@computer.org | |
14 | 14 | #·Jim·Trocki,·trockij@transmeta.com | |
15 | 15 | # | |
16 | 16 | #····Copyright·(C)·1998,·Peter·Holzleitner | |
17 | 17 | #····Copyright·(C)·1998,·Jim·Trocki | |
18 | 18 | # | |
19 | 19 | #····This·program·is·free·software;·you·can·redistribute·it·and/or·modify | |
20 | ···· | 20 | #····it·under·the·terms·of·the·GNU·General·Public·License·as·published·by |
21 | ···· | 21 | #····the·Free·Software·Foundation;·either·version·2·of·the·License,·or |
22 | ····p | 22 | #····(at·your·option)·any·later·version. |
23 | 23 | # | |
24 | ···· | 24 | #····This·program·is·distributed·in·the·hope·that·it·will·be·useful, |
25 | 25 | #····but·WITHOUT·ANY·WARRANTY;·without·even·the·implied·warranty·of | |
26 | 26 | #····MERCHANTABILITY·or·FITNESS·FOR·A·PARTICULAR·PURPOSE.··See·the | |
27 | #····GNU·General·Public·License·for·more·details. | ||
28 | # | ||
29 | #····You·should·have·received·a·copy·of·the·GNU·General·Public·License | ||
30 | #····along·with·this·program;·if·not,·write·to·the·Free·Software | ||
31 | #····Foundation,·Inc.,·59·Temple·Place,·Suite·330,·Boston,·MA··02111-1307··USA | ||
32 | # | ||
33 | #·History: | ||
34 | # | ||
35 | #····1.5··filter·single·quotes·(Erik·Bolso) | ||
36 | #····1.4··fix·loop·break·bug·(Geta·Andualem) | ||
37 | #····1.0··original·release·(P.Holzleitner) | ||
38 | # | ||
39 | use·Getopt::Std; | ||
40 | use·Sys::Syslog; | ||
41 | openlog('sms.alert',·'',·'user'); | ||
42 | getopts·("s:g:h:t:c:f:l:q:u"); | ||
43 | # | ||
44 | #·the·first·line·is·summary·information,·adequate·to·send·to·a·pager | ||
45 | #·or·email·subject·line | ||
46 | # | ||
47 | #·the·following·lines·normally·contain·more·detailed·information, | ||
48 | #·but·this·is·monitor-dependent | ||
49 | # | ||
50 | @MSG=<STDIN>; | ||
51 | $summary·=·shift·@MSG; | ||
52 | chomp·$summary; | ||
53 | $detail·=·join('·',·@MSG); | ||
54 | $detail·=~·tr/\r\n\'/···/s; | ||
55 | $detail·=·substr($detail,·0,·130);··#·real·cutoff·to·160·total·done·in·sendsms | ||
56 | $t·=·localtime($opt_t); | ||
57 | ($wday,$mon,$day,$tm)·=·split·(/\s+/,·$t); | ||
58 | ($hr,$min,$sec)·=·split(':',·$tm); | ||
59 | $ALERT·=·$opt_u·?·"UPALERT"·:·"ALERT"; | ||
60 | foreach·$pagedest·(@ARGV)·{ | ||
61 | ··syslog('notice',·"sendsms·calling·$pagedest"); | ||
62 | ··SMS:·for($retry·=·1;·$retry·<·4;·$retry++) | ||
63 | ····{ | ||
64 | ····$res·=·system("/usr/sbin/sendsms·-n·'$pagedest'·-t·'$ALERT·$opt_g/$opt_s:·$summary·($hr:$min)·$detail'·&"); | ||
65 | ····last·SMS·if·$res·==·0; | ||
66 | ····syslog('warning',·"sendsms·to·$pagedest·failed,·retrying($retry)·after·delay"); | ||
67 | ····sleep·15; | ||
68 | ····} | ||
69 | ··sleep·5; | ||
70 | } |