I'm attempting to create a script that will send alert information to an alarm collector. I need to send the data to a tcp port in json format. For testing I want to see what zabbix can send so I just want to write the output to a log file. I'm using zabbix appliance 3.2. I checked zabbix_server.conf and AlertScriptsPath is set to /usr/lib/zabbix/alertscripts so I put the script there. I've added a media type of script with the script name. I'm using the action that sends all media types to zabbix administrators. I originally tested a perl script that only logs the input parameters to a file. When I look at the problems display and check the action column, it says done and when I hover over done I see the alertscript shows to be sent but there isn't anything in the file the perl script writes to. I changed the perl script to a bash script that echo's the input parameters to a file. When a problem comes in I see the same status. Shows to be sent but there is no evidence. Nothing is in the file. The scripts work correctly from the command line. I've searched for a log with notification messages but I can't find it. I even turned up debugging but still nothing about notifications.I would appreciate any clues on what to look for or what can or can't be done in an alertscript. Any help/advice is appreciated.
Ad Widget
Collapse
alertscript problem
Collapse
X
Comment