Cacti / plugin_monitor

Monitor Plugin for Cacti
GNU General Public License v2.0
35 stars 39 forks source link

Cacti Sending Device Reboot Notification After upgrade #151

Open tamanullah opened 2 years ago

tamanullah commented 2 years ago

I am facing issue of Cacti continuously sending device reboot notification. Earlier I had Cacti 1.2.19 version and it was recommended to upgrade to 1.2.21 to resolve this issue. Issue resolved in one the Cacti setup but another one is still sending notifications even after upgrade. Below are the logs that I am getting:

02-Jul-2022 02:48:36 - AUTOM8 ERROR: Device[device-name], GT[], DQ[SNMP - Interface Statistics], Index[8], Rule[Traffic 64 bit Server] Graph not added due to whitelist failure. 02-Jul-2022 02:48:36 - AUTOM8 Attempting to Create Graph from Non-Template 02-Jul-2022 02:48:36 - AUTOM8 ERROR: Device[device-name], GT[], DQ[SNMP - Interface Statistics], Index[7], Rule[Traffic 64 bit Server] Graph not added due to whitelist failure. 02-Jul-2022 02:48:36 - AUTOM8 Attempting to Create Graph from Non-Template 02-Jul-2022 02:48:36 - AUTOM8 ERROR: Device[device-name], GT[], DQ[SNMP - Interface Statistics], Index[10], Rule[Traffic 64 bit Server] Graph not added due to whitelist failure.

Cacti Version:1.2.21 Spine Version: 1.2.21

TheWitness commented 2 years ago

Just truncate the poller_reindex table:

TRUNCATE TABLE poller_reindex;
TheWitness commented 2 years ago

You might also want to force a system wide re-index afterwards. This is the CLI script poller_reindex_hosts.php.

TheWitness commented 2 years ago

That 'white-list' error, you should update your whitelist definitions. Looks like you are on Ubuntu.

[root@vmhost3 cli]# php -q input_whitelist.php --help
Cacti Data Input Whitelist Utility, Version 1.2.22 (DB: 1.2.22), Copyright (C) 2004-2022 The Cacti Group

usage: input_whitelist.php [--audit | --update [--push]]

A utility audit and update the Data Input whitelist status and
Data Input protection file.

Optional:
    --audit       Audit but do not update the whitelist file.
    --update      Update the whitelist file with latest information.
    --push        If any input strings are being updated to new values,
                  push out the Data Input Methods with new input strings.
TheWitness commented 2 years ago

Run an --audit followed by an --update.

tamanullah commented 2 years ago

Hi, I truncated the index table and also did a force re-index but still getting reboot notifications continuously. Whitelist failure logs also not stopped even after updating whitelist definitions.

TheWitness commented 2 years ago

Upload your cacti.log

TheWitness commented 2 years ago

Also, I'm curious why the GT[] is empty.

tamanullah commented 2 years ago

cacti.log

tamanullah commented 2 years ago

Do you need anything else? Regarding GT[]?

TheWitness commented 2 years ago

Well, on the automation, I would double check you don't have a corrupted graph automation rule.

On the reboots, I would run spine at -V 5 for only the one host, in read only mode and review the output.

chrisch80 commented 1 year ago

I have the same issue but only 2 Cisco Devices (1 Switch and 1 Router) are affected.

TheWitness commented 1 year ago

Just saw the Cacti Log and this is definitely a Monitor issue. So, I'm going to move to the Monitor issue tracker. I'll be getting to Monitor issues later this fall.

TheWitness commented 1 year ago

Edit your Automation Rules. They are broken. Maybe an upgrade issue.

chrisch80 commented 1 year ago

Which automation rules do you mean? What should I check there?

interduo commented 3 months ago

Please add a link to device in that report.