Sign inSign up

myclau/zabbix_groupname_redirect_to_trigger_page

By myclau

•Updated almost 7 years ago

pass name to this api and will redirect to its zabbix page ( but need already login)

Image
0

363

myclau/zabbix_groupname_redirect_to_trigger_page repository overview

⁠pass zabbix group name and redirect to trigger alert page of zabbix

pass name to this api and will redirect to its zabbix page ( but need already login)

⁠Concept

  1. ask zabbix to grant you a token for the zabbix api
  2. get request with group name and get the groupid
  3. use the groupid to combin as the result url
  4. redirect to this url

⁠environment variable

Env varDefault valueDescription
ZABBIX_HOSTnullmust be fill before you use , it is the url to access zabbix server
ZABBIX_USERNAMEnullmust be fill before you use , it is the username that have permission to grant token
ZABBIX_USERNAMEnullmust be fill before you use , it is the username that have permission to grant token
PORT8080expose port for access

⁠How to reach page

the url will be <yourservicedomain>/<group name>

let said the name is Web server 1 and your docker expose with localhost:8080 so the url for the report will be http://localhost:8080/Web server 1

and will redirect to something like: http://<ZABBIX_HOST>/tr_status.php?groupid=&hostid=0&show_triggers=1

Tag summary

Content type

Image

Digest

Size

332 MB

Last updated

almost 7 years ago

docker pull myclau/zabbix_groupname_redirect_to_trigger_page