Ad Widget

Collapse

AlertScript does not executed by zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miramira007
    Member
    • Sep 2015
    • 89

    #1

    AlertScript does not executed by zabbix server

    Hi together,

    i have some issue with executing alertscripts. I want to create incident tickets to a system automatically from zabbix in a ticketsystem in our environment. i followed steps with is listens in the official documentation.

    i want to explain the steps i followed:
    • Created a custom script in path which is defined in zabbix_server.conf
    • Gave user zabbix the right to execute the script
    • Tried to execute with "sudo zabbix -c ./script.sh" -> it works like expected
    • In Zabbix-Frontend i configured under "Adminstration" -> "Media typed" i created new media typ. Give some name, choose type "Script" and typed in the exactly name of my script and closed this with a button click on "update"
    • Under "Administration" -> "Users" -> i have choose one person and added under "Media" New Media with Type "Name of my Media Type, which i definied one step before.
    • Created a new action with setting operation and choosing the right typ


    Now, my dashboard says that the action sending to ticketsystem is resolved. but i dont see a ticket in my system and under zabbix logs i cant detected some issue. I found this: But i dont know if there any dependencies to my alertscript
    noname.xml:47: parser error : StartTag: invalid element name
    <!% } else { %>
    ^
    noname.xml:59: parser error : StartTag: invalid element name
    <!% } %>
    ^
    noname.xml:43: parser error : StartTag: invalid element name
    <!% if (!debugBuild) {
    ^
    noname.xml:46: parser error : StartTag: invalid element name
    <!%script type="text/javascript" src="assets/csd_api_all.js"%><!/script
    ^
    noname.xml:46: parser error : StartTag: invalid element name
    <!%script type="text/javascript" src="assets/csd_api_all.js"%><!/script
    ^
    noname.xml:47: parser error : StartTag: invalid element name
    <!% } else { %>
    ^
    noname.xml:59: parser error : StartTag: invalid element name
    <!% } %>
    ^
    Have you any idea what it can be? And why i have to passed alertscripts to some person under Administration -> User ?
    Last edited by miramira007; 11-05-2016, 15:08.
Working...