This area is for scripts which are used to gather data for Zabbix, perform maintenance or configuration tasks on Zabbix.
When adding scripts please denote the “language” used to write the script, eg, Ruby, Python, PHP, Bash, Perl etc, along with any requirements.
Totals From Delta Stored procedure to return totals from an item stored as deltas.
There's proof of concept script which checks for some possible problems in the Zabbix database. There are many more checks that could be added, some listed here.
For most problems, most sensible action would be to remove offending records - they usually are not visible on the frontend, sometimes make other elements invisible in the frontend and can't be reasonably fixed. Sometimes, though, fixing entries like that might be possible.