The program checks the number of rows in a table or tables. If the received value exceeds the previous one by the specified value, then a message is written to the log.
localhost;3306;test;table1;7;10;10;42.857143
where
localhost
- MySQL host3306
- MySQL porttest
- MySQL DBtable1
- MySQL table7
- previouscount()
value10
- currentcount()
value10
- maximum delta value42.857143
- current delta value
make build
./mysql-monitor.elf \
--host=localhost \
--database=test \
--user=test \
--password=123 \
--table=table1 \
--max=10 \
--table=table2 \
--max=15
- table
table1
maximum quantity change is10%
- table
table2
maximum quantity change is15%