Comments (9)
Doing a simple function to test the INET_NTOA and ATON look like it's causing the problem
When I did:
RETURN (
INET6_NTOA(ipadd & INET6_ATON(mask))
)
and a call with:
SELECT get_network(0x0a55a094, "255.255.0.0", "10.85.0.0")
return NULL
but having the function :
RETURN (
INET_NTOA(ipadd & INET_ATON(mask))
)
and same call as before, it return:
10.85.0.0
So verification with the function:
RETURN (
(ipadd & INET_ATON(mask))
= INET_ATON(test)
)
And allways the same call return true, and if I call with this:
SELECT get_network(0x0aa5a094, "255.255.0.0", "10.85.0.0")
it return false.
So why is the INET6_ATON and NTOA is not working ?
from plugin_flowview.
What MariaDB version are you on?
from plugin_flowview.
Ugh, I think some settings were lost. So much to do, only so many hours in a day.
from plugin_flowview.
I updated the dev branch to give you more control on the DNS front.
from plugin_flowview.
Doing a simple function to test the INET_NTOA and ATON look like it's causing the problem
When I did:
RETURN (
INET6_NTOA(ipadd & INET6_ATON(mask))
)
and a call with:
SELECT get_network(0x0a55a094, "255.255.0.0", "10.85.0.0")
return NULL
but having the function :
RETURN (
INET_NTOA(ipadd & INET_ATON(mask))
)
and same call as before, it return:
10.85.0.0
So verification with the function:
RETURN (
(ipadd & INET_ATON(mask))
= INET_ATON(test)
)
And allways the same call return true, and if I call with this:
SELECT get_network(0x0aa5a094, "255.255.0.0", "10.85.0.0")
it return false.
So why is the INET6_ATON and NTOA is not working ?
I'm using 10.5.0
from plugin_flowview.
Ok, so I upgrade to the new develop, and the DNS Iana thinks seams working, no more error!
But still the filter is not working as it should be.
I'm still see packet with source address that dosen't match the filter.
from plugin_flowview.
Well doing a query with ARIN 'on' is still not working:
06/04/2022 10:26:04 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/flowview/flow_collector.php[338]:process_fv5(), /plugins/flowview/flow_collector.php[431]:flowview_get_dns_from_ip(), /plugins/flowview/functions.php[3310]:flowview_get_owner_from_arin(), /plugins/flowview/functions.php[3579]:CactiErrorHandler())
06/04/2022 10:26:04 - ERROR PHP NOTICE in Plugin 'flowview': Trying to access array offset on value of type null in file: /usr/share/cacti/plugins/flowview/functions.php on line: 3579
06/04/2022 10:26:04 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/flowview/flow_collector.php[338]:process_fv5(), /plugins/flowview/flow_collector.php[431]:flowview_get_dns_from_ip(), /plugins/flowview/functions.php[3310]:flowview_get_owner_from_arin(), /plugins/flowview/functions.php[3579]:CactiErrorHandler())
06/04/2022 10:26:04 - ERROR PHP NOTICE in Plugin 'flowview': Trying to access array offset on value of type null in file: /usr/share/cacti/plugins/flowview/functions.php on line: 3579
06/04/2022 10:26:04 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/flowview/flow_collector.php[338]:process_fv5(), /plugins/flowview/flow_collector.php[431]:flowview_get_dns_from_ip(), /plugins/flowview/functions.php[3310]:flowview_get_owner_from_arin(), /plugins/flowview/functions.php[3579]:CactiErrorHandler())
06/04/2022 10:26:04 - ERROR PHP NOTICE in Plugin 'flowview': Trying to access array offset on value of type null in file: /usr/share/cacti/plugins/flowview/functions.php on line: 3579
That's the output of:
cacti_log("FLOwVIEW: ". print_r(json_decode($response, true), true ) );
06/04/2022 10:26:04 - CMDPHP FLOwVIEW:
That's the query to ARIN:
06/04/2022 10:26:04 - CMDPHP FLOwVIEW: http://whois.arin.net/rest/ip/76.223.122.69
from plugin_flowview.
So I find the issue about the arin.net not accessible, I have a page from our firewall who denied the access. And since it's an http, this two flag are not set.
But a test of $json shold be able to solve that!
from plugin_flowview.
I gave you an option to disable Arin lookup. That's a better thing. It'll speed things up.
Since we have 3 separate issues on this ticket, I'm going to close. The filter save issue is resolved. You need to open a separate issue on the subnet calculation issues, if they persist after the filter issue is resolved.
from plugin_flowview.
Related Issues (20)
- Timespan never saved when editing a filter HOT 16
- Flowview no data were displayed after empty or defined filter HOT 4
- Cacti PHP Errors when select report filter Source AS HOT 3
- PHP 8.1 error heartbeat float 5.5 precision HOT 2
- Flowview 3.3 cause crash of cacti, gorwing process from 4 to over 400 HOT 10
- flowview nodata plugin_flowview_raw_2022177 no data HOT 4
- Warning in version 3.3 with packet in netflow V5 or V9, Field length not set for name ... HOT 4
- Error messages when generating a report with the flowview plugin HOT 6
- /plugins/flowview/flowview_process.php[147]:set_config_option(), /lib/functions.php[422]:db_execute_prepared() HOT 3
- Can't receive any results HOT 3
- Cacti 1.2.23 and Flowview dev 3.3 HOT 3
- Support more than one router per FlowView listener HOT 1
- Report Filter Listener Print All Rows Not Working HOT 7
- Cacti 1.2.25, Ubuntu 22.04, plugin won't install
- Cacti 1.2.25, Ubuntu 22.04, plugin won't install HOT 14
- Create new Custom Flow Viewer Report HOT 2
- Folwview not working in cact 1.2.25 HOT 3
- HUAWEI NetEngine 8000 M1A flowview HOT 3
- Add the possibilites for Flowview to use a different DB than the Cacti one HOT 11
- Starting flow-capture service breaks cacti HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin_flowview.