1 <!DOCTYPE html PUBLIC 
"-//W3C//DTD XHTML 1.0 Strict//EN" 
   2         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
   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"> 
  13        <a href=
"http://people.skolelinux.org/pere/blog/">Petter Reinholdtsen
</a> 
  19  <p>Entries tagged "sitesummary".
</p> 
  26  <a href=
"http://people.skolelinux.org/pere/blog/Automatic_Munin_and_Nagios_configuration.html">Automatic Munin and Nagios configuration
</a> 
  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
 
  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> 
  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> 
  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
 
  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> 
  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> 
  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>. 
  89 <div class="padding
"></div> 
  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> 
 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> 
 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> 
 115 perl -MSiteSummary -e 'for_all_hosts(sub { print join(" ", get_macaddresses(shift)), "\n"; });'
 
 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> 
 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
 
 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>.
 
 136 <div class=
"padding"></div> 
 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> 
 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> 
 155 maintainer:~# /usr/lib/sitesummary/hardware-model-summary
 
 157   Dell Computer Corporation     
1 
 160     eserver xSeries 
345 -[
8670M1X]-     
1 
 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> 
 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
 
 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>.
 
 190 <div class=
"padding"></div> 
 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> 
 205 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/01/">January (
2)
</a></li> 
 207 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/02/">February (
1)
</a></li> 
 209 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/03/">March (
3)
</a></li> 
 211 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/04/">April (
3)
</a></li> 
 213 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/05/">May (
9)
</a></li> 
 215 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/06/">June (
14)
</a></li> 
 217 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/07/">July (
12)
</a></li> 
 219 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/08/">August (
13)
</a></li> 
 221 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/09/">September (
7)
</a></li> 
 223 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/10/">October (
9)
</a></li> 
 225 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2010/11/">November (
10)
</a></li> 
 232 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/01/">January (
8)
</a></li> 
 234 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/02/">February (
8)
</a></li> 
 236 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/03/">March (
12)
</a></li> 
 238 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/04/">April (
10)
</a></li> 
 240 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/05/">May (
9)
</a></li> 
 242 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/06/">June (
3)
</a></li> 
 244 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/07/">July (
4)
</a></li> 
 246 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/08/">August (
3)
</a></li> 
 248 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/09/">September (
1)
</a></li> 
 250 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/10/">October (
2)
</a></li> 
 252 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/11/">November (
3)
</a></li> 
 254 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2009/12/">December (
3)
</a></li> 
 261 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2008/11/">November (
5)
</a></li> 
 263 <li><a href=
"http://people.skolelinux.org/pere/blog/archive/2008/12/">December (
7)
</a></li> 
 274  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/3d-printer">3d-printer (
12)
</a></li> 
 276  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/amiga">amiga (
1)
</a></li> 
 278  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/aros">aros (
1)
</a></li> 
 280  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (
10)
</a></li> 
 282  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/debian">debian (
42)
</a></li> 
 284  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (
50)
</a></li> 
 286  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/english">english (
71)
</a></li> 
 288  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (
1)
</a></li> 
 290  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (
11)
</a></li> 
 292  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/kart">kart (
5)
</a></li> 
 294  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/ldap">ldap (
8)
</a></li> 
 296  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/lenker">lenker (
4)
</a></li> 
 298  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/ltsp">ltsp (
1)
</a></li> 
 300  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (
10)
</a></li> 
 302  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/norsk">norsk (
90)
</a></li> 
 304  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/nuug">nuug (
113)
</a></li> 
 306  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (
18)
</a></li> 
 308  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/personvern">personvern (
25)
</a></li> 
 310  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/reprap">reprap (
10)
</a></li> 
 312  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/robot">robot (
4)
</a></li> 
 314  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/rss">rss (
1)
</a></li> 
 316  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (
18)
</a></li> 
 318  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (
3)
</a></li> 
 320  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/standard">standard (
16)
</a></li> 
 322  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (
1)
</a></li> 
 324  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/video">video (
15)
</a></li> 
 326  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/vitenskap">vitenskap (
1)
</a></li> 
 328  <li><a href=
"http://people.skolelinux.org/pere/blog/tags/web">web (
13)
</a></li>