<86>Jul 6 08:14:36 userdel[3838044]: delete user 'rooter' <86>Jul 6 08:14:36 userdel[3838044]: removed group 'rooter' owned by 'rooter' <86>Jul 6 08:14:36 userdel[3838044]: removed shadow group 'rooter' owned by 'rooter' <86>Jul 6 08:14:36 groupadd[3838065]: group added to /etc/group: name=rooter, GID=549 <86>Jul 6 08:14:36 groupadd[3838065]: group added to /etc/gshadow: name=rooter <86>Jul 6 08:14:36 groupadd[3838065]: new group: name=rooter, GID=549 <86>Jul 6 08:14:36 useradd[3838084]: new user: name=rooter, UID=549, GID=549, home=/root, shell=/bin/bash <86>Jul 6 08:14:36 userdel[3838106]: delete user 'builder' <86>Jul 6 08:14:36 userdel[3838106]: removed group 'builder' owned by 'builder' <86>Jul 6 08:14:36 userdel[3838106]: removed shadow group 'builder' owned by 'builder' <86>Jul 6 08:14:36 groupadd[3838116]: group added to /etc/group: name=builder, GID=550 <86>Jul 6 08:14:36 groupadd[3838116]: group added to /etc/gshadow: name=builder <86>Jul 6 08:14:36 groupadd[3838116]: new group: name=builder, GID=550 <86>Jul 6 08:14:36 useradd[3838120]: new user: name=builder, UID=550, GID=550, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/nagios-plugins-check_monit-1.4-alt3.src.rpm: The use of such a license name is ambiguous: GPL <13>Jul 6 08:14:39 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Jul 6 08:14:39 rpmi: libexpat-2.2.9-alt1 sisyphus+252464.200.2.1 1590958865 installed <13>Jul 6 08:14:39 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jul 6 08:14:39 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Jul 6 08:14:39 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jul 6 08:14:39 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jul 6 08:14:39 rpmi: ca-certificates-2020.06.29-alt1 sisyphus+254237.300.1.1 1593450881 installed <13>Jul 6 08:14:39 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Jul 6 08:14:39 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jul 6 08:14:40 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Jul 6 08:14:40 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Jul 6 08:14:40 rpmi: python3-3.8.3-alt1 sisyphus+251775.300.4.1 1592726546 installed <13>Jul 6 08:14:41 rpmi: python3-base-3.8.3-alt1 sisyphus+251775.300.4.1 1592726546 installed <13>Jul 6 08:14:41 rpmi: libpython3-3.8.3-alt1 sisyphus+251775.300.4.1 1592726546 installed <13>Jul 6 08:14:41 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Jul 6 08:14:41 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Jul 6 08:14:44 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Jul 6 08:14:44 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Jul 6 08:14:44 rpmi: libffi6-1:3.2.1-alt4 sisyphus+251953.300.2.1 1589891360 installed <13>Jul 6 08:14:44 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Jul 6 08:14:44 groupadd[3851362]: group added to /etc/group: name=_keytab, GID=499 <86>Jul 6 08:14:44 groupadd[3851362]: group added to /etc/gshadow: name=_keytab <86>Jul 6 08:14:44 groupadd[3851362]: new group: name=_keytab, GID=499 <13>Jul 6 08:14:44 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137330 installed <13>Jul 6 08:14:44 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Jul 6 08:14:44 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Jul 6 08:14:44 rpmi: python-modules-encodings-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:44 rpmi: python-modules-compiler-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:44 rpmi: python-modules-email-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:44 rpmi: python-modules-unittest-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:45 rpmi: python-modules-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:45 rpmi: python-modules-nis-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:45 rpmi: python-modules-ctypes-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:45 rpmi: python-modules-multiprocessing-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:45 rpmi: python-modules-logging-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 6 08:14:45 rpmi: python-tools-2to3-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/nagios-plugins-check_monit-1.4-alt3.nosrc.rpm Installing nagios-plugins-check_monit-1.4-alt3.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.42424 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf nagios-plugins-check_monit-1.4 + echo 'Source #0 (nagios-plugins-check_monit-1.4.tar):' Source #0 (nagios-plugins-check_monit-1.4.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/nagios-plugins-check_monit-1.4.tar + cd nagios-plugins-check_monit-1.4 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (fix-encode-py3.patch):' Patch #0 (fix-encode-py3.patch): + /usr/bin/patch -p1 patching file check_monit.py + find -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./check_monit.py RefactoringTool: Files that were modified: RefactoringTool: ./check_monit.py --- ./check_monit.py (original) +++ ./check_monit.py (refactored) @@ -2,7 +2,7 @@ VERSION="%prog 1.4" -import httplib +import http.client from optparse import OptionParser import sys import xml.etree.ElementTree @@ -37,7 +37,7 @@ ), } -for (k, v) in svc_types.items(): svc_types[v] = k +for (k, v) in list(svc_types.items()): svc_types[v] = k xml_hacks = ( (re.compile(r"(?!.*?)", @@ -62,24 +62,24 @@ opts = None def ok(message): - print "OK: %s%s"%(message,perfdata_string) + print("OK: %s%s"%(message,perfdata_string)) sys.exit(0) def warning(message): - print "WARNING: %s%s"%(message,perfdata_string) + print("WARNING: %s%s"%(message,perfdata_string)) sys.exit(1) def critical(message): - print "CRITICAL: %s%s"%(message,perfdata_string) + print("CRITICAL: %s%s"%(message,perfdata_string)) sys.exit(2) def unknown(message): - print "UNKNOWN: %s%s"%(message,perfdata_string) + print("UNKNOWN: %s%s"%(message,perfdata_string)) sys.exit(3) def debug_print(text): if opts.debug: - print text + print(text) def get_status(): if opts.ssl is True: @@ -91,9 +91,9 @@ except AttributeError: # Python < 2.7.9 pass - HTTPClass = httplib.HTTPSConnection + HTTPClass = http.client.HTTPSConnection else: - HTTPClass = httplib.HTTPConnection + HTTPClass = http.client.HTTPConnection connection = HTTPClass(opts.host,opts.port) @@ -109,7 +109,7 @@ if not response.status == 200: critical('Monit HTTP response: %i:%s'%(response.status, response.reason)) return response.read() - except Exception, e: + except Exception as e: critical('Exception: %s'%str(e)) def find_existing_prefix(element, prefixes): @@ -218,10 +218,10 @@ response = re.sub(regex, replacement, response) if opts.debug: - print "="*80 - print "| Monit response: " - print "="*80 - print response + print("="*80) + print("| Monit response: ") + print("="*80) + print(response) tree = xml.etree.ElementTree.fromstring(response) for service in tree.findall('service'): process_service(service) ++ find ./ -name '*.py' + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' ./check_monit.py + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.21712 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/nagios-plugins-check_monit-buildroot + : + /bin/rm -rf -- /usr/src/tmp/nagios-plugins-check_monit-buildroot + cd nagios-plugins-check_monit-1.4 + mkdir -p /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/ + install -m755 check_monit.py /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/nagios-plugins-check_monit-buildroot (auto) Verifying and fixing files in /usr/src/tmp/nagios-plugins-check_monit-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/nagios-plugins-check_monit-buildroot/ (default) Compressing files in /usr/src/tmp/nagios-plugins-check_monit-buildroot (auto) Adjusting library links in /usr/src/tmp/nagios-plugins-check_monit-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/nagios-plugins-check_monit-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/nagios-plugins-check_monit-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/nagios-plugins-check_monit-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/nagios-plugins-check_monit-buildroot using /usr/bin/python3 Can't list '/usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/python3/site-packages' Bytecompiling python3 modules with optimization in /usr/src/tmp/nagios-plugins-check_monit-buildroot using /usr/bin/python3 -O Can't list '/usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/python3/site-packages' Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/nagios-plugins-check_monit-buildroot using /usr/bin/python3 -OO Can't list '/usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/python3/site-packages' Hardlinking identical .pyc and .opt-?.pyc files Hardlinking identical .pyc and .pyo files Processing files: nagios-plugins-check_monit-1.4-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.80963 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd nagios-plugins-check_monit-1.4 + DOCDIR=/usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/share/doc/nagios-plugins-check_monit-1.4 + export DOCDIR + rm -rf /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/share/doc/nagios-plugins-check_monit-1.4 + /bin/mkdir -p /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/share/doc/nagios-plugins-check_monit-1.4 + cp -prL README check_monit.cfg /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/share/doc/nagios-plugins-check_monit-1.4 + chmod -R go-w /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/share/doc/nagios-plugins-check_monit-1.4 + chmod -R a+rX /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/share/doc/nagios-plugins-check_monit-1.4 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.myu8GB find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.2zUpqE find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/check_monit.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/check_monit.py: line=87 IGNORE (for REQ=slight and deep=16) module=ssl /usr/lib/rpm/python3.req.py: /usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/check_monit.py: line=103 IGNORE (for REQ=slight and deep=12) module=base64 find-requires: FINDPACKAGE-COMMANDS: python3 Requires: nagios-nrpe, /usr/bin/env, python3, python3(http.client) < 0, python3(optparse) < 0, python3(re) < 0, python3(xml.etree.ElementTree) < 0 Wrote: /usr/src/RPM/RPMS/noarch/nagios-plugins-check_monit-1.4-alt3.noarch.rpm 5.10user 0.66system 0:06.68elapsed 86%CPU (0avgtext+0avgdata 15184maxresident)k 0inputs+0outputs (0major+101973minor)pagefaults 0swaps /.out/nagios-plugins-check_monit-1.4-alt3.noarch.rpm: The use of such a license name is ambiguous: GPL 15.86user 7.45system 0:23.24elapsed 100%CPU (0avgtext+0avgdata 114492maxresident)k 0inputs+0outputs (0major+486736minor)pagefaults 0swaps