Ad Widget

Collapse

Zabbix Item polling problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vnoc
    Senior Member
    • Sep 2017
    • 115

    #1

    Zabbix Item polling problem


    We have added UserParameter=jboss.heapmemory,sh /tmp/thread.sh in /etc/zabbix/zabbix_agentd.d/userparameter_jboss.conf file and added a item jboss.heapmemory in my zabbix agent server but the count is showing 0 when I run the sh /tmp/thread.sh file in the server it is giving a value as below.
    My zabbix version is 4.0

    I tried all the Type of information available in zabbix.




    Kindly help me in sorting out this
    Attached Files
  • vnoc
    Senior Member
    • Sep 2017
    • 115

    #2
    Yes these are already enable

    Comment

    • lakeland
      Junior Member
      • Nov 2019
      • 12

      #3
      1、User permission
      Zabbix exec scripts with "zabbix"
      Try to run script with user "zabbix" to check if user permission cause this problem.
      su - zabbix
      sh /tmp/xxx.sh
      2、ENV
      Try to source your
      environmental variable at the beginning of your script like
      source /etc/profile
      Etc.

      Comment

      Working...