Ad Widget

Collapse

Graphing disk I/o kbps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shane.eckert
    Junior Member
    • Apr 2008
    • 3

    #1

    Graphing disk I/o kbps

    I am using at item to grab some real I/O usage using system.run.

    kb_read = system.run[iostat -d cciss/c0d0 -k | awk -F" " '{print $5}'| tail -n-2]

    and

    kb_written = system.run[iostat -d cciss/c0d0 -k | awk -F" " '{print $6}'| tail -n-2]

    The both work on the CLI, but only kb_written works in Zabbix. The the kb_read is identical in form except I am grabbing $5 and as opposed to $6.

    Any ideas on why the graph is inactive?
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Check the log files hopefully there's more information there. Do you need the argument -F " "?? I remember there is an escaping issue with Zabbix. You may need to escape your quotes or the $ symbol, I can't remember which.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

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

      #3
      Replace "$5" by "$ 5" to make it work.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • noxis
        Senior Member
        • Aug 2007
        • 145

        #4
        Ensure that the Zabbix user has permissions.

        Comment

        Working...