Ad Widget

Collapse

Unable to execute scripts with User Parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BehrDTP
    Junior Member
    • Aug 2012
    • 4

    #1

    Unable to execute scripts with User Parameters

    I'm trying to monitor the status of my raid array by using a user parameter that calls a custom script. The script uses Dell's omreport function to get information about the virtual disk and parse it to extract the status of the disk. The script works great on its own, but I can't seem to get it or even a simple script that echos 1 to work when using them in the user parameters inside the zabbix_agentd.conf file.

    The test user parameter is declared as follows:

    userparameter=test,c:\software\zabbix\test.cmd

    and the test.cmd contains:

    echo 1

    When I enable the item through the frontend it just comes back not supported. I was able to get userparameter=test,echo 1 to work and from my understanding what I have above should work the same way.

    Any ideas on why this might not work, is there something special when calling scripts inside user parameter, or do you need to enable the agent's ability to use scripts?

    Thanks in advance
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Two things come to mind.

    1 - When you added the Userparameter to the host's zabbix_agentd.conf file, did you restart the agent process?

    2. And in Zabbix server frontend, you set up the item with the key of "test", right? And you might want to set the item type of information to "text".

    (Edit) And I believe Userparameter starts with a capital "U". Zabbix is case sensitive in almost everything... even regarding Windows.
    Last edited by tchjts1; 14-10-2012, 02:52.

    Comment

    • BehrDTP
      Junior Member
      • Aug 2012
      • 4

      #3
      Changing the information type to text worked!

      Thanks for the help!

      Comment

      Working...