Ad Widget

Collapse

HELP!!!!, problem with UserParameter and free space on disk

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ismael Medina
    Junior Member
    • Mar 2007
    • 15

    #1

    HELP!!!!, problem with UserParameter and free space on disk

    I has been trying to get the vsf.fs.size[drive_letter,pfree], but zabbix doesn't support this for Windows 2k, I wrote a C++ code to get this data based on zabbixw32 agent.

    This application returns me the data that I need, I post cmd lines below.


    D:\Program Files\Zabbix>"diskspace.exe" "C:" pfree
    60.67


    If I test the metric it also works.

    D:\Program Files\Zabbix>zabbixw32 --config "d:\program files\zabbix\zabbix_agentd.conf" test C_FREE
    Using configuration file "d:\program files\zabbix\zabbix_agentd.conf"
    Configuration file OK
    [11-Jun-2007 16:48:02] *************** Log file opened ****************
    [11-Jun-2007 16:48:03] Collector thread initialized successfully
    [11-Jun-2007 16:48:03] C_FREE [60.68]

    But the item is marked as "Not Supported"


    ¿Why I get this status?, I hope Anyone could help me.

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

    #2
    Perhaps your item value type is set to integer, so ZABBIX cannot store this value and thus it marks it as unsupported.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Ismael Medina
      Junior Member
      • Mar 2007
      • 15

      #3
      Parameter name problem

      I found my error, the key for this item was declared as C_Free, at the agent side, the config file has the parameter as C_FREE, I didn't know that keys were case sensitive.

      Thanks in advance

      Comment

      • oliverm
        Senior Member
        • May 2006
        • 155

        #4
        Ismael,

        Is there any chance I could use your C++ code? I need to get the % of disk space available on some windows boxes, but I'm stuck.

        Olly

        Comment

        Working...