Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BUILD_DEBIAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You can build a Debian package (source and binary)

To build the package first install the required package building dependencies:

sudo apt-get install build-essential fakeroot devscripts python debhelper dh-python
sudo apt-get install build-essential fakeroot devscripts python3 debhelper dh-python

## Build package

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ deb: pre_deb

docker-build:
echo " \
FROM debian:buster\n \
FROM debian:bookworm\n \
ARG DEBIAN_FRONTEND=noninteractive\n \
RUN apt-get update; \
apt-get --yes upgrade; \
apt-get --no-install-recommends --yes install build-essential fakeroot devscripts python debhelper dh-python" | docker build -t ceph-nagios-plugins-builder -
apt-get --no-install-recommends --yes install build-essential fakeroot devscripts python3 debhelper dh-python" | docker build -t ceph-nagios-plugins-builder -
docker run -v $(CURDIR):/opt ceph-nagios-plugins-builder /bin/bash -c "cd /opt; make deb; make deb-src"

# vim: set noexpandtab:
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
nagios-plugins-ceph (1.5.6-3) unstable; urgency=medium

* Fix python to python3 in ceph health and df scripts

-- <[email protected]> Sun, 09 Feb 2025 11:02:04 +0100

nagios-plugins-ceph (1.5.6-2) unstable; urgency=medium

* Update dependency and build dependency from python to python3 for debian bookworm

-- Jan Pekar <[email protected]> Sun, 03 Mar 2024 15:35:45 +0100

nagios-plugins-ceph (1.5.6-1) unstable; urgency=medium

* Upstream version 1.5.6
Expand Down
6 changes: 4 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ Maintainer: Valery Tschopp <[email protected]>
Section: misc
Priority: optional
Standards-Version: 3.9.8
Build-Depends: debhelper (>= 9), dh-python, python:any
Build-Depends: debhelper (>= 9), dh-python, python3:any

Package: nagios-plugins-ceph
Architecture: all
Depends: python, ${misc:Depends}, ${python:Depends}
Depends: python3, ${misc:Depends}, ${python:Depends}
Replaces: imt-nagios-nrpe (<< 0.7-59)
Breaks: imt-nagios-nrpe (<< 0.7-59)
Description: Nagios plugins for Ceph
This package provides a set of plugins to monitor a ceph cluster.
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#export DH_VERBOSE=1

%:
dh "$@" --with python2
dh "$@" --with python3

# install in official directories
override_dh_auto_install:
Expand Down
2 changes: 1 addition & 1 deletion src/check_ceph_df
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 SWITCH http://www.switch.ch
Expand Down
2 changes: 1 addition & 1 deletion src/check_ceph_health
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013-2016 SWITCH http://www.switch.ch
Expand Down