Projects
jsj
jsj-installtools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 86
View file
jsj-installtools.changes
Changed
@@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Dec 23 12:36:07 UTC 2021 - Stefan Botter <obs@botter.cc> + +- add RunZypperUpdateCron to use in cron +- modify PrepareUpdateCrontab for 15.3 and later to just install + check_mk_agent, no nrpe and nagios plugins + +------------------------------------------------------------------- Sun Nov 28 09:03:28 UTC 2021 - Stefan Botter <obs@botter.cc> - modify PreparereposFor15.3 with repo-backup and hints
View file
jsj-installtools.spec
Changed
@@ -6,7 +6,7 @@ License: SUSE-Freeware Group: Productivity/Networking/Other Autoreqprov: on -Version: 0.44.3 +Version: 0.44.4 Release: 1 Summary: Install tools for virtual hosts Source1: CreateConfig @@ -22,6 +22,7 @@ Source11: RestartPS Source12: PrepareBrekomProxy Source13: PrepareReposFor15.3 +Source14: RunZypperUpdateCron Source21: nagiosok.html Source22: vhost.conf #Requires: check_mk-agent-plugins @@ -51,6 +52,7 @@ install -Dm755 %{S:11} $RPM_BUILD_ROOT/%{_datadir}/jsjinstalltools install -Dm755 %{S:12} $RPM_BUILD_ROOT/%{_datadir}/jsjinstalltools install -Dm755 %{S:13} $RPM_BUILD_ROOT/%{_datadir}/jsjinstalltools +install -Dm755 %{S:14} $RPM_BUILD_ROOT/%{_datadir}/jsjinstalltools install -Dm644 %{S:21} $RPM_BUILD_ROOT/%{_datadir}/jsjinstalltools install -Dm644 %{S:22} $RPM_BUILD_ROOT/%{_datadir}/jsjinstalltools
View file
PrepareNagiosTests
Changed
@@ -18,11 +18,12 @@ fi zypper ar -t rpm-md -f https://repo.botter.cc/jsj/openSUSE_$REPOVERSION "jsj_$VERSION" fi -zypper -n in -l nrpe monitoring-plugins-zypper monitoring-plugins-running_kernel check_mk-agent rdiff-backup nrpe-$VAR -#rsync -vaPH nagios.jacobs-university.de::nagios/ /etc/nagios/ -#if $? != 0 ; then -# rsync -vaPH root@nagios.jacobs-university.de:nagios/ /etc/nagios/ -#fi +if ${VERSION_ID/./} -lt 153 ; then + INSTALLPACKAGES="nrpe monitoring-plugins-zypper monitoring-plugins-running_kernel check_mk-agent rdiff-backup nrpe-$VAR" +else + INSTALLPACKAGES="check_mk-agent check_mk-agent-plugins-opensuse_kernel check_mk-agent-plugins-opensuse_zypper" +fi +zypper -n in -l $INSTALLPACKAGES if ${VERSION_ID/./} -ge 120 ; then #sed -e '/pid_file/ s/pid_file=.*/pid_file=\/var\/run\/nrpe\/nrpe.pid/' < /etc/nagios/nrpe.cfg > /etc/nagios/nrpe.cfg.new #mv /etc/nagios/nrpe.cfg.new /etc/nagios/nrpe.cfg
View file
PrepareUpdateCrontab
Changed
@@ -14,7 +14,7 @@ 44 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly EOF fi -( crontab -l; echo "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 60)) */4 * * * zypper -n up --auto-agree-with-licenses" ) | \ +( crontab -l; echo "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 60)) */4 * * * /usr/share/jsj-installtools/RunZypperUpdateCron" ) | \ egrep -v "^#" | crontab - if ${VERSION_ID/./} -eq 423 || (( ${VERSION_ID/./} -ge 132 && ${VERSION_ID/./} -lt 421 )) ; then sed -i -e '/^AccuracySec/ s/=.*$/=1min/' /usr/lib/systemd/system/logrotate.timer
View file
RunZypperUpdateCron
Added
@@ -0,0 +1,3 @@ +#!/bin/bash +/usr/bin/zypper -n up --auto-agree-with-licenses +rm check_mk-opensuse_zypper.cache
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.