-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
162 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM rockylinux:9 | ||
# eudat-docker.artifactory.ci.csc.fi/ | ||
|
||
LABEL maintainer Giacomo Furlan <[email protected]> | ||
LABEL description="Image to test nagios plugin on eudat b2share instances." | ||
|
||
RUN dnf update -y && \ | ||
dnf install -y python3.9 && \ | ||
dnf install -y python3.9-pip | ||
|
||
WORKDIR /root | ||
|
||
ADD check_b2share.py check_b2share.py | ||
ADD requirements.txt requirements.txt | ||
|
||
RUN pip3 install -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Name: argo-probe-eudat-b2share | ||
Version: 0.7 | ||
Release: 1%{?dist} | ||
Summary: Monitoring scripts that check the functionalities of B2SHARE | ||
License: GPLv3+ | ||
Packager: Themis Zamani <[email protected]> | ||
|
||
Source: %{name}-%{version}.tar.gz | ||
BuildArch: noarch | ||
BuildRoot: %{_tmppath}/%{name}-%{version} | ||
AutoReqProv: no | ||
Requires: python3 | ||
Requires: python3-requests | ||
Requires: python-jsonschema | ||
Requires: python-enum34 | ||
|
||
%description | ||
Nagios probe to check functionality of B2SHARE service | ||
|
||
%prep | ||
%setup -q | ||
|
||
%define _unpackaged_files_terminate_build 0 | ||
|
||
%install | ||
install -d %{buildroot}/%{_libexecdir}/argo/probes/eudat-b2share | ||
install -m 755 check_b2share.py %{buildroot}/%{_libexecdir}/argo/probes/eudat-b2share/check_b2share.py | ||
|
||
%files | ||
%dir /%{_libexecdir}/argo | ||
%dir /%{_libexecdir}/argo/probes/ | ||
%dir /%{_libexecdir}/argo/probes/eudat-b2share | ||
|
||
%attr(0755,root,root) /%{_libexecdir}/argo/probes/eudat-b2share/check_b2share.py | ||
|
||
%changelog | ||
* Fri Apr 05 2024 Giacomo Furlan <[email protected]> - 0.2.1 | ||
- Update python to 3.9 | ||
- Update requirements and dependencies | ||
- Remove validator dependency | ||
* Mon Mar 14 2022 Themis Zamani <[email protected]> - 0.5 | ||
- Update package prerequisites based on argo monitoring. | ||
* Tue Nov 27 2018 Themis Zamani <[email protected]> - 0.1-1 | ||
- Initial version of the package. | ||
* Tue Nov 27 2018 Harri Hirvonsalo <[email protected]> - 0.1-1 | ||
- Initial version of the package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Name: argo-probe-eudat-b2share | ||
Version: 0.6 | ||
Version: 0.7 | ||
Release: 1%{?dist} | ||
Summary: Monitoring scripts that check the functionalities of B2SHARE | ||
License: GPLv3+ | ||
|
@@ -9,7 +9,10 @@ Source: %{name}-%{version}.tar.gz | |
BuildArch: noarch | ||
BuildRoot: %{_tmppath}/%{name}-%{version} | ||
AutoReqProv: no | ||
Requires: python-requests, python2-jsonschema, python-enum34 | ||
Requires: python3 | ||
Requires: python3-requests | ||
Requires: python-jsonschema | ||
Requires: python-enum34 | ||
|
||
%description | ||
Nagios probe to check functionality of B2SHARE service | ||
|
@@ -31,10 +34,15 @@ install -m 755 check_b2share.py %{buildroot}/%{_libexecdir}/argo/probes/eudat-b2 | |
%attr(0755,root,root) /%{_libexecdir}/argo/probes/eudat-b2share/check_b2share.py | ||
|
||
%changelog | ||
* Fri Apr 05 2024 Giacomo Furlan <[email protected]> - 0.2.1 | ||
- Update python to 3.9 | ||
- Update requirements and dependencies | ||
- Remove validator dependency | ||
* Mon Mar 14 2022 Themis Zamani <[email protected]> - 0.5 | ||
- Update package prerequisites based on argo monitoring. | ||
* Mon Mar 14 2022 Themis Zamani <[email protected]> - 0.5 | ||
- Update package prerequisites based on argo monitoring. | ||
* Tue Nov 27 2018 Themis Zamani <[email protected]> - 0.1-1 | ||
- Initial version of the package. | ||
* Tue Nov 27 2018 Harri Hirvonsalo <[email protected]> - 0.1-1 | ||
- Initial version of the package. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# This file is part of B2SHARE Nagios monitoring plugin. | ||
# | ||
# Copyright (C) 2024 Harri Hirvonsalo | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
jsonschema==4.21.1 | ||
requests==2.31.0 |