86>Dec 25 01:50:41 userdel[85809]: delete user 'rooter'
<86>Dec 25 01:50:41 userdel[85809]: removed group 'rooter' owned by 'rooter'
<86>Dec 25 01:50:41 userdel[85809]: removed shadow group 'rooter' owned by 'rooter'
<86>Dec 25 01:50:41 groupadd[85858]: group added to /etc/group: name=rooter, GID=1811
<86>Dec 25 01:50:41 groupadd[85858]: group added to /etc/gshadow: name=rooter
<86>Dec 25 01:50:41 groupadd[85858]: new group: name=rooter, GID=1811
<86>Dec 25 01:50:41 useradd[85895]: new user: name=rooter, UID=1811, GID=1811, home=/root, shell=/bin/bash, from=none
<86>Dec 25 01:50:41 userdel[85944]: delete user 'builder'
<86>Dec 25 01:50:41 userdel[85944]: removed group 'builder' owned by 'builder'
<86>Dec 25 01:50:41 userdel[85944]: removed shadow group 'builder' owned by 'builder'
<86>Dec 25 01:50:41 groupadd[86000]: group added to /etc/group: name=builder, GID=1812
<86>Dec 25 01:50:41 groupadd[86000]: group added to /etc/gshadow: name=builder
<86>Dec 25 01:50:41 groupadd[86000]: new group: name=builder, GID=1812
<86>Dec 25 01:50:41 useradd[86040]: new user: name=builder, UID=1812, GID=1812, home=/usr/src, shell=/bin/bash, from=none
/usr/src/in/srpm/nagios-plugins-check_monit-1.4-alt3.src.rpm: The use of such a license name is ambiguous: GPL
<13>Dec 25 01:50:44 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432004 installed
<13>Dec 25 01:50:44 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468404 installed
<13>Dec 25 01:50:44 rpmi: libexpat-2.6.4-alt1 sisyphus+365521.100.1.1 1734700243 installed
<13>Dec 25 01:50:44 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962877 installed
<13>Dec 25 01:50:44 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed
<13>Dec 25 01:50:44 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed
<13>Dec 25 01:50:44 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed
<13>Dec 25 01:50:44 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed
<13>Dec 25 01:50:44 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed
<13>Dec 25 01:50:44 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed
<13>Dec 25 01:50:44 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed
<13>Dec 25 01:50:44 rpmi: libcrypto3-3.1.7-alt2 sisyphus+359910.100.1.1 1729080439 installed
<13>Dec 25 01:50:44 rpmi: libssl3-3.1.7-alt2 sisyphus+359910.100.1.1 1729080439 installed
<13>Dec 25 01:50:44 rpmi: python3-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed
<13>Dec 25 01:50:45 rpmi: python3-base-3.12.8-alt1 sisyphus+364336.100.1.1 1733526854 installed
<13>Dec 25 01:50:45 rpmi: python3-module-py3dephell-0.3.1-alt1 sisyphus+365261.200.1.1 1734463433 installed
<13>Dec 25 01:50:45 rpmi: tests-for-installed-python3-pkgs-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed
<13>Dec 25 01:50:45 rpmi: rpm-build-python3-0.1.26-alt2 sisyphus+365350.100.1.1 1734517486 installed
<13>Dec 25 01:50:46 rpmi: libreadline7-7.0.3-alt5 sisyphus+328858.200.1.1 1694010737 installed
<13>Dec 25 01:50:46 rpmi: libpython-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python2-base-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-encodings-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-compiler-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-email-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-unittest-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-ctypes-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-multiprocessing-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-modules-logging-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
<13>Dec 25 01:50:47 rpmi: python-tools-2to3-2.7.18-alt11 sisyphus+328124.4300.1.1 1693252303 installed
Building target platforms: x86_64
Building for target x86_64
Wrote: /usr/src/in/nosrpm/nagios-plugins-check_monit-1.4-alt3.nosrc.rpm (w1.gzdio)
Installing nagios-plugins-check_monit-1.4-alt3.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.5368
+ 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.53998
+ 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
+ PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games
+ 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,gnuconfig)
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: (from :0)
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)
Splitting links to aliased files under /{,s}bin in /usr/src/tmp/nagios-plugins-check_monit-buildroot
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
Processing files: nagios-plugins-check_monit-1.4-alt3
Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.53998
+ 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.in5MRH
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.wmN7IS
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services)
py3req:/usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/check_monit.py: skipping "sys" lines:[7]
py3req:/usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/check_monit.py: "ssl" lines:[[[[87]]]]: Ignore for REQ:slight
py3req:/usr/src/tmp/nagios-plugins-check_monit-buildroot/usr/lib/nagios/plugins/check_monit.py: "base64" lines:[[[103]]]: Ignore for REQ:slight
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 (w2.lzdio)
1.41user 0.72system 0:03.81elapsed 56%CPU (0avgtext+0avgdata 23632maxresident)k
0inputs+0outputs (0major+149876minor)pagefaults 0swaps
/.out/nagios-plugins-check_monit-1.4-alt3.noarch.rpm: The use of such a license name is ambiguous: GPL
4.23user 3.27system 0:16.04elapsed 46%CPU (0avgtext+0avgdata 136892maxresident)k
0inputs+0outputs (0major+280827minor)pagefaults 0swaps