Ad Widget

Collapse

Newbie with UserParamater question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • modulus10
    Junior Member
    • Jan 2018
    • 2

    #1

    Newbie with UserParamater question

    Hello All

    I have successfully set up an UserParamater in my agents that returns a numerical data

    when i test it from command line (not agent test) i get the following

    /usr/libexec/glubix_numpeers.pl
    2

    when i run it from the agent i get:

    zabbix_agentd -t glubix.numberOfPeers
    glubix.numberOfPeers [t|2]

    when i run it form the server i get:

    zabbix_get -s x.x.x.x -p 10050 -k "glubix.numberOfPeers"
    0

    im trying to figure out why the server query returns a "0" when all else return 2 or [t|2]

    any help would be greatly appreciated

    C
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hello,

    Try to run it as zabbix and see if it works.

    Code:
    sudo -u zabbix /usr/libexec/glubix_numpeers.pl
    I believe it is lack of permissions, but check, please!

    Regards,
    Alex!

    Comment

    • modulus10
      Junior Member
      • Jan 2018
      • 2

      #3
      that was it thanks!

      Yup that was it - permissions!!!!

      Thanks

      Comment

      Working...