X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/bec8b5b114f2e880f5defa21382f2689dbd8cd7f..b7bae06bae6af5cff9cb5ca41868c6f6d31fb6a1:/blog/tags/sitesummary/index.html diff --git a/blog/tags/sitesummary/index.html b/blog/tags/sitesummary/index.html index 7b34147eab..671403ac53 100644 --- a/blog/tags/sitesummary/index.html +++ b/blog/tags/sitesummary/index.html @@ -22,108 +22,64 @@
- Automatic Munin and Nagios configuration + Setting up a new school with Debian Edu/Squeeze
- 27th January 2010 + 25th January 2012
-

One of the new features in the next Debian/Lenny based release of -Debian Edu/Skolelinux, which is scheduled for release in the next few -days, is automatic configuration of the service monitoring system -Nagios. The previous release had automatic configuration of trend -analysis using Munin, and this Lenny based release take that a step -further.

- -

When installing a Debian Edu Main-server, it is automatically -configured as a Munin and Nagios server. In addition, it is -configured to be a server for the -SiteSummary -system I have written for use in Debian Edu. The SiteSummary -system is inspired by a system used by the University of Oslo where I -work. In short, the system provide a centralised collector of -information about the computers on the network, and a client on each -computer submitting information to this collector. This allow for -automatic information on which packages are installed on each machine, -which kernel the machines are using, what kind of configuration the -packages got etc. This also allow us to automatically generate Munin -and Nagios configuration.

- -

All computers reporting to the sitesummary collector with the -munin-node package installed is automatically enabled as a Munin -client and graphs from the statistics collected from that machine show -up automatically on http://www/munin/ on the Main-server.

- -

All non-laptop computers reporting to the sitesummary collector are -automatically monitored for network presence (ping and any network -services detected). In addition, all computers (also laptops) with -the nagios-nrpe-server package installed and configured the way -sitesummary would configure it, are monitored for full disks, software -raid status, swap free and other checks that need to run locally on -the machine.

+

The next version of Debian Edu +/ Skolelinux will include a new tool +sitesummary2ldapdhcp, which can be used to quickly set up all +the computers in a school without much manual labour. Here is a short +summary on how to use it to set up a new school.

-

The result is that the administrator on a school using Debian Edu -based on Lenny will be able to check the health of his installation -with one look at the Nagios settings, without having to spend any time -keeping the Nagios configuration up-to-date.

+

First, install a combined Main Server and Thin Client Server as the +central server in the network. Next, PXE boot all the client machines +as thin clients and wait 5 minutes after the last client booted to +allow the clients to report their existence to the central server. When +this is done, log on to the central server and run +sitesummary2ldapdhcp -a in the konsole to use the +collected information to generate system objects in LDAP. The output +will look similar to this:

-

The only configuration one need to do to get Nagios up and running -is to set the password used to get access via HTTP. The system -administrator need to run "htpasswd /etc/nagios3/htpasswd.users -nagiosadmin" to create a nagiosadmin user and set a password for -it to be able to log into the Nagios web pages. After that, -everything is taken care of.

+

+% sitesummary2ldapdhcp -a
+info: Updating machine tjener.intern [10.0.2.2] id ether-00:01:02:03:04:05.
+info: Create GOsa machine for auto-mac-00-01-02-03-04-06 [10.0.16.20] id ether-00:01:02:03:04:06.
 
-      
-
- - - Tags: debian edu, english, nuug, sitesummary. - - -
-
-
- -
-
- Sitesummary tip: Listing MAC address of all clients -
-
- 14th May 2010 -
-
-

In the recent Debian Edu versions, the -sitesummary -system is used to keep track of the machines in the school -network. Each machine will automatically report its status to the -central server after boot and once per night. The network setup is -also reported, and using this information it is possible to get the -MAC address of all network interfaces in the machines. This is useful -to update the DHCP configuration.

+Enter password if you want to activate these changes, and ^c to abort. -

To give some idea how to use sitesummary, here is a one-liner to -ist all MAC addresses of all machines reporting to sitesummary. Run -this on the collector host:

+Connecting to LDAP as cn=admin,ou=ldap-access,dc=skole,dc=skolelinux,dc=no +enter password: ******* +% +

