Hello,
We are running Zabbix 3.2 at the moment and looking at the web scenarios. We would like to feed the the results into Cachet for our users to see the status of the webpages. Anyone know how to feed those data without zabbix-cachet plugin? I just installed Cachet and starting playing around with it.
I found this instructions for Zabbix side:
But do not know what to do on Cachet side to make it display Zabbix.
Any help would be very appreciated.
We are running Zabbix 3.2 at the moment and looking at the web scenarios. We would like to feed the the results into Cachet for our users to see the status of the webpages. Anyone know how to feed those data without zabbix-cachet plugin? I just installed Cachet and starting playing around with it.
I found this instructions for Zabbix side:
Create a file “notifyCachet” in /usr/lib/zabbix/alertscripts
#!/bin/bash
to=$1
compID=$2
statusID=$3#Comment this next line out for Production environments
#echo “curl -H ‘Content-Type: application/json’ -H ‘X-Cachet-Token: <your cachet API token>’ http://<cachet server ip>/api/components/$compID -d ‘{“status”:$statusID}’ -X PUT”#Uncomment this next line for Production
curl -H ‘Content-Type: application/json’ -H ‘X-Cachet-Token: <your cachet API token>’ http://<cachet server ip>/api/components/”$compID” -d “{‘status’:$statusID}” -X PUT
From Zabbix: go to Admin -> Media Types -> Create Media Type
Set Name to whatever
Type is Script
Script Name is “notifyCachet”
Go to Config -> Actions -> Create Action
Action Settings:
Default/Recovery Subject: {$CACHET}
Default Message: 4 (A major outage)
Recovery Message: 1 (Operational)
Conditions: Add Trigger Severity >= Average
Operations: Add a User Group, Send ONLY to Cachet_Notify (from Section 8, Subsection 2, Section 1)
In all Hosts for Cachet, you MUST set a Macro {$CACHET} where the value is the Cachet ID Number
#!/bin/bash
to=$1
compID=$2
statusID=$3#Comment this next line out for Production environments
#echo “curl -H ‘Content-Type: application/json’ -H ‘X-Cachet-Token: <your cachet API token>’ http://<cachet server ip>/api/components/$compID -d ‘{“status”:$statusID}’ -X PUT”#Uncomment this next line for Production
curl -H ‘Content-Type: application/json’ -H ‘X-Cachet-Token: <your cachet API token>’ http://<cachet server ip>/api/components/”$compID” -d “{‘status’:$statusID}” -X PUT
From Zabbix: go to Admin -> Media Types -> Create Media Type
Set Name to whatever
Type is Script
Script Name is “notifyCachet”
Go to Config -> Actions -> Create Action
Action Settings:
Default/Recovery Subject: {$CACHET}
Default Message: 4 (A major outage)
Recovery Message: 1 (Operational)
Conditions: Add Trigger Severity >= Average
Operations: Add a User Group, Send ONLY to Cachet_Notify (from Section 8, Subsection 2, Section 1)
In all Hosts for Cachet, you MUST set a Macro {$CACHET} where the value is the Cachet ID Number
Any help would be very appreciated.