How to monitor information in a html label using zabbix?

There is some html table, which is updated every n seconds
5b52d363cd116119126932.png
Source code


<title>Connections</title>
 <style type="text/css">
 table {
 border: 2px solid black;
 border-collapse: collapse;
}

 td, th {
 border: 1px solid black;
 padding: 2px;
}
</style>
 <script type="text/javascript">
 function timedRefresh(timeoutPeriod) {
 setTimeout("location.reload(true);", timeoutPeriod);
}
</script>

<table>
<tbody><tr>
 <th>IP Address</th>
 <th>Computer name</th>
 <th>Terminal name</th>
<th>Login</th>
 <th>Module ID</th>
 <th>Module name</th>
 <th>Module display name</th>
 <th>Last activity</th>
</tr>

the <tr>
<td>
192.168.10.1
</td>
<td>
192.168.10.1
</td>
<td>
admin
</td>
<td>
admin
</td>
 <td style="text-align: right">
200
</td>
<td>
BACK
</td>
<td>
BACKOffice
</td>
<td>
2018-07-21T09:24:00.460+03:00
</td>
</tr>

the <tr>
<td>
192.168.10.1
</td>
<td>
POS1
</td>
<td>
Cafe
</td>
<td>

</td>
 <td style="text-align: right">
101
</td>
<td>
FRONT
</td>
<td>
FRONTOffice
</td>
<td>
2018-07-21T09:24:22.929+03:00
</td>
</tr>

the <tr>
<td>
192.168.10.1
</td>
<td>
POS2
</td>
<td>
Bar
</td>
<td>

</td>
 <td style="text-align: right">
1200
</td>
<td>
UNKNOWN
</td>
<td>
FRONTOffice
</td>
<td>
2018-07-21T09:24:22.929+03:00
</td>
</tr>

</tbody></table>



The number of rows in this table may change regularly (depending on the number of hardware connections), and to predict how many there will be is not possible.
How do I best store a plate in zabbix? I understand I can simply use curl to the source code and to store directly, but in the future I plan to take the nameplate in Grafana.
Also, I will need to put a trigger on the column "Last activity", to determine hardware, which longer meets.
June 3rd 19 at 19:22
2 answers
June 3rd 19 at 19:24
Solution
We like things so we put in Zabbix:
Python convert JSON {'{#ITEM}': '605', ...}, one for JSON rules discovering and prototyping of the data items in the parameter that will be unique in the table (computer name?), the second JSON that will be sent on the created prototypes. And then Zabbix created prototypes of dependent data elements via regexp from a string JSON'a get the options you want.
June 3rd 19 at 19:26
well there you regexpi and plugging in the variables

or even how to handle
The problem is not to obtain a specific parameter, and to store the entire worksheet and display it in Grafana.
Is not known beforehand how many rows will the table (and the number may change over time). So I want to make some kind of universal solution, which will be adjusted by specifying the address to the page and everything. And then automatically hang up the trigger on the last column, and this plate is unloaded in Grafana. - tressa.Cummings commented on June 3rd 19 at 19:29
well parsite last column - Juanita17 commented on June 3rd 19 at 19:32
At last column only trigger alerts, but after they have worked, you must open the dashboard in Grafana and see the plate as a whole along with other monitoring parameters. - tressa.Cummings commented on June 3rd 19 at 19:35
Theoretically, you can dig in the direction of the Discovery and automatic creation of item s, graphs, etc. - as is done for file systems. - Audrey94 commented on June 3rd 19 at 19:38

Find more questions by tags Zabbix