| 1 |
Name: nagios-plugins-linux |
| 2 |
Version: @version@ |
| 3 |
Release: @release@%{?dist} |
| 4 |
Summary: Linux plugins for nagios compatible monitoring systems |
| 5 |
|
| 6 |
Group: Applications/System |
| 7 |
License: GPLv3+ |
| 8 |
URL: https://github.com/madrisan/nagios-plugins-linux/wiki |
| 9 |
Source0: https://github.com/madrisan/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz |
| 10 |
|
| 11 |
BuildRequires: gcc |
| 12 |
BuildRequires: make |
| 13 |
BuildRequires: glibc-devel |
| 14 |
|
| 15 |
#Requires: nagios-common >= 3.3.1-1 |
| 16 |
|
| 17 |
%if 0%{?rhel} < 6 |
| 18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 19 |
%endif |
| 20 |
|
| 21 |
%description |
| 22 |
A suite of Nagios/NRPE plugins for monitoring Linux servers and appliances. |
| 23 |
|
| 24 |
%package all |
| 25 |
Summary: Nagios Plugins Linux - All plugins |
| 26 |
Group: Applications/System |
| 27 |
Requires: nagios-plugins-linux-clock |
| 28 |
Requires: nagios-plugins-linux-cpu |
| 29 |
Requires: nagios-plugins-linux-cpufreq |
| 30 |
Requires: nagios-plugins-linux-cswch |
| 31 |
Requires: nagios-plugins-linux-fc |
| 32 |
Requires: nagios-plugins-linux-filecount |
| 33 |
Requires: nagios-plugins-linux-ifmountfs |
| 34 |
Requires: nagios-plugins-linux-intr |
| 35 |
Requires: nagios-plugins-linux-iowait |
| 36 |
Requires: nagios-plugins-linux-load |
| 37 |
Requires: nagios-plugins-linux-memory |
| 38 |
Requires: nagios-plugins-linux-multipath |
| 39 |
Requires: nagios-plugins-linux-nbprocs |
| 40 |
Requires: nagios-plugins-linux-network |
| 41 |
Requires: nagios-plugins-linux-paging |
| 42 |
Requires: nagios-plugins-linux-pressure |
| 43 |
Requires: nagios-plugins-linux-readonlyfs |
| 44 |
Requires: nagios-plugins-linux-selinux |
| 45 |
Requires: nagios-plugins-linux-swap |
| 46 |
Requires: nagios-plugins-linux-tcpcount |
| 47 |
Requires: nagios-plugins-linux-temperature |
| 48 |
Requires: nagios-plugins-linux-uptime |
| 49 |
Requires: nagios-plugins-linux-users |
| 50 |
|
| 51 |
%description all |
| 52 |
A suite of Nagios/NRPE plugins for monitoring Linux servers and appliances. |
| 53 |
|
| 54 |
%package clock |
| 55 |
Summary: Nagios plugins for Linux - check_clock |
| 56 |
Group: Applications/System |
| 57 |
|
| 58 |
%description clock |
| 59 |
This Nagios plugin returns the number of seconds elapsed between local time and Nagios time. |
| 60 |
|
| 61 |
%if 0%{?have_libcurl} |
| 62 |
%package container |
| 63 |
Summary: Nagios plugins for Linux - experimental plugin check_container |
| 64 |
Group: Applications/System |
| 65 |
|
| 66 |
%description container |
| 67 |
This Nagios plugin checks the memory and the number of running docker and podman containers. |
| 68 |
%endif |
| 69 |
|
| 70 |
%package cpu |
| 71 |
Summary: Nagios plugins for Linux - check_cpu |
| 72 |
Group: Applications/System |
| 73 |
|
| 74 |
%description cpu |
| 75 |
This Nagios plugin checks the CPU (user mode) utilization. |
| 76 |
|
| 77 |
%package cpufreq |
| 78 |
Summary: Nagios plugins for Linux - check_cpufreq |
| 79 |
Group: Applications/System |
| 80 |
|
| 81 |
%description cpufreq |
| 82 |
This Nagios plugin displays the CPU frequency characteristics. |
| 83 |
|
| 84 |
%package cswch |
| 85 |
Summary: Nagios plugins for Linux - check_cpu |
| 86 |
Group: Applications/System |
| 87 |
|
| 88 |
%description cswch |
| 89 |
This Nagios plugin monitors the total number of context switches per second across all CPUs. |
| 90 |
|
| 91 |
%package fc |
| 92 |
Summary: Nagios plugins for Linux - check_fc |
| 93 |
Group: Applications/System |
| 94 |
|
| 95 |
%description fc |
| 96 |
This Nagios plugin monitors the status of the fiber status ports. |
| 97 |
|
| 98 |
%package filecount |
| 99 |
Summary: Nagios plugins for Linux - check_filecount |
| 100 |
Group: Applications/System |
| 101 |
|
| 102 |
%description filecount |
| 103 |
This Nagios plugin checks the number of files found in one or more directories. |
| 104 |
|
| 105 |
%package ifmountfs |
| 106 |
Summary: Nagios plugins for Linux - check_ifmountfs |
| 107 |
Group: Applications/System |
| 108 |
|
| 109 |
%description ifmountfs |
| 110 |
This Nagios plugin checks whether the given filesystems are mounted. |
| 111 |
|
| 112 |
%package intr |
| 113 |
Summary: Nagios plugins for Linux - check_intr |
| 114 |
Group: Applications/System |
| 115 |
|
| 116 |
%description intr |
| 117 |
This Nagios plugin monitors the interrupts serviced per second, including unnumbered architecture specific interrupts. |
| 118 |
|
| 119 |
%package iowait |
| 120 |
Summary: Nagios plugins for Linux - check_iowait |
| 121 |
Group: Applications/System |
| 122 |
|
| 123 |
%description iowait |
| 124 |
This Nagios plugin monitors the I/O wait bottlenecks. |
| 125 |
|
| 126 |
%package load |
| 127 |
Summary: Nagios plugins for Linux - check_load |
| 128 |
Group: Applications/System |
| 129 |
|
| 130 |
%description load |
| 131 |
This Nagios plugin checks the current system load average. |
| 132 |
|
| 133 |
%package memory |
| 134 |
Summary: Nagios plugins for Linux - check_memory |
| 135 |
Group: Applications/System |
| 136 |
|
| 137 |
%description memory |
| 138 |
This Nagios plugin checks the memory usage. |
| 139 |
|
| 140 |
%package multipath |
| 141 |
Summary: Nagios plugins for Linux - check_multipath |
| 142 |
Group: Applications/System |
| 143 |
|
| 144 |
%description multipath |
| 145 |
This Nagios plugin checks the multipath topology status. |
| 146 |
|
| 147 |
%package nbprocs |
| 148 |
Summary: Nagios plugins for Linux - check_nbprocs |
| 149 |
Group: Applications/System |
| 150 |
|
| 151 |
%description nbprocs |
| 152 |
This Nagios plugin displays the number of running processes per user. |
| 153 |
|
| 154 |
%package network |
| 155 |
Summary: Nagios plugins for Linux - check_network |
| 156 |
Group: Applications/System |
| 157 |
|
| 158 |
%description network |
| 159 |
This Nagios plugin displays some network interfaces statistics. |
| 160 |
|
| 161 |
%package paging |
| 162 |
Summary: Nagios plugins for Linux - check_paging |
| 163 |
Group: Applications/System |
| 164 |
|
| 165 |
%description paging |
| 166 |
This Nagios plugin checks the memory and swap paging. |
| 167 |
|
| 168 |
%package pressure |
| 169 |
Summary: Nagios plugins for Linux - check_pressure |
| 170 |
Group: Applications/System |
| 171 |
|
| 172 |
%description pressure |
| 173 |
This Nagios plugin checks the Linux Pressure Stall Information (PSI) data. |
| 174 |
|
| 175 |
%package readonlyfs |
| 176 |
Summary: Nagios plugins for Linux - check_readonlyfs |
| 177 |
Group: Applications/System |
| 178 |
|
| 179 |
%description readonlyfs |
| 180 |
This Nagios plugin checks for readonly filesystems. |
| 181 |
|
| 182 |
%package selinux |
| 183 |
Summary: Nagios plugins for Linux - check_selinux |
| 184 |
Group: Applications/System |
| 185 |
|
| 186 |
%description selinux |
| 187 |
This Nagios plugin checks if SELinux is enabled. |
| 188 |
|
| 189 |
%package swap |
| 190 |
Summary: Nagios plugins for Linux - check_swap |
| 191 |
Group: Applications/System |
| 192 |
|
| 193 |
%description swap |
| 194 |
This Nagios plugin checks the swap usage. |
| 195 |
|
| 196 |
%package tcpcount |
| 197 |
Summary: Nagios plugins for Linux - check_tcpcount |
| 198 |
Group: Applications/System |
| 199 |
|
| 200 |
%description tcpcount |
| 201 |
This Nagios plugin checks the tcp network usage. |
| 202 |
|
| 203 |
%package temperature |
| 204 |
Summary: Nagios plugins for Linux - check_temperature |
| 205 |
Group: Applications/System |
| 206 |
|
| 207 |
%description temperature |
| 208 |
This Nagios plugin monitors the hardware's temperature. |
| 209 |
|
| 210 |
%package uptime |
| 211 |
Summary: Nagios plugins for Linux - check_uptime |
| 212 |
Group: Applications/System |
| 213 |
|
| 214 |
%description uptime |
| 215 |
This Nagios plugin checks how long the system has been running. |
| 216 |
|
| 217 |
%package users |
| 218 |
Summary: Nagios plugins for Linux - check_users |
| 219 |
Group: Applications/System |
| 220 |
|
| 221 |
%description users |
| 222 |
This Nagios plugin displays the number of users that are currently logged on. |
| 223 |
|
| 224 |
%prep |
| 225 |
%setup -q |
| 226 |
|
| 227 |
%build |
| 228 |
%configure --libexecdir=%{_libdir}/nagios/plugins \ |
| 229 |
--enable-libcurl \ |
| 230 |
%if 0%{?rhel} < 7 |
| 231 |
--with-socketfile=/var/run/multipathd.sock |
| 232 |
%endif |
| 233 |
|
| 234 |
make %{?_smp_mflags} |
| 235 |
|
| 236 |
%install |
| 237 |
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" |
| 238 |
make DESTDIR=%{buildroot} install |
| 239 |
|
| 240 |
%files all |
| 241 |
%defattr(-,root,root) |
| 242 |
%doc AUTHORS COPYING NEWS README |
| 243 |
|
| 244 |
%files clock |
| 245 |
%defattr(-,root,root) |
| 246 |
%{_libdir}/nagios/plugins/check_clock |
| 247 |
|
| 248 |
%if 0%{?have_libcurl} |
| 249 |
%files container |
| 250 |
%defattr(-,root,root) |
| 251 |
%{_libdir}/nagios/plugins/check_container |
| 252 |
%endif |
| 253 |
|
| 254 |
%files cpu |
| 255 |
%defattr(-,root,root) |
| 256 |
%{_libdir}/nagios/plugins/check_cpu |
| 257 |
|
| 258 |
%files cpufreq |
| 259 |
%defattr(-,root,root) |
| 260 |
%{_libdir}/nagios/plugins/check_cpufreq |
| 261 |
|
| 262 |
%files cswch |
| 263 |
%defattr(-,root,root) |
| 264 |
%{_libdir}/nagios/plugins/check_cswch |
| 265 |
|
| 266 |
%files fc |
| 267 |
%defattr(-,root,root) |
| 268 |
%{_libdir}/nagios/plugins/check_fc |
| 269 |
|
| 270 |
%files filecount |
| 271 |
%defattr(-,root,root) |
| 272 |
%{_libdir}/nagios/plugins/check_filecount |
| 273 |
|
| 274 |
%files ifmountfs |
| 275 |
%defattr(-,root,root) |
| 276 |
%{_libdir}/nagios/plugins/check_ifmountfs |
| 277 |
|
| 278 |
%files intr |
| 279 |
%defattr(-,root,root) |
| 280 |
%{_libdir}/nagios/plugins/check_intr |
| 281 |
|
| 282 |
%files iowait |
| 283 |
%defattr(-,root,root) |
| 284 |
%{_libdir}/nagios/plugins/check_iowait |
| 285 |
|
| 286 |
%files load |
| 287 |
%defattr(-,root,root) |
| 288 |
%{_libdir}/nagios/plugins/check_load |
| 289 |
|
| 290 |
%files memory |
| 291 |
%defattr(-,root,root) |
| 292 |
%{_libdir}/nagios/plugins/check_memory |
| 293 |
|
| 294 |
%files multipath |
| 295 |
%defattr(-,root,root) |
| 296 |
%{_libdir}/nagios/plugins/check_multipath |
| 297 |
|
| 298 |
%files nbprocs |
| 299 |
%defattr(-,root,root) |
| 300 |
%{_libdir}/nagios/plugins/check_nbprocs |
| 301 |
|
| 302 |
%files network |
| 303 |
%defattr(-,root,root) |
| 304 |
%{_libdir}/nagios/plugins/check_network |
| 305 |
%{_libdir}/nagios/plugins/check_network_* |
| 306 |
|
| 307 |
%files paging |
| 308 |
%defattr(-,root,root) |
| 309 |
%{_libdir}/nagios/plugins/check_paging |
| 310 |
|
| 311 |
%files pressure |
| 312 |
%defattr(-,root,root) |
| 313 |
%{_libdir}/nagios/plugins/check_pressure |
| 314 |
|
| 315 |
%files readonlyfs |
| 316 |
%defattr(-,root,root) |
| 317 |
%{_libdir}/nagios/plugins/check_readonlyfs |
| 318 |
|
| 319 |
%files selinux |
| 320 |
%defattr(-,root,root) |
| 321 |
%{_libdir}/nagios/plugins/check_selinux |
| 322 |
|
| 323 |
%files swap |
| 324 |
%defattr(-,root,root) |
| 325 |
%{_libdir}/nagios/plugins/check_swap |
| 326 |
|
| 327 |
%files tcpcount |
| 328 |
%defattr(-,root,root) |
| 329 |
%{_libdir}/nagios/plugins/check_tcpcount |
| 330 |
|
| 331 |
%files temperature |
| 332 |
%defattr(-,root,root) |
| 333 |
%{_libdir}/nagios/plugins/check_temperature |
| 334 |
|
| 335 |
%files uptime |
| 336 |
%defattr(-,root,root) |
| 337 |
%{_libdir}/nagios/plugins/check_uptime |
| 338 |
|
| 339 |
%files users |
| 340 |
%defattr(-,root,root) |
| 341 |
%{_libdir}/nagios/plugins/check_users |
| 342 |
|
| 343 |
%changelog |
| 344 |
* @date@ Davide Madrisan <[email protected]> @version@-@release@ |
| 345 |
- Upstream version @version@ |