Ad Widget

Collapse

Linux kernel 2.6 agent items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swaterhouse
    Senior Member
    • Apr 2006
    • 268

    #1

    Linux kernel 2.6 agent items

    There are several items I would really like to monitor on my CentOS servers that I cannot currently do. If I could program in C I would do this myself but since I no nothing about C I dont have any choice but to either write some scripts and add them to each server or beg for someone to add this to the agent - so here I am BEGGING!

    Disk Performance
    * vfs.dev read and write
    - operations per second (I/Ops)
    - bytes per second
    * disk queue lengths
    according to the manual "operations" is supossed to work but I get "Not Supported" The disk queue lengths are very important for monitoring disk subsystem perfomance amd can be found as Field #9 in /proc/diskstats
    (see http://www.kernel.org/pub/linux/kern...on/iostats.txt)

    CPU total utilization %
    Right now I monitor the idle % and have to look at the graph "backwards" to get the total used % - it would be nice if either the item could do math (i.e. 100-idle%= used%) or if a new item was added to the agent.
  • swaterhouse
    Senior Member
    • Apr 2006
    • 268

    #2
    Alexei,

    Is there anyway to "sponsor" developement so this can get developed? I would think this would benefit everyone and I would be willing to contribute money towards it.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Originally posted by swaterhouse
      Alexei,

      Is there anyway to "sponsor" developement so this can get developed? I would think this would benefit everyone and I would be willing to contribute money towards it.
      We are interested in sponsored development of any new functionality that may be included into base product. Please contact s a l e s @ z a b b i x . c o m for a quote and more details. Thank you!
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • mucknet
        Member
        • Dec 2004
        • 59

        #4
        I also wanted this same thing, so I rolled my own


        Add the following to your zabbix_agentd.conf on your linux (kernel 2.6) boxes. restart zabbix_agentd
        Code:
        UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$4}'
        UserParameter=custom.vfs.dev.read.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$7}'
        UserParameter=custom.vfs.dev.write.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$8}'
        UserParameter=custom.vfs.dev.write.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$11}'
        UserParameter=custom.vfs.dev.io.active[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$12}'
        UserParameter=custom.vfs.dev.io.ms[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$13}'
        UserParameter=custom.vfs.dev.read.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$6}'
        UserParameter=custom.vfs.dev.write.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$10}'
        I have also attached the template I use to use these keys.

        P.S. the forums wouldn't let me upload an xml file, so I added a .txt to the end. Seems the forum should allow .xml since the import/export system uses xml files


        edit: I wrote up a quick post on my site giving the basic rundown, including some screenshots of the item configuration in case you don't want to load my template:
        Meta descriptions are HTML attributes that provide concise explanations of the contents of web pages. They should optimally be between 150-160 characters.
        Attached Files
        Last edited by mucknet; 04-10-2007, 09:35.

        Comment

        • swaterhouse
          Senior Member
          • Apr 2006
          • 268

          #5
          thanks for these. I was trying to avoid having to add these to the config files on all my linux servers.

          Comment

          • swaterhouse
            Senior Member
            • Apr 2006
            • 268

            #6
            I actually got a quote from the ZABBIX team to sponser development to add this to the agent code. To be honest its 2-3 times what I expected to pay so maybe if we can get a couple of us together we can split the costs. Its not very much in reality but for a company like mine with extremely limited resources I am having a hard time justifying it when I can use the methods above to acheive the same thing (although more time consuming for me to add them to the config file on every linux host).

            If anyone is interested PM me and we can discuss it.

            Comment

            Working...