Ad Widget

Collapse

Where does Zabbix.log() get saved?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trividea
    Junior Member
    • Feb 2025
    • 1

    #1

    Where does Zabbix.log() get saved?

    I'm trying to get my Zabbix to trigger Slack messages using the Slack Webhook from github, it works when i use the Test link, but the triggers dont send messages to slack channel. I see in the script it does a try/catch and sends a log entry with the error from slack, but i cant seem to find where that log is located? I checked /var/log/zabbix/zabbix_server.log and it's not in there. Also set debug level to 4 and it's still not logging it there.

    Code:
    catch (error) {
        Zabbix.log(4, '[ Slack Webhook ] Slack notification failed : ' + error);
        throw 'Slack notification failed : ' + error;
    }
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    It should be zabbix_server.log.

    Comment

    Working...