Skip to content

Script to tidy the Zabbix database which can easily spiral out of control if not closely monitored (and relying on Zabbix housekeeping tasks!)

Notifications You must be signed in to change notification settings

sscotter/zabbix-db-tidy.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zabbix-db-tidy.php

Script to tidy the Zabbix database which can easily spiral out of control if not closely monitored (and relying on Zabbix housekeeping tasks!)

In order to use this script you need a zabbix-db-tidy-inc.php in the same directory as zabbix-db-tidy.php which look like this

<?php
$lock_file = "/tmp/zabbix-db-tidy.php.lock";

$mysql_hostname = 'localhost';
$mysql_username = 'zabbix';
$mysql_password = 'some-password';
$mysql_database = 'zabbix';

$mail_server = 'localhost';
$mail_from_addr = '[email protected]';
$mail_from_name = 'Zabbix-DB-Tidy on SERVER';

$mail_to_addr = '[email protected]';
$mail_to_name = 'zabbix-db-tidy';
?>

About

Script to tidy the Zabbix database which can easily spiral out of control if not closely monitored (and relying on Zabbix housekeeping tasks!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages