Aug 6, 2012 11:13 AM
Where did my history go?
-
Like (0)
I am running Zenoss core 3.2.1, and if I look at my event history, it only shows events as far back as 24 hours. I have the "first seen" date set to 1 week ago, and "Delete Historical Events Older Than (days)" is set to "0".
Am I missing something?
Have alerts actually occurred for there to be a history for that particular device? Have you verified that all the severities for the events are checked for the machine's events in the viewer?
For what its worth, I have also noticied inconsistencies within the interface for viewing events as well. I have not tried to narrow down where in the code it is possibly wrong, however.
I have had multiple critical alerts that occured over the weekend (two days ago) and I did confirm that all severity levels are checked.
Do you see those criticals in the events.history table in the Zenoss MySQL DB?
I'd be happy to check, but I don't know how to go about looking for that.
You would log into the shell via SSH where Zenoss is running. From there, as the zenoss user, run mysql -uroot -p and put in your MySQL root password (you should have this from when you installed and setup the server). Once in you can do a show databases; command to see what databases are listed. By default, Zenoss uses the events database. After that, type use events; Running show tables should get you a listing of the tables, look for the history table and type this: select * from history where device = 'device' and firstTime > '2012-08-05' order by lastTime\G;
Here are the commands step by step:
The last command should print out some lines showing you events that occurred on or after 8/4 through today for that specific device...
BTW, there may be several meta-events about state change or various internal changes, they can be ignored and don't show up in the events for the device itself within Zenoss' UI.
Thanks for the detailed instructions!
I ran it, and I got "empty set". I reran the following on devices where there are current history events, and some of them returned info, and others nothing.
select * from history where device = 'DEVICENAME';
No problem
Ah, this sounds like they were deleted. Did you acknowledge the events or delete them?
I never deleted them, and they auto cleared when the problem was resolved. Thanks for your help. I'll keep an eye on it, and see what happens next time.
Sounds good, sorry I couldnt be of more assistance. Once I get time I plan to research the loss of events because I have noticed it as well on certain events/devices - almost certain there is a bug in there somewhere.
Events are supposed to be cleaned up if you enable that, but by "older than x days" sort of setting. I don't delete events myself. Maybe a starting point to look for bugs?
--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
Just to confirm, where do I make the settings change to "delete for older than X". I would prefer to keep all events based on the small size of our environment.
I checked again this morning, and as of 8:30am, the oldest event is from yesterday at 4am.
Events --> Event Manager --> Delete Historical Events Older Than (days)
Setting to 0 should prevent items from being deleted
ok, if that's the only spot, then I should be good as I have it set to "0".
|
Follow Us On Twitter »
|
Latest from the Zenoss Blog » |
|
Community | Products | Services Resources | Customers Partners | About Us | |
|
|
|
Copyright © 2005-2011 Zenoss, Inc.
|
||||||
