1 |
slords |
1.1 |
Summary: sme server system monitor |
2 |
|
|
%define name smeserver-sysmon |
3 |
|
|
Name: %{name} |
4 |
slords |
1.2 |
%define version 6.0 |
5 |
|
|
%define release 2 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: Freely distributable |
9 |
|
|
Group: Service |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
BuildRoot: /var/tmp/e-smith-buildroot |
12 |
|
|
BuildRequires: e-smith-devtools |
13 |
|
|
BuildArchitectures: noarch |
14 |
slords |
1.2 |
Requires: smeserver-release >= 7, sysstat >= 5, rrdtool >= 1.0, rrdtool < 1.1, perl-rrdtool >= 1 |
15 |
slords |
1.1 |
AutoReqProv: no |
16 |
|
|
|
17 |
|
|
%changelog |
18 |
slords |
1.2 |
* Sun Feb 17 2008 Michel Van hees <michel@vanhees.cc> |
19 |
|
|
- 6.0-2 |
20 |
|
|
- Restriction on rrdtools version |
21 |
|
|
|
22 |
|
|
* Tue Feb 14 2008 Michel Van hees <michel@vanhees.cc> |
23 |
|
|
- 6.0-1 |
24 |
|
|
- Add multi HD graph |
25 |
|
|
- Add debug message on service to help debug |
26 |
|
|
|
27 |
|
|
* Tue Feb 05 2008 Michel Van hees <michel@vanhees.cc> |
28 |
|
|
- 5.1.3 |
29 |
|
|
- Fix several bug in daemon file |
30 |
|
|
|
31 |
|
|
* Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc> |
32 |
|
|
- 5.1.2 |
33 |
|
|
- Fix bug in server-manager naviguation |
34 |
|
|
|
35 |
|
|
* Mon Feb 04 2008 Michel Van hees <michel@vanhees.cc> |
36 |
|
|
- 5.1.1 |
37 |
|
|
- Add number of user connected using samba |
38 |
|
|
|
39 |
slords |
1.1 |
* Thu Oct 25 2007 Michel Van hees <michel@vanhees.cc> |
40 |
|
|
- Fix a bug with different language |
41 |
|
|
|
42 |
|
|
* Mon Jul 24 2006 Michel Van hees <michel@vanhees.cc> |
43 |
|
|
- 5.0.3 |
44 |
|
|
- Multi cpu graph display |
45 |
|
|
|
46 |
|
|
* Fri Jul 14 2006 Michel Van hees <michel@vanhees.cc> |
47 |
|
|
- 5.0.2 |
48 |
|
|
- Disk size bug correction |
49 |
|
|
|
50 |
|
|
* Sat Jul 08 2006 Michel Van hees <michel@vanhees.cc> |
51 |
|
|
- 5.0-1 |
52 |
|
|
- adapt to sme server version 7 |
53 |
|
|
|
54 |
|
|
* Fri Apr 11 2003 Shad L. Lords <slords@mail.com> |
55 |
|
|
- 4.1-1 |
56 |
|
|
- changed rrd file layout to include max/min/avg |
57 |
|
|
- added support for nutups logging |
58 |
|
|
- changed graphs to use all functions |
59 |
|
|
- removed sysmon conversion from v2.0 |
60 |
|
|
|
61 |
|
|
* Thu Apr 10 2003 Shad L. Lords <slords@mail.com> |
62 |
|
|
- 4.0-9 |
63 |
|
|
- fixed gateway to find default gateway only |
64 |
|
|
|
65 |
|
|
* Wed Jan 22 2003 Shad L. Lords <slords@mail.com> |
66 |
|
|
- 4.0-8 |
67 |
|
|
- fixed decimal point (accept . or ,) |
68 |
|
|
- updated sensors to accept numbers without decimals |
69 |
|
|
|
70 |
|
|
* Fri Jan 3 2003 Shad L. Lords <slords@mail.com> |
71 |
|
|
- 4.0-7 |
72 |
|
|
- need of code police again (!= not same as ne). Thanks Craig Foster. |
73 |
|
|
|
74 |
|
|
* Fri Jan 3 2003 Shad L. Lords <slords@mail.com> |
75 |
|
|
- 4.0-6 |
76 |
|
|
- more updates for sensors |
77 |
|
|
- don't save sensors or ups if no data found |
78 |
|
|
- timeout ping after (interval*count+2) (7) seconds (hang bug) |
79 |
|
|
|
80 |
|
|
* Wed Jan 1 2003 Shad L. Lords <slords@mail.com> |
81 |
|
|
- 4.0-5 |
82 |
|
|
- more updates for sensors |
83 |
|
|
|
84 |
|
|
* Tue Dec 31 2002 Shad L. Lords <slords@mail.com> |
85 |
|
|
- 4.0-4 |
86 |
|
|
- added swap to memory graph |
87 |
|
|
|
88 |
|
|
* Tue Dec 31 2002 Shad L. Lords <slords@mail.com> |
89 |
|
|
- 4.0-3 |
90 |
|
|
- updated sensors to pull more combinations |
91 |
|
|
|
92 |
|
|
* Tue Dec 31 2002 Shad L. Lords <slords@mail.com> |
93 |
|
|
- 4.0-2 |
94 |
|
|
- update ups headers to not wrap |
95 |
|
|
|
96 |
|
|
* Mon Dec 30 2002 Shad L. Lords <slords@mail.com> |
97 |
|
|
- 4.0-1 |
98 |
|
|
- updated graph formats (more condensed, no percentages) |
99 |
|
|
- added new CPU graph (with support for individual CPU's) |
100 |
|
|
- changed format of memory graph (more detail) |
101 |
|
|
- added sensors graphs (temperature, voltage, fans) |
102 |
|
|
- added apcupsd graphs (ups, ups-2) |
103 |
|
|
- changed format of harddrive graph (stacked, old one still there as MEM2) |
104 |
|
|
|
105 |
|
|
* Sun Dec 29 2002 Shad L. Lords <slords@mail.com> |
106 |
|
|
- 3.5-1 |
107 |
|
|
- added integration with apcupsd (collection) |
108 |
|
|
- added integration with lm_sensors (collection) |
109 |
|
|
- added new system/user/nice CPU graph (manual) |
110 |
|
|
|
111 |
|
|
* Fri Dec 13 2002 Shad L. Lords <slords@mail.com> |
112 |
|
|
- 3.1-3 |
113 |
|
|
- fixed hard drive space detection for all devices |
114 |
|
|
- made hard drive space more accurate |
115 |
|
|
|
116 |
|
|
* Fri Dec 13 2002 Shad L. Lords <slords@mail.com> |
117 |
|
|
- 3.1-2 |
118 |
|
|
- changed name to e-smith-sysmon |
119 |
|
|
- fixed hard drive space detection for software raid |
120 |
|
|
|
121 |
|
|
* Wed Aug 21 2002 Shad L. Lords <slords@mail.com> |
122 |
|
|
- 3.1-1 |
123 |
|
|
- corrected bug to work with newer version of ping |
124 |
|
|
- update routines to work better with v5.5 and v5.6alpha |
125 |
|
|
|
126 |
|
|
* Sun Aug 4 2002 Shad L. Lords <slords@mail.com> |
127 |
|
|
- 3.0-16 |
128 |
|
|
- Changed spec file to just require rrdtool and not a specific version |
129 |
|
|
- Changed graphing code to work with newer version of rrdtool |
130 |
|
|
- Added stats for each seperate CPU and hard drive (no graphs yet) |
131 |
|
|
|
132 |
|
|
* Mon Mar 25 2002 Shad L. Lords <slords@mail.com> |
133 |
|
|
- 3.0-15 |
134 |
|
|
- Fixed bug in daemonizing code to allow ip addresses. |
135 |
|
|
- Fixed bug in service code to remove lockfile if dead. |
136 |
|
|
|
137 |
|
|
* Tue Mar 19 2002 Shad L. Lords <slords@mail.com> |
138 |
|
|
- 3.0-14 |
139 |
|
|
- Included labels in links for both graph pages |
140 |
|
|
|
141 |
|
|
* Fri Mar 15 2002 Juan J. Prieto |
142 |
|
|
- 3.0-13 |
143 |
|
|
- Minor change in spec file (Group) |
144 |
|
|
|
145 |
|
|
* Thu Mar 7 2002 Shad L. Lords <slords@mail.com> |
146 |
|
|
- 3.0-12 |
147 |
|
|
- Daemonized pinging routine and adjusted timing for pings. |
148 |
|
|
|
149 |
|
|
* Sat Mar 2 2002 Shad L. Lords <slords@mail.com> |
150 |
|
|
- 3.0-11 |
151 |
|
|
- Fixed bug in untainting code to allow '.' for hosts. |
152 |
|
|
|
153 |
|
|
* Sat Mar 2 2002 Shad L. Lords <slords@mail.com> |
154 |
|
|
- 3.0-10 |
155 |
|
|
- Added scaling to sysmonconv for more accurate conversion. |
156 |
|
|
- Added data to DS:MAX for sysmonconv so max values show up. |
157 |
|
|
- Adjusted runtime for sysmon so falls on 0 secs. |
158 |
|
|
- Fixed bug with empty $badifaces in sysmon and sysmonconv. |
159 |
|
|
|
160 |
|
|
* Fri Mar 1 2002 Shad L. Lords <slords@mail.com> |
161 |
|
|
- 3.0-09 |
162 |
|
|
- Fixed bug in sysmonconv if no old database exists. |
163 |
|
|
|
164 |
|
|
* Fri Mar 1 2002 Shad L. Lords <slords@mail.com> |
165 |
|
|
- 3.0-08 |
166 |
|
|
- Fixed sysmonconv script to convert all old databases. |
167 |
|
|
- Fixed sysmonconv to run faster. |
168 |
|
|
- Added sysmonconv to %post script. |
169 |
|
|
|
170 |
|
|
* Thu Feb 28 2002 Shad L. Lords <slords@mail.com> |
171 |
|
|
- 3.0-07 |
172 |
|
|
- Added user, nice, system cpu time to database. |
173 |
|
|
- Added sysmonconv script to convert eth,ppp interfaces to new format. |
174 |
|
|
|
175 |
|
|
* Thu Feb 28 2002 Shad L. Lords <slords@mail.com> |
176 |
|
|
- 3.0-06 |
177 |
|
|
- Fixed more problems in RPM spec file. |
178 |
|
|
- Renamed sysmonitor to sysmon so as not to conflict with e-smith-monitor. |
179 |
|
|
|
180 |
|
|
* Thu Feb 28 2002 Shad L. Lords <slords@mail.com> |
181 |
|
|
- 3.0-05 |
182 |
|
|
- Fixed problems in RPM spec file. |
183 |
|
|
- Added Obsoletes for old e-smith-monitor package |
184 |
|
|
|
185 |
|
|
* Thu Feb 28 2002 Shad L. Lords <slords@mail.com> |
186 |
|
|
- 3.0-04 |
187 |
|
|
- Changed webmonitor to sysmon in web/functions. |
188 |
|
|
- Changed copyright footer notice to reflect Mitel's standard. |
189 |
|
|
- Fixed problem with old packages not uninstalling. |
190 |
|
|
|
191 |
|
|
* Wed Feb 27 2002 Shad L. Lords <slords@mail.com> |
192 |
|
|
- 3.0-03 |
193 |
|
|
- Changed gather script to be daemon instead of cronjob. |
194 |
|
|
- Changed gather script to use perl module instead of executable. |
195 |
|
|
|
196 |
|
|
* Wed Feb 27 2002 Juan J. Prieto <jjptapia@eresmas.com> |
197 |
|
|
- 3.0-02 |
198 |
|
|
- Now the web panel runs with the Taint and warnings up (-wT). Secure mode!. |
199 |
|
|
- Conflicts bug fixed in the spec (e-smith-monitor only). |
200 |
|
|
- The copyright is licensed under GPL. |
201 |
|
|
|
202 |
|
|
* Mon Feb 25 2002 Shad L. Lords <slords@mail.com> |
203 |
|
|
- 3.0-01 |
204 |
|
|
- initial release. Completely rewriten Monitor. |
205 |
|
|
|
206 |
|
|
%description |
207 |
slords |
1.2 |
System monitor for SME Server version 7 |
208 |
slords |
1.1 |
|
209 |
|
|
%prep |
210 |
|
|
%setup |
211 |
|
|
#%patch0 -p1 |
212 |
|
|
#%patch1 -p1 |
213 |
|
|
|
214 |
|
|
%build |
215 |
|
|
perl createlinks |
216 |
|
|
|
217 |
|
|
%install |
218 |
|
|
rm -rf $RPM_BUILD_ROOT |
219 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
220 |
|
|
rm -f %{name}-%{version}-filelist |
221 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
222 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
223 |
|
|
|
224 |
|
|
%clean |
225 |
|
|
rm -rf $RPM_BUILD_ROOT |
226 |
|
|
|
227 |
|
|
%pre |
228 |
slords |
1.2 |
if [ $1 -ge 2 ] ; then |
229 |
|
|
mkdir -p /var/lib/rrd/backup |
230 |
|
|
/bin/mv /var/lib/rrd/*.rrd /var/lib/rrd/backup/ |
231 |
|
|
/bin/rm -f /var/lib/rrd/*.rrd |
232 |
|
|
fi |
233 |
|
|
|
234 |
slords |
1.1 |
%preun |
235 |
|
|
|
236 |
|
|
%post |
237 |
slords |
1.2 |
/sbin/e-smith/db configuration set sysmon service status enabled debug release |
238 |
slords |
1.1 |
/sbin/e-smith/signal-event conf-sysmon |
239 |
|
|
/usr/bin/killall sysmon > /dev/null 2>&1 |
240 |
|
|
/usr/sbin/sysmon > /dev/null 2>&1 |
241 |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
242 |
|
|
cat << DONE |
243 |
|
|
|
244 |
slords |
1.2 |
* All rrd file have been backuped in /var/lib/rrd/backup/ |
245 |
slords |
1.1 |
|
246 |
|
|
DONE |
247 |
|
|
|
248 |
|
|
%postun |
249 |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
250 |
|
|
if ! [[ -e /usr/sbin/sysmon ]]; then |
251 |
|
|
/usr/bin/killall sysmon > /dev/null 2>&1; |
252 |
|
|
fi |
253 |
|
|
|
254 |
|
|
%files -f %{name}-%{version}-filelist |
255 |
|
|
%defattr(-,root,root) |