Do you have any suggestions to resolve this problem ?
Thanks a lot.
Page 1 / 1
Hi,
Do you have anything in /var/log/centreon/centreontrapd.log file? Is centreontrapd running (service centreontrapd status)?
Note that you can actively poll for configuration change with this mode (just in case).
Hello,
I have the following error on my /var/log/centreon/centreontrapd.log :
2022-02-15 03:54:52 - ERROR - 8723 - MySQL error: MySQL server has gone away (caller: centreon::trapd::lib:/usr/share/perl5/vendor_perl/centreon/trapd/lib.pm:501) Query: SELECT traps_oid, traps_id, traps_mode FROM traps
2022-02-15 03:54:52 - ERROR - 8723 - Cant load cache trap oids. 2022-02-15 03:54:52 - ERROR - 8723 - Dont skip trap. Need to solve the error
Thanks
Are you on a Central server or a Poller?
Make sure you have exported trap definition database here:
Then select relevant server, tick boxes and click on Generate:
Hello, i am on a Centreon-central and i have indeed generated the SNMP Trap configuration, i have checked my services and they are all up and running, it might be an OID issue that’s not recognized.
I have the following error on my /var/log/centreon/centreontrapd.log :
2022-02-15 03:54:52 - ERROR - 8723 - MySQL error: MySQL server has gone away (caller: centreon::trapd::lib:/usr/share/perl5/vendor_perl/centreon/trapd/lib.pm:501) Query: SELECT traps_oid, traps_id, traps_mode FROM traps
2022-02-15 03:54:52 - ERROR - 8723 - Cant load cache trap oids. 2022-02-15 03:54:52 - ERROR - 8723 - Dont skip trap. Need to solve the error
Thanks
Hi,
No the problem is above, to confirm that the trap is received, you can list the /var/spool/centreontrapd directory content. You will probably see files containing SNMP trap to process.
Can you check in the config file that the mode is correctly set: in /etc/centreon/centreontrapd.pm you should have a mode => 0 directive like below:
2022-02-17 11:09:50 - ERROR - 10209 - MySQL error: MySQL server has gone away (caller: centreon::trapd::lib:/usr/share/perl5/vendor_perl/centreon/trapd/lib.pm:501) Query: SELECT traps_oid, traps_id, traps_mode FROM traps
2022-02-17 11:09:50 - ERROR - 10209 - Cant load cache trap oids. 2022-02-17 11:09:50 - ERROR - 10209 - Dont skip trap. Need to solve the error.
When i export the trap definition database i have no errors :
Hello
Can you edit the file /etc/centreon/centreontrapd.pm and define it like this?
I added the sub directory “/1/” in the SQLite database path.
You will need to restart centreontrapd process.
Hello, thank you for your answer, i did the modification but nothing seems changing i still have my passive checks on “pending” status.
Hello
Ok the service state is Pending but do you still have this kind of error message?
2022-02-15 03:54:52 - ERROR - 8723 - MySQL error: MySQL server has gone away (caller: centreon::trapd::lib:/usr/share/perl5/vendor_perl/centreon/trapd/lib.pm:501) Query: SELECT traps_oid, traps_id, traps_mode FROM traps
2022-02-15 03:54:52 - ERROR - 8723 - Cant load cache trap oids. 2022-02-15 03:54:52 - ERROR - 8723 - Dont skip trap. Need to solve the error
Did you enabled “Submit result” on the OID definition?
Hello, there is no error message but i have now this kind of messages :