lists.checkmk.com
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
List overview
Download
Checkmk git commits
March 2019
----- 2024 -----
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
checkmk-commits@lists.checkmk.com
17 participants
451 discussions
Start a n
N
ew thread
Fix for Werk 7066
by Tom Baerwinkel
Module: check_mk Branch: master Commit: f9841a5282d7f958d6fc4982aa50ef7b0a4cb014 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f9841a5282d7f9…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de> Date: Wed Mar 20 11:43:32 2019 +0100 Fix for Werk 7066 Change-Id: I2b7705c1f7de1ab14657c8ecfd079cedb5a0c1d4 --- checks/k8s_stats | 7 ++- .../unit/checks/generictests/datasets/k8s_stats.py | 72 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 3 deletions(-) Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=f9841a5282…
5 years, 6 months
1
0
0
0
Fixed integration test: test_automation_get_agent_output
by Simon Betz
Module: check_mk Branch: master Commit: 3825416656f0a06681704b1c5bc90cb0cb881b3c URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3825416656f0a0…
Author: Simon Betz <si(a)mathias-kettner.de> Date: Wed Mar 20 10:42:18 2019 +0100 Fixed integration test: test_automation_get_agent_output Change-Id: Ie24d37ac08576ccc57f2e0cfe5bfb4baa70ea299 --- cmk_base/automations/check_mk.py | 2 +- cmk_base/modes/check_mk.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py index 815514e..b63678c 100644 --- a/cmk_base/automations/check_mk.py +++ b/cmk_base/automations/check_mk.py @@ -1393,7 +1393,7 @@ class AutomationGetAgentOutput(Automation): # Optionally show errors of problematic data sources for source in sources.get_data_sources(): - source_state, source_output, _source_perfdata = source.get_summary_result() + source_state, source_output, _source_perfdata = source.get_summary_result_for_checking() if source_state != 0: success = False output += "[%s] %s\n" % (source.id(), source_output) diff --git a/cmk_base/modes/check_mk.py b/cmk_base/modes/check_mk.py index a9a7931..096ebf2 100644 --- a/cmk_base/modes/check_mk.py +++ b/cmk_base/modes/check_mk.py @@ -391,7 +391,7 @@ def mode_dump_agent(hostname): # Show errors of problematic data sources has_errors = False for source in sources.get_data_sources(): - source_state, source_output, _source_perfdata = source.get_summary_result() + source_state, source_output, _source_perfdata = source.get_summary_result_for_checking() if source_state != 0: console.error("ERROR [%s]: %s\n" % (source.id(), source_output)) has_errors = True
5 years, 6 months
1
0
0
0
Yapf'd automations/check_mk.py
by Simon Betz
Module: check_mk Branch: master Commit: fa81b795fd79965c4a9a1bdc55d41e010064a242 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa81b795fd7996…
Author: Simon Betz <si(a)mathias-kettner.de> Date: Wed Mar 20 10:43:22 2019 +0100 Yapf'd automations/check_mk.py Change-Id: I16ace80d9858ee0ebce7edc27a1dd4e5c7c0b04e --- cmk_base/automations/check_mk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py index b63678c..b883ba6 100644 --- a/cmk_base/automations/check_mk.py +++ b/cmk_base/automations/check_mk.py @@ -1393,7 +1393,8 @@ class AutomationGetAgentOutput(Automation): # Optionally show errors of problematic data sources for source in sources.get_data_sources(): - source_state, source_output, _source_perfdata = source.get_summary_result_for_checking() + source_state, source_output, _source_perfdata = source.get_summary_result_for_checking( + ) if source_state != 0: success = False output += "[%s] %s\n" % (source.id(), source_output)
5 years, 6 months
1
0
0
0
7124 FIX Check_MK Discovery/Inventory: Removed duplicate agent info monitoring
by Simon Betz
Module: check_mk Branch: master Commit: 19a1b928f23d3a8e6218d439d821f03ec9465920 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=19a1b928f23d3a…
Author: Simon Betz <si(a)mathias-kettner.de> Date: Tue Mar 19 15:20:04 2019 +0100 7124 FIX Check_MK Discovery/Inventory: Removed duplicate agent info monitoring The agent information is already checked by the {{Check_MK}} service itself. Change-Id: Iec162ac2c86d5c569abe3ec97b74367e2ac08e47 --- .werks/7124 | 15 +++++++++++++++ cmk_base/checking.py | 2 +- cmk_base/data_sources/abstract.py | 17 +++++++++++++---- cmk_base/data_sources/ipmi.py | 2 +- cmk_base/data_sources/piggyback.py | 2 +- cmk_base/data_sources/tcp.py | 19 ++++++++++--------- cmk_base/discovery.py | 2 +- cmk_base/inventory.py | 2 +- 8 files changed, 43 insertions(+), 18 deletions(-) diff --git a/.werks/7124 b/.werks/7124 new file mode 100644 index 0000000..8a5bc9b --- /dev/null +++ b/.werks/7124 @@ -0,0 +1,15 @@ +Title: Check_MK Discovery/Inventory: Removed duplicate agent info monitoring +Level: 1 +Component: checks +Compatible: compat +Edition: cre +Version: 1.6.0i1 +Date: 1553005141 +Class: fix + +Previously the agent information about agent version and only-from +configuration was checked by the {{Check_MK}}, {{Check_MK Discovery}} +and {{Check_MK HW/SW Inventory}} service. + +We removed this duplicate agent information monitoring from the +{{Check_MK Discovery}} and {{Check_MK HW/SW Inventory}} service. diff --git a/cmk_base/checking.py b/cmk_base/checking.py index 69a60f8..6519db0 100644 --- a/cmk_base/checking.py +++ b/cmk_base/checking.py @@ -110,7 +110,7 @@ def do_check(hostname, ipaddress, only_check_plugin_names=None): item_state.save(hostname) for source in sources.get_data_sources(): - source_state, source_output, source_perfdata = source.get_summary_result() + source_state, source_output, source_perfdata = source.get_summary_result_for_checking() if source_output != "": status = max(status, source_state) infotexts.append("[%s] %s" % (source.id(), source_output)) diff --git a/cmk_base/data_sources/abstract.py b/cmk_base/data_sources/abstract.py index 7a9f140..768a542 100644 --- a/cmk_base/data_sources/abstract.py +++ b/cmk_base/data_sources/abstract.py @@ -359,7 +359,16 @@ class DataSource(object): # TODO: Refactor the returned data of this method and self._summary_result() # to some wrapped object like CheckResult(...) - def get_summary_result(self): + def get_summary_result_for_discovery(self): + return self._get_summary_result(for_checking=False) + + def get_summary_result_for_inventory(self): + return self._get_summary_result(for_checking=False) + + def get_summary_result_for_checking(self): + return self._get_summary_result() + + def _get_summary_result(self, for_checking=True): """Returns a three element tuple of state, output and perfdata (list) that summarizes the execution result of this data source. @@ -367,7 +376,7 @@ class DataSource(object): "Check_MK HW/SW Inventory" services.""" if not self._exception: - return self._summary_result() + return self._summary_result(for_checking) exc_msg = "%s" % self._exception @@ -385,7 +394,7 @@ class DataSource(object): return status, exc_msg + check_api_utils.state_markers[status], [] - def _summary_result(self): + def _summary_result(self, for_checking): """Produce a source specific summary result in case no exception occured. When an exception occured while processing a data source, the generic @@ -646,7 +655,7 @@ class CheckMKAgentDataSource(DataSource): return HostSections(sections, agent_cache_info, piggybacked_raw_data, persisted_sections) # TODO: refactor - def _summary_result(self): + def _summary_result(self, for_checking): agent_info = self._get_agent_info() agent_version = agent_info["version"] output = [] diff --git a/cmk_base/data_sources/ipmi.py b/cmk_base/data_sources/ipmi.py index f060c30..0644af2 100644 --- a/cmk_base/data_sources/ipmi.py +++ b/cmk_base/data_sources/ipmi.py @@ -191,7 +191,7 @@ class IPMIManagementBoardDataSource(ManagementBoardDataSource, CheckMKAgentDataS return output - def _summary_result(self): + def _summary_result(self, for_checking): return 0, "Version: %s" % self._get_ipmi_version(), [] def _get_ipmi_version(self): diff --git a/cmk_base/data_sources/piggyback.py b/cmk_base/data_sources/piggyback.py index d7eb135..10def70 100644 --- a/cmk_base/data_sources/piggyback.py +++ b/cmk_base/data_sources/piggyback.py @@ -67,7 +67,7 @@ class PiggyBackDataSource(CheckMKAgentDataSource): self._logger.verbose("Execute data source") return self._execute(), False - def _summary_result(self): + def _summary_result(self, for_checking): """Returns useful information about the data source execution Return only summary information in case there is piggyback data""" diff --git a/cmk_base/data_sources/tcp.py b/cmk_base/data_sources/tcp.py index e65a716..e3d0891 100644 --- a/cmk_base/data_sources/tcp.py +++ b/cmk_base/data_sources/tcp.py @@ -235,18 +235,19 @@ class TCPDataSource(CheckMKAgentDataSource): return 1, ", invalid access configuration: %s%s" \ % (", ".join(infotexts), state_markers[1]) - def _summary_result(self): + def _summary_result(self, for_checking): agent_info = self._get_agent_info() - status, output, perfdata = super(TCPDataSource, self)._summary_result() + status, output, perfdata = super(TCPDataSource, self)._summary_result(for_checking) infotexts = [output] - for sub_status, sub_output in [ - self._sub_result_version(agent_info), - self._sub_result_only_from(agent_info), - ]: - status = max(status, sub_status) - if sub_output: - infotexts.append(sub_output) + if for_checking: + for sub_status, sub_output in [ + self._sub_result_version(agent_info), + self._sub_result_only_from(agent_info), + ]: + status = max(status, sub_status) + if sub_output: + infotexts.append(sub_output) return status, ", ".join(infotexts), perfdata diff --git a/cmk_base/discovery.py b/cmk_base/discovery.py index 53726bb..ae98174 100644 --- a/cmk_base/discovery.py +++ b/cmk_base/discovery.py @@ -403,7 +403,7 @@ def check_discovery(hostname, ipaddress): # Add data source information to check results for source in sources.get_data_sources(): - source_state, source_output, _source_perfdata = source.get_summary_result() + source_state, source_output, _source_perfdata = source.get_summary_result_for_discovery() # Do not output informational (state = 0) things. These information are shown by the "Check_MK" service if source_state != 0: status = max(status, source_state) diff --git a/cmk_base/inventory.py b/cmk_base/inventory.py index f1f54fb..0f558b3 100644 --- a/cmk_base/inventory.py +++ b/cmk_base/inventory.py @@ -147,7 +147,7 @@ def do_inv_check(hostname, options): infotexts.append("Found %s status entries" % status_data_tree.count_entries()) for source in sources.get_data_sources(): - source_state, source_output, _source_perfdata = source.get_summary_result() + source_state, source_output, _source_perfdata = source.get_summary_result_for_inventory() # Do not output informational (state = 0) things. These information are shown by the "Check_MK" service if source_state != 0: status = max(source_state, status)
5 years, 6 months
1
0
0
0
CMK-1777: Build new Windows agent
by Alex Zurhake
Module: check_mk Branch: master Commit: 6c347f53fcfec9ff38770f24519dcc3378ed18c4 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6c347f53fcfec9…
Author: Alex Zurhake <az(a)mathias-kettner.de> Date: Mon Mar 18 12:31:37 2019 +0100 CMK-1777: Build new Windows agent - New Windows agent replaces legacy agent - old agent is renamed to legacy agent Change-Id: Ie139c5c2a35430938123460ccef8fe4163bc7848 --- buildscripts/scripts/nightly-build.jenkins | 140 +++++++++++++++++------------ 1 file changed, 81 insertions(+), 59 deletions(-) Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=6c347f53fc…
5 years, 6 months
1
0
0
0
Fix unit tests
by Tom Baerwinkel
Module: check_mk Branch: master Commit: debc7a65acde8bb1ebaf4147b2e83df17d4ac097 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=debc7a65acde8b…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de> Date: Wed Mar 20 10:11:59 2019 +0100 Fix unit tests Remove generic tests for k8s_stats since generic tests cannot handle extra_sections. Change-Id: I5e49eb39babef6408d45c8cf5bd6d65fee5001c9 --- .../unit/checks/generictests/datasets/k8s_stats.py | 66 ---------------------- 1 file changed, 66 deletions(-) Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=debc7a65ac…
5 years, 6 months
1
0
0
0
add generic image for all os independent steps
by Alex Zurhake
Module: check_mk Branch: master Commit: 629274b79e3369587e446502c87d27225e8ab486 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=629274b79e3369…
Author: Alex Zurhake <az(a)mathias-kettner.de> Date: Tue Mar 19 16:24:51 2019 +0100 add generic image for all os independent steps Change-Id: I99c4e6b3fb6c7a9248073f8658005e1419dcfb4d --- .../infrastructure/build-nodes/common/Dockerfile | 106 +++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/buildscripts/infrastructure/build-nodes/common/Dockerfile b/buildscripts/infrastructure/build-nodes/common/Dockerfile new file mode 100644 index 0000000..98d3290 --- /dev/null +++ b/buildscripts/infrastructure/build-nodes/common/Dockerfile @@ -0,0 +1,106 @@ +FROM ubuntu:18.04 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y \ + alien \ + apache2 \ + apache2-dev \ + autoconf \ + bear \ + bison \ + build-essential \ + chrpath \ + clang-7 \ + clang-format-7 \ + clang-tidy-7 \ + devscripts \ + direnv \ + dnsutils \ + doxygen \ + dpatch \ + dpkg-sig \ + enchant \ + expect \ + figlet \ + flex \ + g++ \ + gettext \ + git-buildpackage \ + ksh \ + libboost-all-dev \ + libboost-dev \ + libboost-system-dev \ + libclang-7-dev \ + libcloog-ppl1 \ + libcurl4-openssl-dev \ + libevent-dev \ + libffi-dev \ + libfreeradius-dev \ + libgd-dev \ + libglib2.0-dev \ + libgnutls28-dev \ + libgsf-1-dev \ + libkrb5-dev \ + libldap2-dev \ + libltdl-dev \ + libmcrypt-dev \ + libmysqlclient-dev \ + libncurses5-dev \ + libpango1.0-dev \ + libpcap-dev \ + libperl-dev \ + libpq-dev \ + libreadline-dev \ + librrd-dev \ + libsasl2-dev \ + libsqlite3-dev \ + libterm-readkey-perl \ + libtool \ + libxml2-dev \ + llvm-7-dev \ + mono-complete \ + mono-xbuild \ + openssh-client \ + p7zip-full \ + patch \ + pngcrush \ + poedit \ + python-pip \ + python-polib \ + rpcbind \ + rpm \ + rsync \ + smbclient \ + texinfo \ + tk-dev \ + uuid-dev \ + valgrind \ + && rm -rf /var/lib/apt/lists/* + +run curl -sL
https://deb.nodesource.com/setup_11.x
| bash - \ + && apt-get install -y nodejs \ + && rm -rf /var/lib/apt/lists/* + +RUN pip install -U
git+https://github.com/pypa/pipenv.git@c4341a7d5dcd2bdb6f04de77fe715ce1ed78…
+ +RUN pip install \ + pathlib2 \ + typing + +RUN apt-get update \ + && apt-get install -y \ + apt-transport-https \ + ca-certificates \ + curl \ + software-properties-common \ + && curl -fsSL
https://download.docker.com/linux/ubuntu/gpg
| apt-key add - \ + && add-apt-repository \ + "deb [arch=amd64]
https://download.docker.com/linux/ubuntu
\ + $(lsb_release -cs) \ + stable" \ + && apt-get update \ + && apt-get install -y \ + docker-ce \ + && rm -rf /var/lib/apt/lists/*
5 years, 6 months
1
0
0
0
Trigger Nighly build between 3:00 and 4:00 every day
by Alex Zurhake
Module: check_mk Branch: master Commit: 032595be961a1817b0135718d0c93bcfa77ab281 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=032595be961a18…
Author: Alex Zurhake <az(a)mathias-kettner.de> Date: Mon Mar 18 12:28:58 2019 +0100 Trigger Nighly build between 3:00 and 4:00 every day Change-Id: Ide4f71bad6d28b459c905a689e61b35dc080d91f --- buildscripts/scripts/nightly-build.jenkins | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildscripts/scripts/nightly-build.jenkins b/buildscripts/scripts/nightly-build.jenkins index ea298b7..6ea70c3 100644 --- a/buildscripts/scripts/nightly-build.jenkins +++ b/buildscripts/scripts/nightly-build.jenkins @@ -3,6 +3,9 @@ import java.text.SimpleDateFormat properties([ parameters([ string(name: 'DISTROS', defaultValue: DISTRO_LIST_MASTER, description: 'List of targeted distros' ) + ]), + pipelineTriggers([ + cron('H 3 * * *') ]) ])
5 years, 6 months
1
0
0
0
Sign all packages
by Alex Zurhake
Module: check_mk Branch: master Commit: 05b7c7a397a045346bf37e371c2b9f92623f1393 URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=05b7c7a397a045…
Author: Alex Zurhake <az(a)mathias-kettner.de> Date: Mon Mar 18 12:39:11 2019 +0100 Sign all packages Change-Id: Iea4ffb2546507f8480c63b95e6cbfb2debe33d98 --- buildscripts/scripts/nightly-build.jenkins | 8 +++-- buildscripts/scripts/sign-packages.sh | 57 ++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/buildscripts/scripts/nightly-build.jenkins b/buildscripts/scripts/nightly-build.jenkins index 36507be..7be0b11 100644 --- a/buildscripts/scripts/nightly-build.jenkins +++ b/buildscripts/scripts/nightly-build.jenkins @@ -186,10 +186,14 @@ node { docker.withRegistry(DOCKER_REGISTRY, 'nexus') { IMAGE = 'ubuntu-18.04-common' docker.image(IMAGE).pull() - docker.image(IMAGE).inside("-u 0:0 -v ${DAILY_DATA}:${DAILY_DATA} --network ci_local-infra") { + docker.image(IMAGE).inside("-u 0:0 -v ${DAILY_DATA}:${DAILY_DATA} -v /bauwelt/etc/.gnupg:/bauwelt/etc/.gnupg --network ci_local-infra") { stage('Archive artifacts') { dir("${DAILY_DATA}/downloads") { - sh "cp ${DAILY_DATA}/*-dest/check-mk-enterprise-*.{deb,rpm} ." + sh "cp ${DAILY_DATA}/*-dest/check-mk-enterprise-*_amd64.deb . || true" + sh "cp ${DAILY_DATA}/*-dest/check-mk-enterprise-*.x86_64.rpm . || true" + withCredentials([usernamePassword(credentialsId: '9d7aca31-0043-4cd0-abeb-26a249d68261', passwordVariable: 'GPG_PASSPHRASE', usernameVariable: 'GPG_USERNAME')]) { + sh "${DAILY_DATA}/git/buildscripts/scripts/sign-packages.sh" + } archiveArtifacts "*" } } diff --git a/buildscripts/scripts/sign-packages.sh b/buildscripts/scripts/sign-packages.sh new file mode 100755 index 0000000..f804896 --- /dev/null +++ b/buildscripts/scripts/sign-packages.sh @@ -0,0 +1,57 @@ +#!/bin/bash +set -e + +TARGET=. +VERSION=$CMK_VERS +KEY_ID=434DAC48C4503261 +KEY_DESC="Check_MK Software Release Signing Key (2018) <feedback(a)check-mk.org>" + +if [ -z "$VERSION" ]; then + echo "set CMK_VERS VERSION" + echo "Beispiel: CMK_VERS=2018.01.19 $0" + exit 1 +fi + +if [ -z "$GPG_PASSPHRASE" ]; then + echo "ERROR: \$GPG_PASSPHRASE must be given via environment" + exit 1 +fi + +export GNUPGHOME=/bauwelt/etc/.gnupg + +echo "Sign RPM packages..." +echo "$GPG_PASSPHRASE" | \ + rpm \ + -D "%_signature gpg" \ + -D "%_gpg_path $GNUPGHOME" \ + -D "%_gpg_name Check_MK Software Release Signing Key (2018) <feedback(a)check-mk.org>" \ + -D "%__gpg /usr/bin/gpg " -D "%_gpg_sign_cmd_extra_args --batch --passphrase-fd=0 --passphrase-repeat=0 --pinentry-mode loopback" \ + --resign \ + $TARGET/*.rpm + +echo "Verify signed RPM packages..." +for RPM in $TARGET/$VERSION/*.rpm; do + rpm -qp $RPM --qf='%-{NAME} %{SIGPGP:pgpsig}\n' + if ! rpm -qp $RPM --qf='%-{NAME} %{SIGPGP:pgpsig}\n' | grep -i "Key ID $KEY_ID"; then + echo "ERROR: RPM not signed: $RPM" + fi +done + +echo "Sign DEB packages..." +( + echo set timeout -1;\ + echo spawn dpkg-sig -p --sign builder -k $KEY_ID $TARGET/$VERSION/*.deb; \ + echo expect -exact \"The passphrase for ${KEY_ID}:\";\ + echo send -- \"$GPG_PASSPHRASE\\r\";\ + echo expect eof;\ +) | expect + +echo "Verify singed DEB packages..." +for DEB in $TARGET/*.deb; do + dpkg-sig --verify $DEB +done + +# Hashes der kopierten Dateien ablegen +# (werden später auf der Webseite angezeigt) +echo "Create HASHES file..." +sha256sum *.{cma,tar.gz,rpm,deb,cmk} > HASHES
5 years, 6 months
1
0
0
0
7126 FIX fireeye_mailq: Missing SNMP device data causes an "IndexError: list index out of range" error
by Simon Betz
Module: check_mk Branch: master Commit: b891799a186734e725aec50b9d4a24ede3b5694f URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b891799a186734…
Author: Simon Betz <si(a)mathias-kettner.de> Date: Wed Mar 20 07:28:51 2019 +0100 7126 FIX fireeye_mailq: Missing SNMP device data causes an "IndexError: list index out of range" error Change-Id: Iea7d6afeaaecd0d622a1178c9299ea0fb6a66b64 --- .werks/7126 | 11 +++++++++++ checks/fireeye_mailq | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.werks/7126 b/.werks/7126 new file mode 100644 index 0000000..e6e4dcf --- /dev/null +++ b/.werks/7126 @@ -0,0 +1,11 @@ +Title: fireeye_mailq: Missing SNMP device data causes an "IndexError: list index out of range" error +Level: 1 +Component: checks +Class: fix +Compatible: compat +Edition: cre +State: unknown +Version: 1.6.0i1 +Date: 1553063264 + + diff --git a/checks/fireeye_mailq b/checks/fireeye_mailq index 7e1c81b..b1feb65 100644 --- a/checks/fireeye_mailq +++ b/checks/fireeye_mailq @@ -39,9 +39,13 @@ factory_settings['fireeye_mailq'] = { def parse_fireeye_mailq(info): + try: + queue_infos = info[0] + except IndexError: + return {} parsed = {} for index, item in enumerate(['Deferred', 'Hold', 'Incoming', 'Active', 'Drop']): - parsed.update({item: info[0][index]}) + parsed.update({item: queue_infos[index]}) return parsed
5 years, 6 months
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
46
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Results per page:
10
25
50
100
200