Compare commits
4 Commits
27ea8dad23
...
629d7e50fa
Author | SHA1 | Date |
---|---|---|
![]() |
629d7e50fa | |
![]() |
9e7b826803 | |
![]() |
df846c7095 | |
![]() |
81f2596236 |
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=CarbonAPI
|
||||
After=syslog.target network-online.target go-carbon.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/carbonapi -config /etc/carbonapi/config.yml
|
||||
User=carbon
|
||||
Group=carbon
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,71 @@
|
|||
%global _hardened_build 1
|
||||
%define linuxuser carbon
|
||||
%define linuxgroup carbon
|
||||
|
||||
|
||||
Name : carbonapi
|
||||
Version : 0.17.0
|
||||
Release : 1%{dist}
|
||||
License : MIT
|
||||
URL : https://github.com/go-graphite/carbonapi
|
||||
Summary : Implementation of graphite API (graphite-web) in golang
|
||||
Source0 : carbonapi.service
|
||||
BuildRequires: golang
|
||||
BuildRequires: git
|
||||
Requires : git
|
||||
|
||||
|
||||
%description
|
||||
Implementation of graphite API (graphite-web) in golang
|
||||
|
||||
|
||||
%prep
|
||||
%setup -T -q -c %{name}-%{version}
|
||||
export GOPATH=`pwd`
|
||||
mkdir -p src/github.com/go-graphite/
|
||||
cd src/github.com/go-graphite/
|
||||
git clone https://github.com/go-graphite/carbonapi
|
||||
|
||||
|
||||
%build
|
||||
export GOPATH=`pwd`
|
||||
cd src/github.com/go-graphite/carbonapi
|
||||
git checkout tags/v%{version}
|
||||
go build -v -mod vendor -tags cairo -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -X main.BuildVersion=%{version}" -o carbonapi ./cmd/carbonapi
|
||||
|
||||
|
||||
%install
|
||||
install -p -D -m 0755 src/github.com/go-graphite/carbonapi/carbonapi %{buildroot}%{_bindir}/carbonapi
|
||||
install -p -D -m 0644 %{SOURCE0} %{buildroot}%{_unitdir}/carbonapi.service
|
||||
#install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/go-carbon
|
||||
install -p -D -m 0644 src/github.com/go-graphite/carbonapi/cmd/carbonapi/carbonapi.example.yaml %{buildroot}%{_sysconfdir}/carbonapi/config.yaml
|
||||
|
||||
|
||||
%pre
|
||||
getent group %{linuxgroup} > /dev/null || groupadd -r %{linuxgroup}
|
||||
getent passwd %{linuxuser} > /dev/null || \
|
||||
useradd -r -d %{linuxhome} -g %{linuxgroup} \
|
||||
-s /bin/bash -c "carbon user" %{linuxuser}
|
||||
exit 0
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post carbonapi.service
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_preun carbonapi.service
|
||||
|
||||
|
||||
%postun
|
||||
%systemd_postun carbonapi.service
|
||||
|
||||
|
||||
%files
|
||||
%config(noreplace) %attr(0644,%{linuxuser},%{linuxgroup}) %{_sysconfdir}/carbonapi/config.yaml
|
||||
%{_bindir}/carbonapi
|
||||
#%{_sysconfdir}/logrotate.d/%{name}
|
||||
%{_unitdir}/carbonapi.service
|
||||
|
||||
|
||||
%changelog
|
|
@ -0,0 +1,46 @@
|
|||
%define debug_package %{nil}
|
||||
|
||||
Name : check_systembasics
|
||||
Version : 0.1.6
|
||||
Release : 1%{?dist}
|
||||
Summary : A Monitoring Plugin to test various basic operating system properties (on Linux for now)
|
||||
Group : System/Web
|
||||
License : GPL-2.0
|
||||
URL : https://github.com/NETWAYS/check_system_basics
|
||||
BuildRequires : golang
|
||||
BuildRequires : git
|
||||
Requires : git
|
||||
|
||||
|
||||
%description
|
||||
'check_system_basics' is a monitoring plugin, which is capable of retrieving and
|
||||
processing various Linux metrics such as memory or filesystem usage.
|
||||
In the current version check_system_basics supports
|
||||
the memory, filesystem, psi, sensors, netdev and load sub commands.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -T -q -c %{name}-%{version}
|
||||
mkdir go
|
||||
mkdir src
|
||||
cd src
|
||||
git clone https://github.com/NETWAYS/check_system_basics
|
||||
|
||||
|
||||
%build
|
||||
export GOPATH=`pwd`/go
|
||||
export GO111MODULE=on
|
||||
cd src/check_system_basics
|
||||
git checkout tags/v%{version}
|
||||
go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X 'github.com/NETWAYS/check_system_basics/cmd.version="%{version}"'" -o check_system_basics
|
||||
|
||||
|
||||
%install
|
||||
install -p -D -m 0755 src/check_system_basics/check_system_basics %{buildroot}%{_libdir}/nagios/plugins/check_system_basics
|
||||
|
||||
|
||||
%files
|
||||
%{_libdir}/nagios/plugins/check_system_basics
|
||||
|
||||
|
||||
%changelog
|
|
@ -0,0 +1,76 @@
|
|||
%global _hardened_build 1
|
||||
%define linuxuser carbon
|
||||
%define linuxgroup carbon
|
||||
|
||||
|
||||
Name : go-carbon
|
||||
Version : 0.18.0
|
||||
Release : 1%{dist}
|
||||
License : MIT
|
||||
URL : https://github.com/go-graphite/go-carbon
|
||||
Summary : Golang implementation of Graphite/Carbon server
|
||||
BuildRequires: golang
|
||||
BuildRequires: git
|
||||
Requires : git
|
||||
|
||||
|
||||
%description
|
||||
Golang implementation of Graphite/Carbon server with classic architecture: Agent -> Cache -> Persister
|
||||
|
||||
|
||||
%prep
|
||||
%setup -T -q -c %{name}-%{version}
|
||||
export GOPATH=`pwd`
|
||||
mkdir -p src/github.com/go-graphite/
|
||||
cd src/github.com/go-graphite/
|
||||
git clone https://github.com/go-graphite/go-carbon
|
||||
|
||||
|
||||
%build
|
||||
export GOPATH=`pwd`
|
||||
cd src/github.com/go-graphite/go-carbon
|
||||
git checkout tags/v%{version}
|
||||
go build -v -mod vendor -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -X main.BuildVersion=$(BUILD)" go-carbon.go
|
||||
|
||||
|
||||
%install
|
||||
install -p -D -m 0755 src/github.com/go-graphite/go-carbon/go-carbon %{buildroot}%{_bindir}/go-carbon
|
||||
install -p -D -m 0644 src/github.com/go-graphite/go-carbon/deploy/go-carbon.service %{buildroot}%{_unitdir}/go-carbon.service
|
||||
install -p -D -m 0644 src/github.com/go-graphite/go-carbon/deploy/go-carbon.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/go-carbon
|
||||
install -p -D -m 0644 src/github.com/go-graphite/go-carbon/go-carbon.conf.example %{buildroot}%{_sysconfdir}/go-carbon/go-carbon.conf
|
||||
install -p -D -m 0644 src/github.com/go-graphite/go-carbon/deploy/storage-schemas.conf %{buildroot}%{_sysconfdir}/go-carbon/storage-schemas.conf
|
||||
install -p -D -m 0644 src/github.com/go-graphite/go-carbon/deploy/storage-aggregation.conf %{buildroot}%{_sysconfdir}/go-carbon/storage-aggregation.conf
|
||||
mkdir -p %{buildroot}/var/lib/graphite/whisper/
|
||||
|
||||
|
||||
%pre
|
||||
getent group %{linuxgroup} > /dev/null || groupadd -r %{linuxgroup}
|
||||
getent passwd %{linuxuser} > /dev/null || \
|
||||
useradd -r -d %{linuxhome} -g %{linuxgroup} \
|
||||
-s /bin/bash -c "carbon user" %{linuxuser}
|
||||
exit 0
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post go-carbon.service
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_preun go-carbon.service
|
||||
|
||||
|
||||
%postun
|
||||
%systemd_postun go-carbon.service
|
||||
|
||||
|
||||
%files
|
||||
%config(noreplace) %attr(0644,%{linuxuser},%{linuxgroup}) %{_sysconfdir}/go-carbon/go-carbon.conf
|
||||
%config(noreplace) %attr(0640,%{linuxuser},%{linuxgroup}) %{_sysconfdir}/go-carbon/storage-schemas.conf
|
||||
%config(noreplace) %attr(0640,%{linuxuser},%{linuxgroup}) %{_sysconfdir}/go-carbon/storage-aggregation.conf
|
||||
%{_bindir}/go-carbon
|
||||
%{_sysconfdir}/logrotate.d/%{name}
|
||||
%{_unitdir}/go-carbon.service
|
||||
%attr(0770,%{linuxuser},%{linuxgroup}) %dir /var/lib/graphite/whisper/
|
||||
|
||||
|
||||
%changelog
|
|
@ -40,7 +40,7 @@ Summary: Network monitoring application
|
|||
License: GPLv2+
|
||||
Group: System/Monitoring
|
||||
Name: icinga2
|
||||
Version: 2.14.2
|
||||
Version: 2.14.6
|
||||
Release: %{revision}%{?dist}
|
||||
Url: https://www.icinga.com/
|
||||
Source: https://github.com/Icinga/%{name}/archive/v%{version}%{?src_version_suffix}.tar.gz
|
||||
|
|
Loading…
Reference in New Issue