Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix 4.x #13

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
fd98e07
change layout,, update readme
Mar 22, 2014
d34e9e9
remove big heading
Mar 22, 2014
3898900
fix headers
Mar 22, 2014
654f46c
fix headers -2
Mar 22, 2014
2cda0cc
add caution not
Mar 22, 2014
4b41331
add postgresql old data clean
Mar 22, 2014
60114b9
add unused items cleanup
Mar 22, 2014
59626c7
add history cleanup and unused items data cleanup
Mar 22, 2014
ca984c2
fix formatting/wording
Mar 22, 2014
0d39f0a
Update checkscript.sql
s4z Apr 8, 2014
96ec891
add scripts to stop zabbix email flood
Apr 17, 2014
53151ef
Merge branch 'master' of github.com:kenny-freeman/zabbix-orphaned-dat…
Apr 28, 2014
faecf6e
change layout, update readme
Apr 28, 2014
701c053
add check-old-data script, add parameters to delete-old-data
Apr 28, 2014
b96c340
keep 1 week of history, as indicated in readme
Apr 28, 2014
d5ba1f4
use more intuitive script names
Apr 28, 2014
704524a
add script to check unused data
Apr 28, 2014
1413819
add old data scripts for mysql; uppercase SQL words in other files
Apr 28, 2014
cf39808
update readme to include mysql queries
Apr 28, 2014
62016fb
fix typo in unused data select
Apr 29, 2014
59d7562
fix one more typo in delete
Apr 29, 2014
ceba39d
fix readme
Apr 29, 2014
81500e7
fix readme
Aug 24, 2014
a6f4bb6
fix readme 2
Aug 24, 2014
b686c0e
better support for Zabbix 2.x. Better output for postgres queries
Apr 9, 2015
7b6f328
Better readme
Apr 9, 2015
043f082
Better readme 2
Apr 9, 2015
343563c
add toc
Apr 9, 2015
243ca8e
add toc
Apr 9, 2015
5e2c89a
better format for readme
Apr 9, 2015
43d8a36
fix typos
Apr 9, 2015
0f818b6
fix typo
Apr 9, 2015
66d6cd6
one more typo
Apr 9, 2015
4cc1dab
add LLD triggers removal
burner1024 Aug 3, 2015
f052370
add reference to the original
burner1024 Aug 3, 2015
f9d38ae
fix wording
burner1024 Aug 3, 2015
01f828a
Update README.md
burner1024 Dec 13, 2015
b440226
tested some queries against 3.0, reflect in readme
burner1024 May 30, 2016
e8f6b3f
Merge branch 'master' of github.com:burner1024/zabbix-sql
burner1024 May 30, 2016
afcdb29
fix links
burner1024 Apr 11, 2017
c62565d
add note about bloating
burner1024 Apr 18, 2017
e1b98b5
add orphaned data delete and check for zabbix v3
murtzsarialtun Jun 6, 2018
833da99
Merge pull request #3 from murtzsarialtun/master
burner1024 Jun 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix headers -2
  • Loading branch information
Ilya Ivanov committed Mar 22, 2014
commit 654f46cf625c9d55843b80a059f7c3f5353bd8c2
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,19 +2,19 @@

This repo contains a few useful queries to cleanup old orphaned data in a Zabbix database. While Zabbix does Housekeeping, it does not clear orphaned data very well. Especially if you come from a long upgrade-line (1.x to 1.6 to 1.8 to 2.x), chances are your database is riddled with orphaned data that is consuming disk space.

"Orphaned" queries are the same for Mysql and Postgresql. "Old" are not.
"Orphaned" queries are the same for Mysql and Postgresql. "Old" are not, so pay attention.


### Usage: check how many orphaned rows you have
### Check how many orphaned rows you have

These queries are safe to run, but if you have a large database please note that these can take a while (read: a few hours is normal).

user@host-$ mysql zabbix < orphaned/check.sql
Or
Or (for postgresql)

user@host-$ psql zabbix < orphaned/check.sql

### Usage: delete the orphaned rows
### Delete the orphaned rows

Use the queries above on your won risk. Take *backups* first. Once you have back-ups, go ahead and be brave.