I am experiencing that new traps are not showing up in the event console. Even if the trap has been written in the DB. I understood in your previous answer that Sever Zenoss could have this kind of problem. How can i fix it? can you help me?
Tiscali Italia S.p.A.
Subject: |
RE: Zenoss 4.2.5 Change MySQL Server |
Author: |
Davide Mancosu |
Posted: |
2021-06-10 09:03 |
Hi micheal,
Reading the Zenoss 4.2 administration pdf I noticed that it is possible to recreate the event index by following this procedure:
zeneventserver stop
rm -rf $ZENHOME/var/zeneventserver/index
zeneventserver start
Nothing has changed. The new traps are not shown in the event console but are present in
zenoss_zep [event_summary]
. I thought it would be better to rebuild the DB and follow a procedure provided by Jane Curry in the following post
Move o Delte all event in Zenoss 4.2.5
zenoss stop
zeneventserver-create-db --dbtype=mysql --force
rm -rf $ZENHOME/var/zeneventserver/* (removes the zep indexes)
zenoss start
zenoss start
returns the following:
Daemon: zeneventserver Applying schema version: 1
ERROR 1045 (28000): Access denied for user 'zenoss'@'IPADDRESS' (using password: YES)
starting...
Waiting for zeneventserver to start......
Daemon: zopectl .
daemon process started, pid=6754
Daemon: zenrrdcached starting...
Daemon: zenhub starting...
Daemon: zenjobs starting...
Daemon: zeneventd starting...
Daemon: zenping starting...
Daemon: zensyslog starting...
Daemon: zenstatus starting...
Daemon: zenactiond starting...
Daemon: zentrap starting...
Daemon: zenmodeler starting...
Daemon: zenperfsnmp starting...
Daemon: zencommand starting...
Daemon: zenprocess starting...
Daemon: zredis starting...
Daemon: zenjmx starting...
Daemon: zenpython starting...
as you can see zeneventserver
cannot connect to the DB. From the command line I have verified that the access to zenoss zep
is successful as a zenoss user and as a root user using the passwords configured in the file $ZENHOME/etc/global.conf
. Both users, zenoss and root, have all the GRANTs in the zenoss DBs
Maybe the rebuild of the MySQL DB created a new password for the zenoss user? If so, where is it stored by zenoss? In the file $ ZENHOME / etc / global.conf
the initial passwords are configured and with which I can access without problems from the command line.
------------------------------
Davide Mancosu
system administartor
Tiscali Italia S.p.A.
Cagliari
------------------------------
Davide,
I initially suspected this was an event index issue. It's possible that the events failed to list in the console because the event index was stale or incomplete, but I wasn't able to find evidence in the logs.
As for the ZEP_EVENT_TIME_PURGER
messages, these are completely normal. Here are the same messages from my system:
2021-06-07T13:11:34.402 [ZEP_EVENT_TIME_PURGER] INFO org.zenoss.utils.dao.impl.MySqlRangePartitioner - Pruning table event_time partition p20210606_120000: prune timestamp 2021-06-06 13:11:34.401
2021-06-07T13:11:34.402 [ZEP_EVENT_TIME_PURGER] INFO org.zenoss.utils.dao.impl.MySqlRangePartitioner - Pruning table event_time partition p20210606_130000: prune timestamp 2021-06-06 13:11:34.401
2021-06-07T13:11:34.450 [ZEP_EVENT_ARCHIVE_PURGER] INFO org.zenoss.zep.index.EventIndexDao - Purging events older than Tue Mar 09 13:11:34 UTC 2021
If the event system appears to be working, you're probably good to go. If it gives you trouble or certain events cannot be manipulated (closed, ack'd, etc.), you may need to rebuild the event indexes to make sure their synchronized with the database.
------------------------------
Michael J. Rogers
Senior Instructor - Zenoss
Austin TX
d
------------------------------
Davide Mancosu
system administartor
Tiscali Italia S.p.A.
Cagliari
Subject: |
RE: Zenoss 4.2.5 Change MySQL Server |
Author: |
Davide Mancosu |
Posted: |
2021-06-10 09:18 |
In attach zeneventserver log
------------------------------
Davide Mancosu
system administartor
Tiscali Italia S.p.A.
Cagliari
------------------------------
Subject: |
RE: Zenoss 4.2.5 Change MySQL Server |
Author: |
Davide Mancosu |
Posted: |
2021-06-10 09:19 |
In attach zeneventserver log------------------------------
Davide Mancosu
system administartor
Tiscali Italia S.p.A.
Cagliari
------------------------------
Subject: |
RE: Zenoss 4.2.5 Change MySQL Server |
Author: |
Michael Rogers |
Posted: |
2021-06-11 15:30 |
On the MySQL command line, can you do a
show grants;
and attach the output?
------------------------------
Michael J. Rogers
Senior Instructor - Zenoss
Austin TX
------------------------------
Subject: |
RE: Zenoss 4.2.5 Change MySQL Server |
Author: |
Davide Mancosu |
Posted: |
2021-06-14 13:21 |
Hi Michael,
This is the outpuit:
mysql> show grants;
+-----------------------------------------------------------------------------------------------------------------+
| Grants for zenoss@localhost |
+-----------------------------------------------------------------------------------------------------------------+
| GRANT PROCESS ON *.* TO 'zenoss'@'localhost' IDENTIFIED BY PASSWORD '*35EB7C1421BF57F9B1ED3D3AAE5A3828557C2435' |
| GRANT ALL PRIVILEGES ON `zodb`.* TO 'zenoss'@'localhost' |
| GRANT ALL PRIVILEGES ON `zenoss_zep`.* TO 'zenoss'@'localhost' |
| GRANT ALL PRIVILEGES ON `zodb_session`.* TO 'zenoss'@'localhost' |
| GRANT SELECT ON `mysql`.`proc` TO 'zenoss'@'localhost' |
+-----------------------------------------------------------------------------------------------------------------+
5 rows in set (0.00 sec)
------------------------------
Davide Mancosu
system administartor
Tiscali Italia S.p.A.
Cagliari
------------------------------
Subject: |
RE: Zenoss 4.2.5 Change MySQL Server |
Author: |
Davide Mancosu |
Posted: |
2021-06-14 13:23 |
This is the output for
zenoss@%
mysql> show grants;
+-------------------------------------------------------------------------------------------------------+
| Grants for zenoss@% |
+-------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'zenoss'@'%' IDENTIFIED BY PASSWORD '*35EB7C1421BF57F9B1ED3D3AAE5A3828557C2435' |
| GRANT ALL PRIVILEGES ON `zodb`.* TO 'zenoss'@'%' |
| GRANT ALL PRIVILEGES ON `zenoss_zep`.* TO 'zenoss'@'%' |
| GRANT ALL PRIVILEGES ON `zodb_session`.* TO 'zenoss'@'%' |
| GRANT SELECT ON `mysql`.`proc` TO 'zenoss'@'%' |
+-------------------------------------------------------------------------------------------------------+
5 rows in set (0.00 sec)
------------------------------
Davide Mancosu
system administartor
Tiscali Italia S.p.A.
Cagliari
------------------------------