--- /srv/reproducible-results/rbuild-debian/r-b-build.ZxZXFS4i/b1/mon-contrib_1.0+dfsg-4_i386.changes +++ /srv/reproducible-results/rbuild-debian/r-b-build.ZxZXFS4i/b2/mon-contrib_1.0+dfsg-4_i386.changes ├── Files │ @@ -1,2 +1,2 @@ │ │ - 81b60ee84d225078512a844490b82344 73876 admin extra mon-contrib_1.0+dfsg-4_i386.deb │ + f5350b38e92afbd55669f53da6c787e5 74204 admin extra mon-contrib_1.0+dfsg-4_i386.deb ├── mon-contrib_1.0+dfsg-4_i386.deb │ ├── file list │ │ @@ -1,3 +1,3 @@ │ │ -rw-r--r-- 0 0 0 4 2017-08-27 04:57:17.000000 debian-binary │ │ -rw-r--r-- 0 0 0 3472 2017-08-27 04:57:17.000000 control.tar.xz │ │ --rw-r--r-- 0 0 0 70212 2017-08-27 04:57:17.000000 data.tar.xz │ │ +-rw-r--r-- 0 0 0 70540 2017-08-27 04:57:17.000000 data.tar.xz │ ├── control.tar.xz │ │ ├── control.tar │ │ │ ├── ./control │ │ │ │ @@ -1,12 +1,12 @@ │ │ │ │ Package: mon-contrib │ │ │ │ Version: 1.0+dfsg-4 │ │ │ │ Architecture: i386 │ │ │ │ Maintainer: Dario Minnucci │ │ │ │ -Installed-Size: 447 │ │ │ │ +Installed-Size: 449 │ │ │ │ Depends: mon (>= 1.2.0-3) │ │ │ │ Section: admin │ │ │ │ Priority: extra │ │ │ │ Homepage: https://mon.wiki.kernel.org/articles/c/o/n/Contrib_repository.html │ │ │ │ Description: contributed tools, monitors and alert for mon │ │ │ │ mon-contrib is the mon /contrib archive. It contains user-submitted │ │ │ │ add-ons to mon, which are not included in the main mon distribution. │ │ │ ├── ./md5sums │ │ │ │ ├── ./md5sums │ │ │ │ │┄ Files differ │ ├── data.tar.xz │ │ ├── data.tar │ │ │ ├── file list │ │ │ │ @@ -7,15 +7,15 @@ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/ │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 4948 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/aim.alert │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 4041 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/bugzilla.alert │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 3108 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/gnats.alert │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 4477 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/hpov.alert │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 3880 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/ipvs.alert │ │ │ │ --rwxr-xr-x 0 root (0) root (0) 460 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/sms.alert │ │ │ │ +-rwxr-xr-x 0 root (0) root (0) 2330 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/sms.alert │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 3960 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/snapdelete.alert │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 2580 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/alert.d/winpopup.alert │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/mon-local.d/ │ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/mon.d/ │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 6967 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/mon.d/bgp.monitor │ │ │ │ -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 │ │ │ │ -rwxr-xr-x 0 root (0) root (0) 2490 2017-08-27 04:57:17.000000 ./usr/lib/mon-contrib/mon.d/citrix.monitor │ │ │ ├── ./usr/lib/mon-contrib/alert.d/sms.alert │ │ │ │ @@ -1,26 +1,75 @@ │ │ │ │ -#!/usr/bin/perl │ │ │ │ - │ │ │ │ -use Getopt::Std; │ │ │ │ -getopts ("s:g:h:t:l:u"); │ │ │ │ - │ │ │ │ -$summary=; │ │ │ │ -chomp $summary; │ │ │ │ - │ │ │ │ -$rest=""; │ │ │ │ -while () { │ │ │ │ - $rest .= $_; │ │ │ │ -} │ │ │ │ - │ │ │ │ -foreach $number (@ARGV) { │ │ │ │ - │ │ │ │ - # system("echo `date` `id` $number $summary >> /var/lib/mon/sms.alert.log"); │ │ │ │ - │ │ │ │ - open (SMS, "| /usr/bin/gnokii --sendsms $number") || die "could not open pipe to sms: $!\n"; │ │ │ │ - │ │ │ │ - print SMS $summary; │ │ │ │ - print SMS "\n"; │ │ │ │ - print SMS $rest; │ │ │ │ - │ │ │ │ - close (SMS); │ │ │ │ - │ │ │ │ -} │ │ │ │ +#!/usr/bin/perl │ │ │ │ +# │ │ │ │ +# sms.alert - send an alert via SMS (sendsms) v1.5 2003-04-07 │ │ │ │ +# │ │ │ │ +# This will accept multiple phone numbers in @ARGV and call │ │ │ │ +# sendsms for each one of them. │ │ │ │ +# │ │ │ │ +# sendsms-specific options: │ │ │ │ +# -n destination number │ │ │ │ +# -t "message" │ │ │ │ +# host │ │ │ │ +# │ │ │ │ +# Peter Holzleitner, P.Holzleitner@computer.org │ │ │ │ +# Jim Trocki, trockij@transmeta.com │ │ │ │ +# │ │ │ │ +# Copyright (C) 1998, Peter Holzleitner │ │ │ │ +# Copyright (C) 1998, Jim Trocki │ │ │ │ +# │ │ │ │ +# This program is free software; you can redistribute it and/or modify │ │ │ │ +# it under the terms of the GNU General Public License as published by │ │ │ │ +# the Free Software Foundation; either version 2 of the License, or │ │ │ │ +# (at your option) any later version. │ │ │ │ +# │ │ │ │ +# This program is distributed in the hope that it will be useful, │ │ │ │ +# but WITHOUT ANY WARRANTY; without even the implied warranty of │ │ │ │ +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the │ │ │ │ +# GNU General Public License for more details. │ │ │ │ +# │ │ │ │ +# You should have received a copy of the GNU General Public License │ │ │ │ +# along with this program; if not, write to the Free Software │ │ │ │ +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA │ │ │ │ +# │ │ │ │ +# History: │ │ │ │ +# │ │ │ │ +# 1.5 filter single quotes (Erik Bolso) │ │ │ │ +# 1.4 fix loop break bug (Geta Andualem) │ │ │ │ +# 1.0 original release (P.Holzleitner) │ │ │ │ +# │ │ │ │ +use Getopt::Std; │ │ │ │ +use Sys::Syslog; │ │ │ │ + │ │ │ │ +openlog('sms.alert', '', 'user'); │ │ │ │ +getopts ("s:g:h:t:c:f:l:q:u"); │ │ │ │ + │ │ │ │ +# │ │ │ │ +# the first line is summary information, adequate to send to a pager │ │ │ │ +# or email subject line │ │ │ │ +# │ │ │ │ +# the following lines normally contain more detailed information, │ │ │ │ +# but this is monitor-dependent │ │ │ │ +# │ │ │ │ +@MSG=; │ │ │ │ +$summary = shift @MSG; │ │ │ │ +chomp $summary; │ │ │ │ +$detail = join(' ', @MSG); │ │ │ │ +$detail =~ tr/\r\n\'/ /s; │ │ │ │ +$detail = substr($detail, 0, 130); # real cutoff to 160 total done in sendsms │ │ │ │ + │ │ │ │ +$t = localtime($opt_t); │ │ │ │ +($wday,$mon,$day,$tm) = split (/\s+/, $t); │ │ │ │ +($hr,$min,$sec) = split(':', $tm); │ │ │ │ + │ │ │ │ +$ALERT = $opt_u ? "UPALERT" : "ALERT"; │ │ │ │ + │ │ │ │ +foreach $pagedest (@ARGV) { │ │ │ │ + syslog('notice', "sendsms calling $pagedest"); │ │ │ │ + SMS: for($retry = 1; $retry < 4; $retry++) │ │ │ │ + { │ │ │ │ + $res = system("/usr/sbin/sendsms -n '$pagedest' -t '$ALERT $opt_g/$opt_s: $summary ($hr:$min) $detail' &"); │ │ │ │ + last SMS if $res == 0; │ │ │ │ + syslog('warning', "sendsms to $pagedest failed, retrying($retry) after delay"); │ │ │ │ + sleep 15; │ │ │ │ + } │ │ │ │ + sleep 5; │ │ │ │ +}