Cacti / plugin_mikrotik

Mikrotik Plugin for Cacti
GNU General Public License v2.0
61 stars 24 forks source link

100% CPU load for random pooler_mikrotik.php #53

Closed MegaAndrey closed 2 years ago

MegaAndrey commented 2 years ago

Fresh installed Cacti and last version of mikrotik plugin. After a while I observe this: https://i.imgur.com/3xNn2MI.png

How can I investigate this and resolve the issue?

TheWitness commented 2 years ago

Better find a better place to post a link.

MegaAndrey commented 2 years ago

3xNn2MI

TheWitness commented 2 years ago

The way I've written just about all my plugins is to have a poller* file in the plugin folder. You can run it by hand with the --debug flag for some clues. Did you set your API user and password on the device page?

MegaAndrey commented 2 years ago

Is it under section MikroTik Credentials? Because I can't find anything else on Device page. This happened when we have changed Description on some devices.

MegaAndrey commented 2 years ago

DEBUG: Elapsed: 0, Message: Polling System from 'jet-mkt-pop-1002627[172.21.0.115]' DEBUG: Elapsed: 1, Message: Beginning Processing for 'jet-mkt-pop-1002627[172.21.0.115]', Table 'users' DEBUG: Elapsed: 1, Message: Polling users from 'jet-mkt-pop-1002627[172.21.0.115]' DEBUG: Elapsed: 1, Message: Polled: jet-mkt-pop-1002627, OID: .1.3.6.1.4.1.14988.1.1.5.1.1.2, Size: 0 DEBUG: Elapsed: 1, Message: No Index Information for OID: .1.3.6.1.4.1.14988.1.1.5.1.1.3 on jet-mkt-pop-1002627 returning DEBUG: Elapsed: 1, Message: Beginning Processing for 'jet-mkt-pop-1002627[172.21.0.115]', Table 'trees' DEBUG: Elapsed: 1, Message: Polling trees from 'jet-mkt-pop-1002627[172.21.0.115]' DEBUG: Elapsed: 1, Message: No Index Information for OID: .1.3.6.1.4.1.14988.1.1.2.2.1.2 on jet-mkt-pop-1002627 returning DEBUG: Elapsed: 1, Message: Beginning Processing for 'jet-mkt-pop-1002627[172.21.0.115]', Table 'queues' DEBUG: Elapsed: 1, Message: Polling queues from 'jet-mkt-pop-1002627[172.21.0.115]' DEBUG: Elapsed: 1, Message: No Index Information for OID: .1.3.6.1.4.1.14988.1.1.2.1.1.2 on jet-mkt-pop-1002627 returning

on this it freezes and takes 100% CPU load.

TheWitness commented 2 years ago

Follow the code. What step is it stuck on?

TheWitness commented 2 years ago

Next step is pppoe. Are you using pppoe? Is the API properly setup?

image

Edit the device, and towards the bottom of the page, you should find this:

image

MegaAndrey commented 2 years ago

So, problem solved by re-creating devices and graphs.