-
-perl -MSiteSummary -e 'for_all_hosts(sub { print join(" ", get_macaddresses(shift)), "\n"; });'
-
+

After providing the LDAP administrative password (the same as the +root password set during installation), the LDAP database will be +populated with system objects for each PXE booted machine with +automatically generated names. The final step to set up the school is +then to log into GOsa, +the web based user, group and system administration system to change +system names, add systems to the correct host groups and finally +enable DHCP and DNS for the systems. All clients that should be used +as diskless workstations should be added to the workstation-hosts +group. After this is done, all computers can be booted again via PXE +and get their assigned names and group based configuration +automatically.

-

This will list all MAC addresses assosiated with all machine, one -line per machine and with space between the MAC addresses.

+

We plan to release beta3 with the updated version of this feature +enabled this weekend. You might want to give it a try.

-

To allow system administrators easier job at adding static DHCP -addresses for hosts, it would be possible to extend this to fetch -machine information from sitesummary and update the DHCP and DNS -tables in LDAP using this information. Such tool is unfortunately not -written yet.

+

Update 2012-01-28: When calling sitesummary2ldapdhcp to add new +hosts, one need to add the option -a. I forgot to mention this in my +original text, and have added it to the text now.

- Tags: debian, debian edu, english, sitesummary. + Tags: debian edu, english, sitesummary.
@@ -184,64 +140,108 @@ collector.

- 25th January 2012 + 14th May 2010
-

The next version of Debian Edu -/ Skolelinux will include a new tool -sitesummary2ldapdhcp, which can be used to quickly set up all -the computers in a school without much manual labour. Here is a short -summary on how to use it to set up a new school.

+

In the recent Debian Edu versions, the +sitesummary +system is used to keep track of the machines in the school +network. Each machine will automatically report its status to the +central server after boot and once per night. The network setup is +also reported, and using this information it is possible to get the +MAC address of all network interfaces in the machines. This is useful +to update the DHCP configuration.

-

First, install a combined Main Server and Thin Client Server as the -central server in the network. Next, PXE boot all the client machines -as thin clients and wait 5 minutes after the last client booted to -allow the clients to report their existence to the central server. When -this is done, log on to the central server and run -sitesummary2ldapdhcp -a in the konsole to use the -collected information to generate system objects in LDAP. The output -will look similar to this:

+

To give some idea how to use sitesummary, here is a one-liner to +ist all MAC addresses of all machines reporting to sitesummary. Run +this on the collector host:

-

-% sitesummary2ldapdhcp -a
-info: Updating machine tjener.intern [10.0.2.2] id ether-00:01:02:03:04:05.
-info: Create GOsa machine for auto-mac-00-01-02-03-04-06 [10.0.16.20] id ether-00:01:02:03:04:06.
+
+perl -MSiteSummary -e 'for_all_hosts(sub { print join(" ", get_macaddresses(shift)), "\n"; });'
+
-Enter password if you want to activate these changes, and ^c to abort. +

This will list all MAC addresses assosiated with all machine, one +line per machine and with space between the MAC addresses.

-Connecting to LDAP as cn=admin,ou=ldap-access,dc=skole,dc=skolelinux,dc=no -enter password: ******* -% -

+

To allow system administrators easier job at adding static DHCP +addresses for hosts, it would be possible to extend this to fetch +machine information from sitesummary and update the DHCP and DNS +tables in LDAP using this information. Such tool is unfortunately not +written yet.

-

After providing the LDAP administrative password (the same as the -root password set during installation), the LDAP database will be -populated with system objects for each PXE booted machine with -automatically generated names. The final step to set up the school is -then to log into GOsa, -the web based user, group and system administration system to change -system names, add systems to the correct host groups and finally -enable DHCP and DNS for the systems. All clients that should be used -as diskless workstations should be added to the workstation-hosts -group. After this is done, all computers can be booted again via PXE -and get their assigned names and group based configuration -automatically.

+
+
+ + + Tags: debian, debian edu, english, sitesummary. + + +
+
+
+ +
+ +
+ 27th January 2010 +
+
+

One of the new features in the next Debian/Lenny based release of +Debian Edu/Skolelinux, which is scheduled for release in the next few +days, is automatic configuration of the service monitoring system +Nagios. The previous release had automatic configuration of trend +analysis using Munin, and this Lenny based release take that a step +further.

