Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am unable to get Netflow Stats but the graphs work just fine. I get a grey bar when I hit process but no data. #14187

Open
nonekdan opened this issue Aug 6, 2022 · 3 comments

Comments

@nonekdan
Copy link

nonekdan commented Aug 6, 2022

I figured this out but I think it's a bug. The directions tell you to make entries in the config.php. But then when you go into the gui it talks about removing the configuration from the config.php to enable the enable disable button and even some of the other buttons.

The problem with this is that it will only work if the config is in the config.php. Some of the other settings seem ok and I'm not sure exactly which one does it, but if you don't have the enable line or the rrd lines and the seperator in the config then the stats don't come in when you hit process. It's actually the /opt/librenms/includes/html/pages/device/nfsen/stats.inc.php file that calls the command for nfdump the portion that gets the host fails and the command is incomplete.
So since there isn't any big red letters saying "Don't remove your config" than I would think this is unintended behavior.
Man I was obsessed with this thing and although I have a much better sense of how things work, I have been obsessed with this. I have gone so far down the rabbit hole just to find that it would have worked if I had just followed along with my crayons.
Anyway.. There is a bug so there is that. ;-)

The problem

I am trying to get the netflow statistics to work. I have been at this for what seems to be ages.
The netflow graphs work just fine.
I run nfsen on the same server and have it setup with apache on 8080 and that works fine. The main site is running with nginx. I have had to do a few patches to get the errors to go away like Backend and Frontend mismatch errors. But I can get past all that.
I have tried every sym link I can think of to try to get the info and again graphs are just fine.
When click the stats link I get the bar that allows me to select what I'm searching for.
After I click process, it almost immediately puts a thin bar below that (like it was creating the space to put stuff) and I get a quick bar going across the top.
I have set the environment to debug. I have checked all the logs in librenms that I can find. Access log shows that it's doing topn and shows some parameters but I can never find were it's calling nfdump which I'm assuming it's doing .
I have recently tried making nfsen run as librenms and changed all the ownership to librenms and I just can't get it.
I have two installs.. both Unbuntu 22.04 One at work and one at home that working on.
I'm not sure where to look to get what might be failing because nothing is complaining.
Any help would be greatly appreciated.. Please just tell me what you need from me to look at.

Output of ./validate.php

====================================
Component | Version
--------- | -------
LibreNMS  | 22.7.0-47-ge9211d93c
DB Schema | 2022_07_03_1947_add_app_data (244)
PHP       | 8.1.8
Python    | 3.10.4
Database  | MariaDB 10.6.7-MariaDB-2ubuntu1.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
====================================

[OK]    Composer Version: 2.3.10
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    
[OK]    Database schema correct
[OK]    MySQl and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached
librenms@pcit-Monitor:~$

What was the last working version of LibreNMS?

No response

Anything in the logs that might be useful for us?

I have looked at all the logs that I thought might hold something but I have found nothing that could help.  Any direction here would be greatly appreciated.  And if someone could even help me figure out if nfdump is being called properly at all. I just can't figure this out and I'm dreaming this monstrosity.
Thank you.
@murrant
Copy link
Member

murrant commented Aug 7, 2022

Did you configured rrdcached correctly to allow access to your nfsen rrds?

@nonekdan
Copy link
Author

nonekdan commented Aug 8, 2022 via email

@romarioZ1000
Copy link

$config['nfdump'] = '/media/nfdump/nfdump';

I figured this out but I think it's a bug. The directions tell you to make entries in the config.php. But then when you go into the gui it talks about removing the configuration from the config.php to enable the enable disable button and even some of the other buttons.

The problem with this is that it will only work if the config is in the config.php. Some of the other settings seem ok and I'm not sure exactly which one does it, but if you don't have the enable line or the rrd lines and the seperator in the config then the stats don't come in when you hit process. It's actually the /opt/librenms/includes/html/pages/device/nfsen/stats.inc.php file that calls the command for nfdump the portion that gets the host fails and the command is incomplete. So since there isn't any big red letters saying "Don't remove your config" than I would think this is unintended behavior. Man I was obsessed with this thing and although I have a much better sense of how things work, I have been obsessed with this. I have gone so far down the rabbit hole just to find that it would have worked if I had just followed along with my crayons. Anyway.. There is a bug so there is that. ;-)

The problem

I am trying to get the netflow statistics to work. I have been at this for what seems to be ages. The netflow graphs work just fine. I run nfsen on the same server and have it setup with apache on 8080 and that works fine. The main site is running with nginx. I have had to do a few patches to get the errors to go away like Backend and Frontend mismatch errors. But I can get past all that. I have tried every sym link I can think of to try to get the info and again graphs are just fine. When click the stats link I get the bar that allows me to select what I'm searching for. After I click process, it almost immediately puts a thin bar below that (like it was creating the space to put stuff) and I get a quick bar going across the top. I have set the environment to debug. I have checked all the logs in librenms that I can find. Access log shows that it's doing topn and shows some parameters but I can never find were it's calling nfdump which I'm assuming it's doing . I have recently tried making nfsen run as librenms and changed all the ownership to librenms and I just can't get it. I have two installs.. both Unbuntu 22.04 One at work and one at home that working on. I'm not sure where to look to get what might be failing because nothing is complaining. Any help would be greatly appreciated.. Please just tell me what you need from me to look at.

Output of ./validate.php

====================================
Component | Version
--------- | -------
LibreNMS  | 22.7.0-47-ge9211d93c
DB Schema | 2022_07_03_1947_add_app_data (244)
PHP       | 8.1.8
Python    | 3.10.4
Database  | MariaDB 10.6.7-MariaDB-2ubuntu1.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
====================================

[OK]    Composer Version: 2.3.10
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    
[OK]    Database schema correct
[OK]    MySQl and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached
librenms@pcit-Monitor:~$

What was the last working version of LibreNMS?

No response

Anything in the logs that might be useful for us?

I have looked at all the logs that I thought might hold something but I have found nothing that could help.  Any direction here would be greatly appreciated.  And if someone could even help me figure out if nfdump is being called properly at all. I just can't figure this out and I'm dreaming this monstrosity.
Thank you.

path to nfdump
$config['nfdump'] = '/usr/local/bin/nfdump';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants