Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
d066fb9d
Commit
d066fb9d
authored
Dec 12, 2018
by
Marian Babik
Browse files
abrt moved to etf-exp; crond shutdown fix; check_mk host config fix
parent
e1c44cfc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
d066fb9d
...
...
@@ -32,10 +32,6 @@ RUN yum -y install gfal2-all gfal2-python gfal2-util globus-ftp-client \
COPY
docker/etf-cms/config/grid-env.sh /etc/profile.d/
RUN
echo
"source /etc/profile.d/grid-env.sh"
>>
/opt/omd/sites/
$CHECK_MK_SITE
/.profile
# ABRTD
RUN
yum
-y
install
abrt
COPY
docker/etf-cms/config/mailx_event.conf /etc/
# VOMS config
# RUN mkdir -p /etc/vomses/
# COPY ./config/cms-lcg-voms2.cern.ch /etc/vomses/
...
...
docker/etf-cms/config/mailx_event.conf
deleted
100644 → 0
View file @
e1c44cfc
EVENT
=
notify
# do not rely on the default config nor on the config file
Mailx_Subject
=
"[abrt] $(cat package || cat executable): $(cat crash_function && echo "
():
") $(cat reason || (cat executable && echo "
crashed
"))"
\
Mailx_EmailFrom
=
"ABRT Daemon <DoNotReply>"
\
Mailx_EmailTo
=
"root@localhost"
\
reporter
-
mailx
--
notify
-
only
EVENT
=
notify
-
dup
# do not rely on the default config nor on the config file
Mailx_Subject
=
"[abrt] $(cat package || cat executable): $(cat crash_function && echo "
():
") $(cat reason || (cat executable && echo "
crashed
"))"
\
Mailx_EmailFrom
=
"ABRT Daemon <DoNotReply>"
\
Mailx_EmailTo
=
"root@localhost"
\
reporter
-
mailx
--
notify
-
only
docker/etf-cms/config/ncgx.cfg
View file @
d066fb9d
...
...
@@ -41,4 +41,4 @@ DEFAULT_CONTACT_GROUPS="check-mk-notify"
DEFINE_HOSTGROUPS=True
DEFINE_SERVICEGROUPS=True
DEFINE_CONTACTS=True
DNS_SERVER="
8.8.8.8
"
DNS_SERVER="
137.138.17.5
"
docker/etf-cms/docker-entrypoint.sh
View file @
d066fb9d
...
...
@@ -3,6 +3,10 @@ set -e
_term
()
{
omd stop
if
[
-f
/var/run/crond.pid
]
;
then
kill
-9
`
cat
/var/run/crond.pid
`
rm
-f
/var/run/crond.pid
fi
rm
-rf
/opt/omd/sites/etf/etc/nagios/conf.d/wlcg/
}
...
...
@@ -71,7 +75,7 @@ echo "Configuring main.mk: $ETF_HOSTED_BY"
if
[
-z
"
${
ETF_HOSTED_BY
}
"
]
;
then
echo
" Variable ETF_HOSTED_BY is not defined, not touching main.mk"
else
echo
"
all_hosts += [
\"
${
ETF_HOSTED_BY
}
\"
]
"
>>
/opt/omd/sites/
$CHECK_MK_SITE
/etc/check_mk/main.mk
sed
"s/all_hosts.*/
all_hosts += [
\"
${
ETF_HOSTED_BY
}
\"
]
/g"
-i
/opt/omd/sites/
$CHECK_MK_SITE
/etc/check_mk/main.mk
fi
echo
"Configuring ETF ..."
...
...
@@ -95,7 +99,6 @@ fi
if
[
"
${
ABRT_ENABLED
}
"
-eq
"1"
]
;
then
echo
"Enabling abrt ..."
sed
-e
"s/OpenGPGCheck = yes/OpenGPGCheck = no/g"
-i
/etc/abrt/abrt-action-save-package-data.conf
cp
-f
/etc/mailx_event.conf /etc/libreport/events.d/mailx_event.conf
/usr/sbin/abrtd
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment