Ad Widget

Collapse

Problem add an external check to zabbix!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lilith
    Junior Member
    • Nov 2009
    • 2

    #1

    Problem add an external check to zabbix!

    Hello,

    I work with Zabbix 1.6.6 and I wrote an external check but I have a problem :

    Don't create files yata : permission denied

    I wrote a script named toto.sh in /etc/zabbix/externalscripts :
    #!/bin/bash
    touch yata

    I've added in zabbix_server.conf :
    ExternalScripts=/etc/zabbix/externalscripts/

    I add rights :
    chmod -R 755 /etc/zabbix/externalscripts
    chown -R zabbix.zabbix /etc/zabbix/externalscripts

    On zabbix web interface, create an item with type "External Check" and key is toto.sh[]

    Sorry for my english,
    Help me
    Thanks
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    most likely zabbix user does not have permissions to create that file. try something like 'echo 1' first to test that zabbix can execute the script and get the data back
    Zabbix 3.0 Network Monitoring book

    Comment

    • lilith
      Junior Member
      • Nov 2009
      • 2

      #3
      I tried your methode but zabbix can't execute the scrip.

      Comment

      Working...