qk4l / zabbix-cachet

Python script which sync Zabbix IT Services with Cachet
MIT License
80 stars 32 forks source link

MST Error's when using nested triggers #43

Closed z0rx0r closed 4 months ago

z0rx0r commented 5 years ago

For whatever reason, when using the nested triggers branch (I need to use this due to my IT services setup) I am getting the below error. This does not occur with the same config on the master branch, though if I use that it does not catch my triggers as they are nested. Any ideas on why this would happen? Thank you sir!

5d04-0311-4a73-9e5a-665729a47eaf","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:05:45 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/4, 500: {"errors":[{"id":"b05221f4-ea28-4bd4-9bf4-de69cc7b6dad","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:05:46 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/5, 500: {"errors":[{"id":"5694e03d-6d75-4b43-b5db-e4b75319dd67","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:05:47 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/6, 500: {"errors":[{"id":"b4e7eeac-24b3-4f00-bb28-457ec401bae7","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:05:48 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/8, 500: {"errors":[{"id":"f8fb4569-be56-4f0d-aae1-630cf362254d","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:05:49 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/9, 500: {"errors":[{"id":"b750c760-17c0-479e-97f9-7a617c906caf","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:07:50 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/3, 500: {"errors":[{"id":"29558193-ee1c-48b6-93b5-3bbe87fea58f","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:07:51 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/4, 500: {"errors":[{"id":"521a683e-7659-49e0-9fc9-1d2ac0488a42","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:07:52 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/5, 500: {"errors":[{"id":"348cdfa0-bd6d-47da-8464-06bc5cd135f6","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:07:53 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/6, 500: {"errors":[{"id":"090dddef-e236-43b3-9ce7-484bcdcca88c","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:07:54 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/8, 500: {"errors":[{"id":"1e715661-9429-47dc-96f6-38f5edc569cb","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:07:55 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/9, 500: {"errors":[{"id":"af08cc02-592e-4a74-a40a-22c975cb0755","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:09:56 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/3, 500: {"errors":[{"id":"b5bf3502-9dc5-42ab-8359-70278e2e8a54","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:09:57 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/4, 500: {"errors":[{"id":"9d34c25e-88c4-4750-99c3-df1824b800d7","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:09:57 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/5, 500: {"errors":[{"id":"b698653a-05be-43ab-8c6e-e755abb4dd93","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:09:58 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/6, 500: {"errors":[{"id":"938e6a45-59e7-486c-97e2-d8a495b2aa87","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:09:59 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/8, 500: {"errors":[{"id":"600bd79d-b463-4d4f-91fe-40180d68b5be","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:10:00 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/9, 500: {"errors":[{"id":"37acd993-37d8-4f17-b961-eb4d23d95c3f","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:12:01 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/3, 500: {"errors":[{"id":"02043446-9b17-48bd-88d8-220855d43d41","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:12:02 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/4, 500: {"errors":[{"id":"2d5bc447-0e2a-48b0-9c1b-7c8ace0132f8","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:12:05 MST INFO: (Trigger Watcher) Incident There is a problem with REDACTED (id=7) was created for component id 5. 2018-11-16 15:12:05 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/6, 500: {"errors":[{"id":"97b7c757-513c-4a84-892f-c0a6e506067d","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:12:07 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/8, 500: {"errors":[{"id":"c90cd341-c9a5-4b7f-a946-d25561e5c7e7","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}] 2018-11-16 15:12:08 MST ERROR: (Trigger Watcher) ClientHttpError[http://status.REDACTED.com/api/v1/components/9, 500: {"errors":[{"id":"996db8b8-ccd4-4306-ae0f-25f132f4a7a0","status":500,"title":"Internal Server Error","detail":"An error has occurred and this resource cannot be displayed."}]}]

z0rx0r commented 5 years ago

I am also seeing multiple resolutions display on the Cachet side when using this branch, when there should only be one. Every time the update runs, it resolves again, when it should have only done it the first time and then be done.

qk4l commented 4 months ago

This functional not relevant at all because since Zabbix 6.0+ logic of IT Services was changed. Now you can archive this just via Zabbix IT Service configuration.

No support needed here.