welkom / welcome

Welkom

http://www.docum.org/ is een site waar ik alles op zet wat interessant is voor mij en misschien voor anderen. Het is begonnen met het documenteren van het commando tc en online plaatsen van de zaken dat ik uitgezocht en getest had. Met tc kan je linux gebruiken als traffic shaper (link: http://www.docum.org/docum.org/). Die informatie is nog steeds online te vinden, ze is alleen in jaren niet meer bijgewerkt. Voor de website maakte ik vroeger gebruik van http://foswiki.org/, maar eind 2010 ben ik overgeschakeld naar drupal.

AIX: Power 5

Docs: 

Power5

With power5 processors, you can share the processor capacity between the lpars. The vmstat has 2 extra numbers:
vmstat 1 1
System configuration: lcpu=2 mem=512MB ent=0.10

kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi po fr sr cy in sy cs us sy id wa pc ec
0 0 180484 5857 0 0 0 0 0 0 18 190 182 1 5 93 0 0.01 10.7
From man vmstat:
 pc
Number of physical processors consumed. Displayed only if the partition is running with
shared processor.
ec

Linux iotstat graphs

Docs: 

Server patch

Patch the server so it accepts trends messages: http://www.hswn.dk/hobbiton/2007/01/msg00236.html

Client script

Make sure the command iostat is installed (for debian/ubuntu this is package =sysstat=) Add the script to the file clientlaunch.cfg on the linux client so it is executed every 5 minutes (remove the .txt extension):
[linux-iostat]
   ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
   CMD $HOBBITCLIENTHOME/ext/linux-iostat.pl
   LOGFILE $HOBBITCLIENTHOME/logs/linux-iostat.log
   INTERVAL 5m

Debug graph problems

Docs: 
If you have strange graphs, there is a way to create the graphs like hobbit should do. You can completely remove any Xymon code from the graph generation and see if the graph image still looks weird.

find the needed options

Get one of the graphs in your browser and note the URL for the graph image. (If using Firefox,then right-click and "View image" will bring up only the graph image, with the URL for this in the address bar). It will be something like (one long line):

AIX tip: vmstat trends

Docs: 
Add this in bb-hosts to the AIX servers you are monitoring: TRENDS:*vmstat:vmstat1|vmstat8|vmstat-avm|vmstat-free-list
  • vmstat1: CPU status with wait (normally you get only system + user + idle)
  • vmstat8: page-in and page-out statistics
  • vmstat-avm: total access virtual memory
  • vmstat-free-list: available free memory
Add this to hobbitgraph.cfg:
[vmstat-avm]
        TITLE Memory Accessed Virtual Memory
        YAXIS Size kB
        -b 1024
        DEF:avm=vmstat.rrd:mem_avm:AVERAGE
        CDEF:sw=avm,4048,*

Script to add DS to rrd

Docs: 
This script can be used to add a DS to a rrd file. Use at own risk. Example to add 2 extra DS entries for Power5 counters to an existing vmstat.rrd:
add_ds_to_rrd.pl /home/users/hobbit/data/rrd vmstat.rrd cpu_ec:GAUGE:600:1:U
add_ds_to_rrd.pl /home/users/hobbit/data/rrd vmstat.rrd cpu_pc:GAUGE:600:1:U

Brocade template for Devmon

Docs: 

I created this template for Brocade rebreanded SAN switches by IBM for Devmon

AIX 5.1, 5.2, 5.3 Hobbit Client

Docs: 

Hobbit 4.2 client compiled on AIX with IBM C-compiler version 5.0.2.0 Compiled on AIX 5.1 and tested AIX 5.2 and 5.3

AIX 4.3 Hobbit Client

Docs: 

Hobbit 4.2 client compiled on AIX with IBM C-compiler version 4.4.0.0

Subscribe to www.docum.org RSS