Hello Dimitri,
First of all, thanks a lot for your great tool, I'm a SAN storage guy and using it in order to graph stuff like servicetime, io/s, KB/s, queue, etc ... on Linux and AIX hosts.
Recently I have deployed dimstat client on several AIX hosts. Compilation and running the agent were ok.
Then I created 2 custom stat reports, one based on the command 'iostat -b', and other one based on 'iostat -Dl'.
There is an issue with the one based on 'iostat -b'. Data collecting is working fine but date/time are wrong into the graph (the graphic time take more and more advance as compared to the 'real' time), and I don't find the reason. Perhaps it is related to the way I modify the collected data :
- the main collect script iostat_mod is calling 2 others scripts :
- iostat_mod1 is replacing in a dirty way K (kilo), M (mega), G (giga), etc .. suffix by zeroes to avoid any issue when data are pushed into the database
- iostat_mod2 is dividing each value by 5 in order to get io and KB value per second (and not a cumulated value of 5 seconds -> iostat -b 5)
################
bash-3.2# cat /etc/STATsrv/bin/iostat_mod
/etc/STATsrv/bin/iostat_mod1 | /etc/STATsrv/bin/iostat_mod2
################
bash-3.2# cat /etc/STATsrv/bin/iostat_mod1
/usr/bin/iostat -b 5 | /usr/bin/sed -e "s/\([0-9]*\).\([0-9]*\)K/\1\2000/g" -e "s/\([0-9]*\).\([0-9]*\)M/\1\2000000/g" -e "s/\([0-9]*\).\([0-9]*\)G/\1\2000000000/g" -e "s/\([0-9]*\).\([0-9]*\)S/\1\2000/g"
################
I also noticed something strange on the client side.
They are multiple iostat_mod process running. I don't have this behavior with linux hosts collecting scripts.
################################
bash-3.2# ps -ef | grep iostat_mod | grep -v grep
root 5243096 18088142 8 11:43:12 - 4:27 sh -c /etc/STATsrv/bin/iostat_mod
root 18088142 21889098 0 11:43:12 - 0:00 sh -c /etc/STATsrv/bin/iostat_mod
root 19529878 18088142 0 11:43:12 - 0:00 sh -c /etc/STATsrv/bin/iostat_mod
Any help would be appreciated :-)
Thanks.
Jean-Marc.