Ad Widget

Collapse

Python scipt from UserParameter can not be found.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vicchern
    Junior Member
    • Jul 2021
    • 3

    #1

    Python scipt from UserParameter can not be found.

    Hello guys, please assist me with my problem I am trying to test UserParamiter with
    Code:
    zabbix_agentd -t web.test
    , response is
    Code:
     [t|sh: 1: /etc/zabbix/test_scripts/test.py: not found]
    Zabbix instalation is:
    Code:
     zabbix-release_5.0-1+focal_all.deb
    Environment: AWS EC2 Ubuntu 20.04
    Code:
    UserParameter=web.test,/etc/zabbix/test_scripts/test.py
    Permissions granted to the whole zabbix directory
    Any suggestions?
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    Ensure that test.py is executable and contains the proper shebang in the first line, or change the UserParameter to

    Code:
    UserParameter=web.test,python3 /etc/zabbix/test_scripts/test.py
    Markku

    Comment

    Working...