Votre hébergeur spécialisé Apple
Contact: 0820 290 108 (0,13 € TTC /min)

Munin's Plugins for Xserve G4, G5 & Intel


-- Update May 16 20:30 2011 : Add a nfs_client_cache_macosx.sh, nfs_client_macosx.sh, nfs_server_macosx.sh plugins (tgz)
-- Update Tue Feb 18 16:30 2010 : Add a 'mem' plugin, which graph memory usage on Mac OS X (DevTools are required)
-- Update Fri Mar 27 23:38 2009 : Correct errors on displaying temperature on G4
-- Update Tue Nov 11 00:27 2008 : Add a 'df' plugin, correct errors on displaying temperature on G4 and G5
-- First public release : Sep 15 2008

Xserve G4's plugins and G5's plugins use serveradmin, Xserve Intel's plugins use ipmitool. The plugin's archive contains the following plugins : power, voltage, temperature, load, memory usage, bind requests per second and network interface throughput. More to come. To use the dns requests/sec plugin you need to install (and configure) two other perl scripts : read-bind-stats.pl & update-bind-stats.pl. update-bind-stats.pl is a daemon which update a sqlite database, and read-bind-stats.pl reads data from this database. It's usefull when you have big log files. These two scripts can easily be modified to count request per second from any other log files.
  1. Download xserve G4's or xserve G5's or xserve Intel's plugins.
    	  tar xzvf plugins_xserveg{4,5}.tgz
    	  cd plugins_xserveg{4,5}
    	  sudo sh ./install_plugins.sh /PATH/TO/MUNIN/ETC/PLUGINS/FOLDER /PATH/TO/MUNIN/LIB/FOLDER 
    
    	  #ex: sudo sh ./install_plugins.sh /usr/local/munin/etc/plugins /usr/local/munin/lib
  2. Download nfs macosx plugins
    	  tar xzvf plugins_nfs_macosx_server.tgz
    	  cd plugins_nfs_macosx_server
    	  sudo sh ./install_plugins.sh /PATH/TO/MUNIN/ETC/PLUGINS/FOLDER /PATH/TO/MUNIN/LIB/FOLDER 
    
    	  #ex: sudo sh ./install_plugins.sh /usr/local/munin/etc/plugins /usr/local/munin/lib
  3. Download Aqua Ray's serveradmin (only for Xserve G4 & Xserve G5):
    	  tar xzvf ar_serveradmin.tgz
    	  cd ar_serveradmin
    	  make
    	  sudo make install # it copies the program ar_serveradmin in /usr/sbin
  4. Edit sudoers (only for Xserve G4 & Xserve G5):
    	  sudo visudo
    The munin-node's user must have the right to run the command 'sudo /usr/sbin/ar_serveradmin' WITHOUT any password !
    If your munin-node is running under an admin user, then you should write something like this in your sudoers:
    	...
    	# Cmnd alias specification
    	Cmnd_Alias AR_SERVERADMIN=/usr/sbin/ar_serveradmin
    
    	# Defaults specification
    
    	# Runas alias specification
    
    	# User privilege specification
    	root    ALL=(ALL) ALL
    	%admin  ALL=(ALL) ALL,NOPASSWD:AR_SERVERADMIN
    	....
  5. Reload munin-node configuration
    sudo kill -HUP `ps auxww|grep munin-no |awk '/munin\-node/ {print $2}'`
  6. Test :
          aquaray$ telnet localhost 4949
          Trying ::1...
          telnet: connect to address ::1: Connection refused
          Trying fe80::1...
          telnet: connect to address fe80::1: Connection refused
          Trying 127.0.0.1...
          Connected to localhost.
          Escape character is '^]'.
          # munin node at test.aquaray.com
          list
          xserveIntel_voltage if_macosx_en1 df_macosx.sh if_macosx_en0 xserveIntel_fans xserveIntel_power xserveIntel_temperature load
          fetch xserveIntel_temperature
          CPU_B_Heatsink.value 38
          NorthBridge_HS.value 41
          FBDIMM_Slot_1.value 49
          PCI_Slot_1.value 46
          PCI_Slot_2.value 38
          L_Chunnel_Inlet.value 34
          CPU_A_Heatsink.value 39
          PSU1_Exhaust.value 49
          R_Chunnel_Inlet.value 33
          FBDIMM_Slot_2.value 56
          .
          quit
          Connection closed by foreign host.
          aquaray$      
    If you have an output like this one, you have done it !

  7. If you have any questions about these plugins, please contact us through : http://www.aquaray.com/contact.php