Merged from SVN repos fedora and centos
This commit is contained in:
146
fedora/SPECS/nagios-plugins-own.spec
Normal file
146
fedora/SPECS/nagios-plugins-own.spec
Normal file
@@ -0,0 +1,146 @@
|
||||
# define svn plugins release this will be checked out:
|
||||
%define svnrel 954
|
||||
# subversion repo link:
|
||||
%define svnlink https://intranet.trivadis.com/svn/TrivadisIT/Scripting/trunk/nagios/
|
||||
# name of nagios:
|
||||
%define nag nagios
|
||||
|
||||
Name: nagios-plugins-own
|
||||
Version: 1.0
|
||||
Release: %{svnrel}%{?dist}
|
||||
Summary: Nagios/Icinga own plugins
|
||||
|
||||
License: GPL
|
||||
URL: http://www.daniel-steiner.org/
|
||||
# cd ~/svn; svn co --username sda https://intranet.trivadis.com/svn/TrivadisIT/Scripting/trunk/nagios/
|
||||
# cd ~/svn; svn up
|
||||
# tar --exclude=templates --exclude=.svn -czf ../rpmbuild/SOURCES/nagios-952.tgz nagios
|
||||
Source0: nagios-%{svnrel}.tgz
|
||||
|
||||
%package netbackup
|
||||
Summary: Nagios Plugins - Netbackup
|
||||
Group: Applications/System
|
||||
|
||||
%description netbackup
|
||||
|
||||
%package backuppc
|
||||
Summary: Nagios Plugins - BackupPC
|
||||
Group: Applications/System
|
||||
|
||||
%description backuppc
|
||||
|
||||
%package mysql
|
||||
Summary: Nagios Plugins - MySQL
|
||||
Group: Applications/System
|
||||
|
||||
%description mysql
|
||||
|
||||
%package hw
|
||||
Summary: Nagios Plugins - Hardware
|
||||
Group: Applications/System
|
||||
|
||||
%description hw
|
||||
|
||||
%package all
|
||||
Summary: Nagios Plugins - All package
|
||||
Group: Applications/System
|
||||
Requires: %{name}, %{name}-hw, %{name}-backuppc, %{name}-netbackup, %{name}-mysql
|
||||
|
||||
%description all
|
||||
|
||||
|
||||
|
||||
%define idir %{_libdir}/%{nag}/plugins
|
||||
|
||||
%description
|
||||
Mostly self written Nagioa/Icinga plugins.
|
||||
|
||||
%prep
|
||||
%setup -q -n nagios
|
||||
|
||||
%install
|
||||
%{__install} -d %{buildroot}%{idir}
|
||||
%{__install} -D * %{buildroot}%{idir}/
|
||||
|
||||
%files
|
||||
%defattr(0755,root,root,0755)
|
||||
%{idir}/check-iotop.pl
|
||||
%{idir}/check-swap-io.pl
|
||||
%{idir}/check_access_log.pl
|
||||
%{idir}/check_apache-perf.pl
|
||||
%{idir}/check_apache2.sh
|
||||
%{idir}/check_apache_log_pattern.pl
|
||||
%{idir}/check_apcext.pl
|
||||
%{idir}/check_arch_status.pl
|
||||
%{idir}/check_bind.sh
|
||||
%{idir}/check_cpu
|
||||
%{idir}/check_cpu.pl
|
||||
%{idir}/check_cpu_stat.pl
|
||||
%{idir}/check_esx3.pl
|
||||
%{idir}/check_events.pl
|
||||
%{idir}/check_fail2ban.pl
|
||||
%{idir}/check_http_content.pl
|
||||
%{idir}/check_icingastats
|
||||
%{idir}/check_insight_log2.sh
|
||||
%{idir}/check_iotop.py
|
||||
%{idir}/check_linux_bonding.pl
|
||||
%{idir}/check_linux_procstat.pl
|
||||
%{idir}/check_log3.pl
|
||||
%{idir}/check_log_pattern.pl
|
||||
%{idir}/check_mem_uses.pl
|
||||
%{idir}/check_memcached.pl
|
||||
%{idir}/check_mod_security.pl
|
||||
%{idir}/check_multipath.sh
|
||||
%{idir}/check_os_updates.sh
|
||||
%{idir}/check_procs.pl
|
||||
%{idir}/check_rsync_status.pl
|
||||
%{idir}/check_squid
|
||||
%{idir}/check_squid.pl
|
||||
%{idir}/check_squidwatch-status.pl
|
||||
%{idir}/check_ssl_cert
|
||||
%{idir}/check_svn.py
|
||||
%{idir}/check_tape_drives.sh
|
||||
%{idir}/check_tapes_reserved.pl
|
||||
%{idir}/check_unix_open_fds.pl
|
||||
%{idir}/check_updates.pl
|
||||
%{idir}/check_webpage.rb
|
||||
%{idir}/config-del.pl
|
||||
%{idir}/create-hosts-files.sh
|
||||
%{idir}/get-esx-luns.pl
|
||||
%{idir}/stat_net.pl
|
||||
%{idir}/mrtg-nimbus.conf
|
||||
%{idir}/mrtg-ping-probe.pl
|
||||
|
||||
%files netbackup
|
||||
%defattr(0755,root,root,0755)
|
||||
%{idir}/check_nb_basicdisks.pl
|
||||
%{idir}/check_nb_errs-0.3.pl
|
||||
%{idir}/check_nb_jobs.pl
|
||||
%{idir}/check_nb_jukebox-0.2.pl
|
||||
%{idir}/check_nb_queue-0.1.pl
|
||||
%{idir}/check_nb_volumes.pl
|
||||
|
||||
%files backuppc
|
||||
%defattr(0755,root,root,0755)
|
||||
%{idir}/check_backuppc
|
||||
|
||||
%files mysql
|
||||
%defattr(0755,root,root,0755)
|
||||
%{idir}/check_mysql-wrapper.pl
|
||||
%{idir}/check_mysqld.pl
|
||||
%{idir}/mysql_slave_replication.pl
|
||||
|
||||
%files hw
|
||||
%defattr(0755,root,root,0755)
|
||||
%{idir}/3warecheck.pl
|
||||
%{idir}/hpsmartcheck.pl
|
||||
%{idir}/cciss-vol-check.pl
|
||||
%{idir}/check_cciss
|
||||
%{idir}/check_uniflair.pl
|
||||
%{idir}/switches.conf
|
||||
|
||||
%files all
|
||||
|
||||
%changelog
|
||||
* Sat Jan 11 2014 <elpito@bluewin.ch>
|
||||
- New package.
|
||||
Reference in New Issue
Block a user