File monitoring-plugins-centreon-linux-local.spec of Package monitoring-plugins-centreon-linux-local

#
# spec file for package monitoring-plugins-centreon-linux-local
#
# Copyright (c) 2021 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           monitoring-plugins-centreon-linux-local
Summary:        centreon check to monitor linux over nrpe
License:        Apache-2.0
Group:          System/Monitoring
Version:        20250900
Release:        0
Url:            http://www.centreon.com/
Source0:        centreon_linux_local.pl
Source1:        centreon_linux_local.cfg
BuildArch:      noarch
BuildRequires:  nagios-rpm-macros
Requires:       perl
Requires:       net-tools
Requires:       perl-Data-Dumper
Requires:       perl-Digest-MD5
Requires:       perl-Encode
Requires:       perl-HTTP-ProxyPAC
Requires:       perl-IO-Socket-SSL 
Requires:       perl-JSON-XS 
Requires:       perl-LWP-Protocol-https
Requires:       perl-libwww-perl
Requires:       perl-MIME-Base64
Requires:       perl-NetAddr-IP
Requires:       perl-Pod-Parser
Requires:       perl-Storable
Requires:       perl-URI
Requires:       perl-URI-Encode
Requires:       perl-CryptX
Requires:       perl-JSON-Path
Requires:       perl-KeePass-Reader
#Requires:       perl-Net-Curl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Centreon plugin to monitor linux server over nrpe
Cmd-Generic : Check command returns
Connections-Generic : Check tcp/udp connections
Cpu-Detailed : Check average usage for each CPUs (User, Nice, System, Idle, Wait, Interrupt, SoftIRQ, Steal, Guest, GuestNice)
Disk-Generic-Name : Check storage usage (single partition)
Disk-Global : Check storage usage (all partitions or filtered with regexp)
Disk-IO-Generic-Name : Check some disk io counters (single partition)
Disk-IO-Global : Check some disk io counters (all partitions or filtered with regexp)
File-Date-Generic : Check time (modified, creation,...) of files/directories
File-Size-Generic : Check size of files/directories
Inodes-Generic-Name : Check Inodes space usage (single partition)
Inodes-Global : Check Inodes space usage (all partitions or filtered with regexp)
Is-File-Generic : Check the presence of a file
Is-Not-File-Generic : Check the absence of a file
Packet-Errors-Generic-Name : Check packet errors and discards on an interface
Packet-Errors-Global : Check packet errors and discards on interfaces (all interfaces or filtered with regexp)
Process-Generic : Check linux processes
Traffic-Generic-Name : Check Traffic (single interface)
Traffic-Global : Check Traffic (all interfaces or filtered with regexp)

%prep

%build

%install
install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/centreon_linux_local.pl
install -D -m644 %{SOURCE1} %buildroot/%{nrpe_sysconfdir}/centreon_linux_local.cfg

%clean
rm -rf %buildroot

%files 
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%dir %{nrpe_sysconfdir}
%{nagios_plugindir}/centreon_linux_local*
%attr(0644,root,root) %config(noreplace) %{nrpe_sysconfdir}/centreon_linux_local.cfg

%changelog
openSUSE Build Service is sponsored by