I have integrated pagerduty with zabbix. I have triggers on both prod and test servers. But I want pagerduty to notify only when the trigger belongs to prod servers and the severity is disaster. I tried changing the pd-zabbix file but the changes are not working. Any help is would be of great help.
changes made to push to pagerduty queue only when the severity level is disaster but this is not working. none of the below changes are working.
#if Disaster in severity:
if severity == Disaster
if Disaster in details
agent_config = load_agent_config() queue_event( agent_config.get_enqueuer(), message_type, service_key, incident_key, description, "", "", details, agent_config.get_agent_id(), "pd-zabbix",)