-

We plan to release beta3 with the updated version of this feature -enabled this weekend. You might want to give it a try.

+

When installing a Debian Edu Main-server, it is automatically +configured as a Munin and Nagios server. In addition, it is +configured to be a server for the +SiteSummary +system I have written for use in Debian Edu. The SiteSummary +system is inspired by a system used by the University of Oslo where I +work. In short, the system provide a centralised collector of +information about the computers on the network, and a client on each +computer submitting information to this collector. This allow for +automatic information on which packages are installed on each machine, +which kernel the machines are using, what kind of configuration the +packages got etc. This also allow us to automatically generate Munin +and Nagios configuration.

-

Update 2012-01-28: When calling sitesummary2ldapdhcp to add new -hosts, one need to add the option -a. I forgot to mention this in my -original text, and have added it to the text now.

+

All computers reporting to the sitesummary collector with the +munin-node package installed is automatically enabled as a Munin +client and graphs from the statistics collected from that machine show +up automatically on http://www/munin/ on the Main-server.

+ +

All non-laptop computers reporting to the sitesummary collector are +automatically monitored for network presence (ping and any network +services detected). In addition, all computers (also laptops) with +the nagios-nrpe-server package installed and configured the way +sitesummary would configure it, are monitored for full disks, software +raid status, swap free and other checks that need to run locally on +the machine.

+ +

The result is that the administrator on a school using Debian Edu +based on Lenny will be able to check the health of his installation +with one look at the Nagios settings, without having to spend any time +keeping the Nagios configuration up-to-date.

+ +

The only configuration one need to do to get Nagios up and running +is to set the password used to get access via HTTP. The system +administrator need to run "htpasswd /etc/nagios3/htpasswd.users +nagiosadmin" to create a nagiosadmin user and set a password for +it to be able to log into the Nagios web pages. After that, +everything is taken care of.

@@ -269,7 +269,13 @@ original text, and have added it to the text now.

  • May (12)
  • -
  • June (10)
  • +
  • June (20)
  • + +
  • July (17)
  • + +
  • August (6)
  • + +
  • September (2)
  • @@ -388,21 +394,27 @@ original text, and have added it to the text now.

  • bsa (2)
  • -
  • debian (54)
  • +
  • debian (57)
  • -
  • debian edu (104)
  • +
  • debian edu (111)
  • -
  • digistan (8)
  • +
  • digistan (9)
  • -
  • drivstoffpriser (3)
  • +
  • docbook (6)
  • -
  • english (135)
  • +
  • drivstoffpriser (4)
  • -
  • fiksgatami (16)
  • +
  • english (148)
  • + +
  • fiksgatami (17)
  • fildeling (12)
  • -
  • intervju (27)
  • +
  • freeculture (7)
  • + +
  • frikanalen (6)
  • + +
  • intervju (30)
  • kart (16)
  • @@ -412,19 +424,19 @@ original text, and have added it to the text now.

  • ltsp (1)
  • -
  • multimedia (16)
  • +
  • multimedia (23)
  • -
  • norsk (172)
  • +
  • norsk (194)
  • -
  • nuug (131)
  • +
  • nuug (143)
  • -
  • offentlig innsyn (2)
  • +
  • offentlig innsyn (4)
  • open311 (2)
  • -
  • opphavsrett (25)
  • +
  • opphavsrett (35)
  • -
  • personvern (47)
  • +
  • personvern (49)
  • raid (1)
  • @@ -438,13 +450,15 @@ original text, and have added it to the text now.

  • ruter (4)
  • -
  • scraperwiki (1)
  • +
  • scraperwiki (2)
  • sikkerhet (23)
  • sitesummary (4)
  • -
  • standard (29)
  • +
  • skepsis (1)
  • + +
  • standard (37)
  • stavekontroll (1)
  • @@ -452,13 +466,13 @@ original text, and have added it to the text now.

  • surveillance (10)
  • -
  • valg (6)
  • +
  • valg (7)
  • -
  • video (25)
  • +
  • video (32)
  • vitenskap (1)
  • -
  • web (20)
  • +
  • web (25)