1 |
Summary: sme server system monitor |
Summary: sme server system monitor |
2 |
%define name smeserver-sysmon |
%define name smeserver-sysmon |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 6.0 |
%define version 6.1 |
5 |
%define release 2 |
%define release 1 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: Freely distributable |
License: Freely distributable |
11 |
BuildRoot: /var/tmp/e-smith-buildroot |
BuildRoot: /var/tmp/e-smith-buildroot |
12 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
13 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
14 |
Requires: smeserver-release >= 7, sysstat >= 5, rrdtool >= 1.0, rrdtool < 1.1, perl-rrdtool >= 1 |
Requires: smeserver-release >= 7 |
15 |
|
Requires: sysstat >= 5 |
16 |
|
Requires: rrdtool >= 1.2 |
17 |
|
Requires: perl(RRDs) |
18 |
|
Requires: fping |
19 |
AutoReqProv: no |
AutoReqProv: no |
20 |
|
|
21 |
%changelog |
%changelog |
22 |
* Sun Feb 17 2008 Michel Van hees <michel@vanhees.cc> |
* Thu Mar 27 2008 Michel Van hees <michel@vanhees.cc> 6.1-1 |
23 |
- 6.0-2 |
- Upgrade to new sysmon routines |
24 |
- Restriction on rrdtools version |
- Make compatible with rrdtool 1.2 |
25 |
|
- Format graphs so they look better |
26 |
* Tue Feb 14 2008 Michel Van hees <michel@vanhees.cc> |
- Make compatible with SME 7 & 8 |
|
- 6.0-1 |
|
|
- Add multi HD graph |
|
|
- Add debug message on service to help debug |
|
|
|
|
|
* Tue Feb 05 2008 Michel Van hees <michel@vanhees.cc> |
|
|
- 5.1.3 |
|
|
- Fix several bug in daemon file |
|
|
|
|
|
* Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc> |
|
|
- 5.1.2 |
|
|
- Fix bug in server-manager naviguation |
|
|
|
|
|
* Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc> |
|
|
- 5.1.1 |
|
|
- Add number of user connected using samba |
|
|
|
|
|
* Thu Oct 25 2007 Michel Van hees <michel@vanhees.cc> |
|
|
- Fix a bug with different language |
|
|
|
|
|
* Mon Jul 24 2006 Michel Van hees <michel@vanhees.cc> |
|
|
- 5.0.3 |
|
|
- Multi cpu graph display |
|
|
|
|
|
* Fri Jul 14 2006 Michel Van hees <michel@vanhees.cc> |
|
|
- 5.0.2 |
|
|
- Disk size bug correction |
|
|
|
|
|
* Sat Jul 08 2006 Michel Van hees <michel@vanhees.cc> |
|
|
- 5.0-1 |
|
|
- adapt to sme server version 7 |
|
27 |
|
|
28 |
* Fri Apr 11 2003 Shad L. Lords <slords@mail.com> |
* Fri Apr 11 2003 Shad L. Lords <slords@mail.com> |
29 |
- 4.1-1 |
- 4.1-1 |
201 |
%pre |
%pre |
202 |
if [ $1 -ge 2 ] ; then |
if [ $1 -ge 2 ] ; then |
203 |
mkdir -p /var/lib/rrd/backup |
mkdir -p /var/lib/rrd/backup |
204 |
/bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ |
/bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ 2> /dev/null || : |
|
/bin/rm -f /var/lib/rrd/*.rrd |
|
|
fi |
|
|
|
|
|
%preun |
|
|
|
|
|
%post |
|
|
/sbin/e-smith/db configuration set sysmon service status enabled debug release |
|
|
/sbin/e-smith/signal-event conf-sysmon |
|
|
/usr/bin/killall sysmon > /dev/null 2>&1 |
|
|
/usr/sbin/sysmon > /dev/null 2>&1 |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
|
|
cat << DONE |
|
|
|
|
|
* All rrd file have been backuped in /var/lib/rrd/backup/ |
|
|
|
|
|
DONE |
|
|
|
|
|
%postun |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
|
|
if ! [[ -e /usr/sbin/sysmon ]]; then |
|
|
/usr/bin/killall sysmon > /dev/null 2>&1; |
|
205 |
fi |
fi |
206 |
|
|
207 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |