Skip to content

Commit

Permalink
feat: package the new plugin check_selinux
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Madrisan <[email protected]>
  • Loading branch information
madrisan committed Apr 7, 2024
1 parent ca3926d commit c3ae96f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
3 changes: 2 additions & 1 deletion debian/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in

## Copyright (c) 2016 Davide Madrisan <[email protected]>
## Copyright (c) 2016-2024 Davide Madrisan <[email protected]>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -37,6 +37,7 @@ EXTRA_DIST = changelog compat control copyright rules \
nagios-plugins-linux-paging.install \
nagios-plugins-linux-pressure.install \
nagios-plugins-linux-readonlyfs.install \
nagios-plugins-linux-selinux.install \
nagios-plugins-linux-swap.install \
nagios-plugins-linux-tcpcount.install \
nagios-plugins-linux-temperature.install \
Expand Down
13 changes: 12 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Depends: ${misc:Depends},
nagios-plugins-linux-paging,
nagios-plugins-linux-pressure,
nagios-plugins-linux-readonlyfs,
nagios-plugins-linux-selinux,
nagios-plugins-linux-swap,
nagios-plugins-linux-tcpcount,
nagios-plugins-linux-temperature,
Expand All @@ -42,7 +43,8 @@ Description: Linux plugins for nagios compatible monitoring systems
check_clock, check_cpufreq, check_cpu, check_cswch, check_fc, check_ifmountfs,
check_intr, check_iowait, check_load, check_memory, check_multipath,
check_nbprocs, check_network, check_paging, check_pressure, check_readonlyfs,
check_swap, check_tcpcount, check_temperature, check_uptime, check_users
check_selinux, check_swap, check_tcpcount, check_temperature, check_uptime,
check_users
.
This package provides the suite of plugins that are most likely to be
useful on a central monitoring host.
Expand Down Expand Up @@ -217,6 +219,15 @@ Description: Linux plugins for nagios compatible monitoring systems
.
This plugin checks for readonly filesystems.

Package: nagios-plugins-linux-selinux
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Suggests: nagios3 | icinga | icinga2
Description: Linux plugins for nagios compatible monitoring systems
A suite of Nagios/NRPE plugins for monitoring Linux servers and appliances.
.
This plugin checks is SELinux is enabled.

Package: nagios-plugins-linux-swap
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Expand Down
2 changes: 1 addition & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Upstream Authors: Davide Madrisan

Copyright:

Copyright (C) 2014-2021 Davide Madrisan <[email protected]>
Copyright (C) 2014-2024 Davide Madrisan <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
12 changes: 12 additions & 0 deletions packages/specs/nagios-plugins-linux.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Requires: nagios-plugins-linux-network
Requires: nagios-plugins-linux-paging
Requires: nagios-plugins-linux-pressure
Requires: nagios-plugins-linux-readonlyfs
Requires: nagios-plugins-linux-selinux
Requires: nagios-plugins-linux-swap
Requires: nagios-plugins-linux-tcpcount
Requires: nagios-plugins-linux-temperature
Expand Down Expand Up @@ -178,6 +179,13 @@ Group: Applications/System
%description readonlyfs
This Nagios plugin checks for readonly filesystems.

%package selinux
Summary: Nagios plugins for Linux - check_selinux
Group: Applications/System

%description selinux
This Nagios plugin checks if SELinux is enabled.

%package swap
Summary: Nagios plugins for Linux - check_swap
Group: Applications/System
Expand Down Expand Up @@ -308,6 +316,10 @@ make DESTDIR=%{buildroot} install
%defattr(-,root,root)
%{_libdir}/nagios/plugins/check_readonlyfs

%files selinux
%defattr(-,root,root)
%{_libdir}/nagios/plugins/check_selinux

%files swap
%defattr(-,root,root)
%{_libdir}/nagios/plugins/check_swap
Expand Down

0 comments on commit c3ae96f

Please sign in to comment.