Cacti / plugin_mikrotik

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

v2.4 does not get interfaces.. #75

Closed PAOK1926 closed 9 months ago

PAOK1926 commented 1 year ago

I'm using cacti 1.2.16 with 2.4 version of your plugin. when i add a mikrotik device, it does not get the interfaces..

PAOK1926 commented 1 year ago

updated to latest cacti, your latest script, but still no interfaces. this is the debug of the query:

`

Data Query Debug Information
Total: 0.000000, Delta: 0.000000, Found data query XML file at '/usr/share/cacti/site/resource/script_server/mikrotik_interfaces.xml' Total: 0.000000, Delta: 0.000000, Running Data Query [11]. Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query]. Total: 0.000000, Delta: 0.000000, XML file parsed ok. Total: 0.100000, Delta: 0.100000, Data Query returned no indexes. Total: 0.100000, Delta: 0.000000, exists in XML file but no data returned., 'Index Count Changed' not supported Total: 0.100000, Delta: 0.000000, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_mikrotik_interfaces.php '5' 'num_indexes'' Total: 0.180000, Delta: 0.080000, ERROR: Data Query returned no indexes. | Total: 0.000000, Delta: 0.000000, Found data query XML file at '/usr/share/cacti/site/resource/script_server/mikrotik_interfaces.xml' | Total: 0.000000, Delta: 0.000000, Running Data Query [11]. | Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query]. | Total: 0.000000, Delta: 0.000000, XML file parsed ok. | Total: 0.100000, Delta: 0.100000, Data Query returned no indexes. | Total: 0.100000, Delta: 0.000000, exists in XML file but no data returned., 'Index Count Changed' not supported | Total: 0.100000, Delta: 0.000000, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_mikrotik_interfaces.php '5' 'num_indexes'' | Total: 0.180000, Delta: 0.080000, ERROR: Data Query returned no indexes. -- | -- | -- | -- | -- | -- | -- | -- | -- Total: 0.000000, Delta: 0.000000, Found data query XML file at '/usr/share/cacti/site/resource/script_server/mikrotik_interfaces.xml' Total: 0.000000, Delta: 0.000000, Running Data Query [11]. Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query]. Total: 0.000000, Delta: 0.000000, XML file parsed ok. Total: 0.100000, Delta: 0.100000, Data Query returned no indexes. Total: 0.100000, Delta: 0.000000, exists in XML file but no data returned., 'Index Count Changed' not supported Total: 0.100000, Delta: 0.000000, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_mikrotik_interfaces.php '5' 'num_indexes'' Total: 0.180000, Delta: 0.080000, ERROR: Data Query returned no indexes.
        </div>`
sadm2014 commented 1 year ago

Confirm this bug, have similar result:

Total: 0.000000, Delta: 0.000000, Found data query XML file at '/usr/share/cacti/site/resource/script_server/mikrotik_interfaces.xml'Total: 0.000000, Delta: 0.000000, Running Data Query [18].Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query].Total: 0.000000, Delta: 0.000000, XML file parsed ok.Total: 0.180000, Delta: 0.170000, Data Query returned no indexes.Total: 0.180000, Delta: 0.000000, exists in XML file but no data returned., 'Index Count Changed' not supportedTotal: 0.180000, Delta: 0.000000, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_mikrotik_interfaces.php '52' 'num_indexes''Total: 0.330000, Delta: 0.150000, ERROR: Data Query returned no indexes. | Total: 0.000000, Delta: 0.000000, Found data query XML file at '/usr/share/cacti/site/resource/script_server/mikrotik_interfaces.xml' | Total: 0.000000, Delta: 0.000000, Running Data Query [18]. | Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query]. | Total: 0.000000, Delta: 0.000000, XML file parsed ok. | Total: 0.180000, Delta: 0.170000, Data Query returned no indexes. | Total: 0.180000, Delta: 0.000000, exists in XML file but no data returned., 'Index Count Changed' not supported | Total: 0.180000, Delta: 0.000000, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_mikrotik_interfaces.php '52' 'num_indexes'' | Total: 0.330000, Delta: 0.150000, ERROR: Data Query returned no indexes. -- | -- | -- | -- | -- | -- | -- | -- | -- Total: 0.000000, Delta: 0.000000, Found data query XML file at '/usr/share/cacti/site/resource/script_server/mikrotik_interfaces.xml' Total: 0.000000, Delta: 0.000000, Running Data Query [18]. Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query]. Total: 0.000000, Delta: 0.000000, XML file parsed ok. Total: 0.180000, Delta: 0.170000, Data Query returned no indexes. Total: 0.180000, Delta: 0.000000, exists in XML file but no data returned., 'Index Count Changed' not supported Total: 0.180000, Delta: 0.000000, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_mikrotik_interfaces.php '52' 'num_indexes'' Total: 0.330000, Delta: 0.150000, ERROR: Data Query returned no indexes.
Associated Data Queries

TheWitness commented 1 year ago

I've done a lot to clean things up, but I think it requires like 1.2.23+ to work well. You also need to re-import the packages.

sadm2014 commented 1 year ago

I have 1.2.24, re-imported packages but have no success

TheWitness commented 9 months ago

Did you import the packages or the old template?

TheWitness commented 9 months ago

image