Hello everyone,
First of all I would like to state that I am relatively new to Zabbix so I don't have knowlegde (yet) of all the possiblities of Zabbix.
I am running Zabbix 3.4.7
I have made several (python) scripts which do API requests and print a digit, which I then display in a graph in Zabbix. This works perfectly fine and I am very happy the functionality.
However I was wondering if it is possible to let my script (external check) print out several values which then can be placed in the graph aswell but with as multiple lines.
So for example, the output of the script:
OnlineClientsOfCustomer1: 900
OnlineClientsOfCustomer2: 400
OnlineClientsOfCustomer3: 288
OnlineClientsOfCustomer1: 888
OnlineClientsOfCustomer2: 431
OnlineClientsOfCustomer3: 221
etc...
So now zabbix reads the first part of the output to determine from which customer the value is and then reads the actual value and prints that in the graph.
For each customer I would like a seperate line in the graph to display the client count in the graph.
I did some research already, I found out about pre-processing with regex, however I couldn't quite figure out yet how this actually works.
If someone knows if this is possible and could explain to me how to do it, I would be very grateful.
Thanks in advance,
Kasper
First of all I would like to state that I am relatively new to Zabbix so I don't have knowlegde (yet) of all the possiblities of Zabbix.
I am running Zabbix 3.4.7
I have made several (python) scripts which do API requests and print a digit, which I then display in a graph in Zabbix. This works perfectly fine and I am very happy the functionality.
However I was wondering if it is possible to let my script (external check) print out several values which then can be placed in the graph aswell but with as multiple lines.
So for example, the output of the script:
OnlineClientsOfCustomer1: 900
OnlineClientsOfCustomer2: 400
OnlineClientsOfCustomer3: 288
OnlineClientsOfCustomer1: 888
OnlineClientsOfCustomer2: 431
OnlineClientsOfCustomer3: 221
etc...
So now zabbix reads the first part of the output to determine from which customer the value is and then reads the actual value and prints that in the graph.
For each customer I would like a seperate line in the graph to display the client count in the graph.
I did some research already, I found out about pre-processing with regex, however I couldn't quite figure out yet how this actually works.
If someone knows if this is possible and could explain to me how to do it, I would be very grateful.
Thanks in advance,
Kasper
Comment