Ad Widget

Collapse

How to monitor IO for AIX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jerry2049
    Junior Member
    • Sep 2011
    • 20

    #1

    How to monitor IO for AIX

    Hi~~Guys

    Who can tell me how to monitor IO for aix?

    just use command iostat?
  • pHiney
    Junior Member
    • Sep 2011
    • 16

    #2
    aix

    are you talking about a userparam for the agent ?

    Comment

    • jerry2049
      Junior Member
      • Sep 2011
      • 20

      #3
      Originally posted by pHiney
      are you talking about a userparam for the agent ?
      Yes,I means if I want to monitor Linux IO I will modify file "/etc/zabbix/zabbix_agentd.conf" and append the line below to the end:
      UserParameter=vfs.partition.read[*],/usr/bin/iostat -d -k $(/bin/df | grep "$1$" | awk '{print $$1}'|awk -F\/ '{print $$3}')|sed -n '4p'|awk '{print $$3}'
      UserParameter=vfs.partition.write[*],/usr/bin/iostat -d -k $(/bin/df | grep "$1$" | awk '{print $$1}'|awk -F\/ '{print $$3}')|sed -n '4p'|awk '{print $$4}'

      Who can help me,This script can not be used to monitor aix system

      Comment

      • pHiney
        Junior Member
        • Sep 2011
        • 16

        #4
        iostat

        try man iostat first

        you'll see there is no -k option.

        iostat's -d param takes hdiskX numbers not hdX

        as you'll be passing in the hdiskX param, there is probably no reason for the $(df ...) statement

        from there you can grep and awk as you need.

        Code:
        UserParameter=vfs.partition.read[*],/usr/bin/iostat -d $1 | grep '^$1' | awk '{print $$5}'
        UserParameter=vfs.partition.write[*],/usr/bin/iostat -d $1 | grep '^$1' | awk '{print $$6}'
        p
        Last edited by pHiney; 13-03-2012, 03:28.

        Comment

        • pHiney
          Junior Member
          • Sep 2011
          • 16

          #5
          Fmi

          Just as interest, what value does it have monitoring this ?

          it appears to be just an incrementing number.

          p

          Comment

          • jerry2049
            Junior Member
            • Sep 2011
            • 20

            #6
            Hi,pHiney

            Thank you very much

            Your method is very good

            Comment

            Working...