Ad Widget

Collapse

Low Level Discovery - troubleshooting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrogers-9898
    Member
    • Sep 2008
    • 68

    #1

    Low Level Discovery - troubleshooting

    Hi All,

    I've made myself a LDD for discovering physical disk in an array controller.

    when I test my key from the command line I get a valid result;
    zabbix_agentd.exe -c .\zabbix_agentd.conf -t system.run["cscript /b %zbxpth%scripts\RAID-LLD-HP.vbs"]
    system.run[cscript /b c:\zabbix_agent\scripts\RAID-LLD-HP.vbs][cscript /b c:\zabbix_agent\scripts\RAID-LLD-HP.vbs] [t|{ "data":[
    { "{#SLOTNUM}":"0","{#DRIVEID}":"1I:1:1" },
    { "{#SLOTNUM}":"0","{#DRIVEID}":"1I:1:2" },
    { "{#SLOTNUM}":"0","{#DRIVEID}":"1I:1:3" },
    { "{#SLOTNUM}":"0","{#DRIVEID}":"1I:1:4" },
    { "{#SLOTNUM}":"0","{#DRIVEID}":"2I:1:5" },
    { "{#SLOTNUM}":"0","{#DRIVEID}":"2I:1:6" },
    { "{#SLOTNUM}":"0","{#DRIVEID}":"2I:1:7" },
    { "{#SLOTNUM}":"0","{#DRIVEID}":"2I:1:8" }
    ] }]

    But when running it through the discovery process it goes "not supported"

    this is from the zabbix_agentd.log;
    1592:20130722:214326.453 Executing command 'cscript /b %zbxpth%scripts\RAID-LLD-HP.vbs'
    1592:20130722:214326.516 Run remote command [cscript /b %zbxpth%scripts\RAID-LLD-HP.vbs] Result [0] []...
    1592:20130722:214326.516 For key [system.run["cscript /b %zbxpth%scripts\RAID-LLD-HP.vbs"]] received value [ZBX_NOTSUPPORTED]
    1592:20130722:214326.516 In process_value() key:'HOST-HYPERV:system.run["cscript /b %zbxpth%scripts\RAID-LLD-HP.vbs"]' value:'ZBX_NOTSUPPORTED'

    am I reading the log file right in saying that it is getting [0] result? Can I get some direction on how to further troubleshoot the problem?
  • mrogers-9898
    Member
    • Sep 2008
    • 68

    #2
    twas was simply a bug in my script - however the bug didn't present when running externally to Zabbix.

    what got me over the line was using the discovery item key as a regular item key - once I got that to work, all good.

    Comment

    Working...