]> pere.pagekite.me Git - homepage.git/blob - blog/tags/sitesummary/index.html
63629b781686f45e92955f17e52e7625fefb772c
[homepage.git] / blog / tags / sitesummary / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html>
4 <head>
5 <title>Petter Reinholdtsen: Entries Tagged sitesummary</title>
6 <link rel="stylesheet" type="text/css" media="screen" href="http://people.skolelinux.org/pere/blog/style.css">
7 <link rel="alternate" title="RSS Feed" href="sitesummary.rss" type="application/rss+xml">
8 </head>
9 <body>
10
11 <div class="title">
12 <h1>
13 <a href="http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen</a>
14
15 </h1>
16
17 </div>
18
19 <p>Entries tagged "sitesummary".</p>
20
21
22
23
24 <div class="entry">
25 <div class="title">
26 <a href="http://people.skolelinux.org/pere/blog/Automatic_Munin_and_Nagios_configuration.html">Automatic Munin and Nagios configuration</a>
27 </div>
28 <div class="date">
29 2010-01-27 15:15
30 </div>
31
32 <div class="body">
33
34 <p>One of the new features in the next Debian/Lenny based release of
35 Debian Edu/Skolelinux, which is scheduled for release in the next few
36 days, is automatic configuration of the service monitoring system
37 Nagios. The previous release had automatic configuration of trend
38 analysis using Munin, and this Lenny based release take that a step
39 further.</p>
40
41 <p>When installing a Debian Edu Main-server, it is automatically
42 configured as a Munin and Nagios server. In addition, it is
43 configured to be a server for the
44 <a href="http://wiki.debian.org/DebianEdu/HowTo/SiteSummary">SiteSummary
45 system</a> I have written for use in Debian Edu. The SiteSummary
46 system is inspired by a system used by the University of Oslo where I
47 work. In short, the system provide a centralised collector of
48 information about the computers on the network, and a client on each
49 computer submitting information to this collector. This allow for
50 automatic information on which packages are installed on each machine,
51 which kernel the machines are using, what kind of configuration the
52 packages got etc. This also allow us to automatically generate Munin
53 and Nagios configuration.</p>
54
55 <p>All computers reporting to the sitesummary collector with the
56 munin-node package installed is automatically enabled as a Munin
57 client and graphs from the statistics collected from that machine show
58 up automatically on http://www/munin/ on the Main-server.</p>
59
60 <p>All non-laptop computers reporting to the sitesummary collector are
61 automatically monitored for network presence (ping and any network
62 services detected). In addition, all computers (also laptops) with
63 the nagios-nrpe-server package installed and configured the way
64 sitesummary would configure it, are monitored for full disks, software
65 raid status, swap free and other checks that need to run locally on
66 the machine.</p>
67
68 <p>The result is that the administrator on a school using Debian Edu
69 based on Lenny will be able to check the health of his installation
70 with one look at the Nagios settings, without having to spend any time
71 keeping the Nagios configuration up-to-date.</p>
72
73 <p>The only configuration one need to do to get Nagios up and running
74 is to set the password used to get access via HTTP. The system
75 administrator need to run "<tt>htpasswd /etc/nagios3/htpasswd.users
76 nagiosadmin</tt>" to create a nagiosadmin user and set a password for
77 it to be able to log into the Nagios web pages. After that,
78 everything is taken care of.</p>
79
80 </div>
81 <div class="tags">
82
83
84
85 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug</a>, <a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary</a>.
86
87 </div>
88 </div>
89 <div class="padding"></div>
90
91 <div class="entry">
92 <div class="title">
93 <a href="http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_MAC_address_of_all_clients.html">Sitesummary tip: Listing MAC address of all clients</a>
94 </div>
95 <div class="date">
96 2010-05-14 21:10
97 </div>
98
99 <div class="body">
100
101 <p>In the recent Debian Edu versions, the
102 <a href="http://wiki.debian.org/DebianEdu/HowTo/SiteSummary">sitesummary
103 system</a> is used to keep track of the machines in the school
104 network. Each machine will automatically report its status to the
105 central server after boot and once per night. The network setup is
106 also reported, and using this information it is possible to get the
107 MAC address of all network interfaces in the machines. This is useful
108 to update the DHCP configuration.</p>
109
110 <p>To give some idea how to use sitesummary, here is a one-liner to
111 ist all MAC addresses of all machines reporting to sitesummary. Run
112 this on the collector host:</p>
113
114 <blockquote><pre>
115 perl -MSiteSummary -e 'for_all_hosts(sub { print join(" ", get_macaddresses(shift)), "\n"; });'
116 </pre></blockquote>
117
118 <p>This will list all MAC addresses assosiated with all machine, one
119 line per machine and with space between the MAC addresses.</p>
120
121 <p>To allow system administrators easier job at adding static DHCP
122 addresses for hosts, it would be possible to extend this to fetch
123 machine information from sitesummary and update the DHCP and DNS
124 tables in LDAP using this information. Such tool is unfortunately not
125 written yet.</p>
126
127 </div>
128 <div class="tags">
129
130
131
132 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary</a>.
133
134 </div>
135 </div>
136 <div class="padding"></div>
137
138 <div class="entry">
139 <div class="title">
140 <a href="http://people.skolelinux.org/pere/blog/Sitesummary_tip__Listing_computer_hardware_models_used_at_site.html">Sitesummary tip: Listing computer hardware models used at site</a>
141 </div>
142 <div class="date">
143 2010-06-03 12:05
144 </div>
145
146 <div class="body">
147
148 <p>When using sitesummary at a site to track machines, it is possible
149 to get a list of the machine types in use thanks to the DMI
150 information extracted from each machine. The script to do so is
151 included in the sitesummary package, and here is example output from
152 the Skolelinux build servers:</p>
153
154 <blockquote><pre>
155 maintainer:~# /usr/lib/sitesummary/hardware-model-summary
156 vendor count
157 Dell Computer Corporation 1
158 PowerEdge 1750 1
159 IBM 1
160 eserver xSeries 345 -[8670M1X]- 1
161 Intel 2
162 [no-dmi-info] 3
163 maintainer:~#
164 </pre></blockquote>
165
166 <p>The quality of the report depend on the quality of the DMI tables
167 provided in each machine. Here there are Intel machines without model
168 information listed with Intel as vendor and mo model, and virtual Xen
169 machines listed as [no-dmi-info]. One can add -l as a command line
170 option to list the individual machines.</p>
171
172 <p>A larger list is
173 <a href="http://narvikskolen.no/sitesummary/">available from the the
174 city of Narvik</a>, which uses Skolelinux on all their shools and also
175 provide the basic sitesummary report publicly. In their report there
176 are ~1400 machines. I know they use both Ubuntu and Skolelinux on
177 their machines, and as sitesummary is available in both distributions,
178 it is trivial to get all of them to report to the same central
179 collector.</p>
180
181 </div>
182 <div class="tags">
183
184
185
186 Tags: <a href="http://people.skolelinux.org/pere/blog/tags/debian">debian</a>, <a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary</a>.
187
188 </div>
189 </div>
190 <div class="padding"></div>
191
192 <p style="text-align: right;"><a href="sitesummary.rss"><img src="http://people.skolelinux.org/pere/blog/xml.gif" alt="RSS Feed" width="36" height="14"></a></p>
193
194
195
196
197 <div id="sidebar">
198
199 <h2>Archive</h2>
200 <ul>
201
202 <li>2011
203 <ul>
204
205 <li><a href="http://people.skolelinux.org/pere/blog/archive/2011/01/">January (3)</a></li>
206
207 </ul></li>
208
209 <li>2010
210 <ul>
211
212 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/01/">January (2)</a></li>
213
214 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/02/">February (1)</a></li>
215
216 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/03/">March (3)</a></li>
217
218 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/04/">April (3)</a></li>
219
220 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/05/">May (9)</a></li>
221
222 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/06/">June (14)</a></li>
223
224 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/07/">July (12)</a></li>
225
226 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/08/">August (13)</a></li>
227
228 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/09/">September (7)</a></li>
229
230 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/10/">October (9)</a></li>
231
232 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/11/">November (13)</a></li>
233
234 <li><a href="http://people.skolelinux.org/pere/blog/archive/2010/12/">December (12)</a></li>
235
236 </ul></li>
237
238 <li>2009
239 <ul>
240
241 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/01/">January (8)</a></li>
242
243 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/02/">February (8)</a></li>
244
245 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/03/">March (12)</a></li>
246
247 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/04/">April (10)</a></li>
248
249 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/05/">May (9)</a></li>
250
251 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/06/">June (3)</a></li>
252
253 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/07/">July (4)</a></li>
254
255 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/08/">August (3)</a></li>
256
257 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/09/">September (1)</a></li>
258
259 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/10/">October (2)</a></li>
260
261 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/11/">November (3)</a></li>
262
263 <li><a href="http://people.skolelinux.org/pere/blog/archive/2009/12/">December (3)</a></li>
264
265 </ul></li>
266
267 <li>2008
268 <ul>
269
270 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/11/">November (5)</a></li>
271
272 <li><a href="http://people.skolelinux.org/pere/blog/archive/2008/12/">December (7)</a></li>
273
274 </ul></li>
275
276 </ul>
277
278
279
280 <h2>Tags</h2>
281 <ul>
282
283 <li><a href="http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (13)</a></li>
284
285 <li><a href="http://people.skolelinux.org/pere/blog/tags/amiga">amiga (1)</a></li>
286
287 <li><a href="http://people.skolelinux.org/pere/blog/tags/aros">aros (1)</a></li>
288
289 <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (2)</a></li>
290
291 <li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (10)</a></li>
292
293 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (46)</a></li>
294
295 <li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (54)</a></li>
296
297 <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (82)</a></li>
298
299 <li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (1)</a></li>
300
301 <li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (11)</a></li>
302
303 <li><a href="http://people.skolelinux.org/pere/blog/tags/kart">kart (5)</a></li>
304
305 <li><a href="http://people.skolelinux.org/pere/blog/tags/ldap">ldap (8)</a></li>
306
307 <li><a href="http://people.skolelinux.org/pere/blog/tags/lenker">lenker (4)</a></li>
308
309 <li><a href="http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (1)</a></li>
310
311 <li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (11)</a></li>
312
313 <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (97)</a></li>
314
315 <li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (114)</a></li>
316
317 <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (18)</a></li>
318
319 <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (32)</a></li>
320
321 <li><a href="http://people.skolelinux.org/pere/blog/tags/reprap">reprap (11)</a></li>
322
323 <li><a href="http://people.skolelinux.org/pere/blog/tags/robot">robot (4)</a></li>
324
325 <li><a href="http://people.skolelinux.org/pere/blog/tags/rss">rss (1)</a></li>
326
327 <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (22)</a></li>
328
329 <li><a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (3)</a></li>
330
331 <li><a href="http://people.skolelinux.org/pere/blog/tags/standard">standard (21)</a></li>
332
333 <li><a href="http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (1)</a></li>
334
335 <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (5)</a></li>
336
337 <li><a href="http://people.skolelinux.org/pere/blog/tags/video">video (17)</a></li>
338
339 <li><a href="http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (1)</a></li>
340
341 <li><a href="http://people.skolelinux.org/pere/blog/tags/web">web (14)</a></li>
342
343 </ul>
344
345 </div>
346 </body>
347 </html>