Another integration question...nfsen
I don't think I'm being as retarded with this one. Sorry if I am.
nfsen running for a single firewall cluster at the moment, cfw.sv.domain.com. I can view nfsen's interface and see all of the data etc, so I know my netflow is working properly and nfsen can run reports on it etc.
I get cannot generate graph when going to the nfsen tab directly via url options, it does not show up in tabs list otherwise.
Is there something major here I'm doing wrong? IE smokeping I pointed to png files instead of RRD files :).
I've tried temporary universal read write etc for testing purposes, didn't help. I tried using the nfsen_suffix option at first, but ended up ditching that and spelling out the entire hostname under nfsen to eliminate a possible trouble spot.
nfsen output on start:
[root@netmon01.ops bin]# ./nfsen start Starting nfcapd:(cfw_sv_domain_com)[7154] Starting nfsend.
Directory, rrd file:
[root@netmon01.ops live]# pwd /opt/nfsendata/profiles-stat/live [root@netmon01.ops live]# ll total 2860 -rw-rw-r-- 1 netflow apache 2687848 Jul 22 18:35 cfw_sv_domain_com.rrd -rw-r--r-- 1 netflow apache 14727 Jul 22 18:35 flows-day.png -rw-r--r-- 1 netflow apache 18817 Jul 22 18:35 flows-month.png -rw-r--r-- 1 netflow apache 16145 Jul 22 18:35 flows-week.png -rw-r--r-- 1 netflow apache 17712 Jul 22 18:35 flows-year.png -rw-r--r-- 1 netflow apache 20324 Jul 22 18:35 packets-day.png -rw-r--r-- 1 netflow apache 19281 Jul 22 18:35 packets-month.png -rw-r--r-- 1 netflow apache 19349 Jul 22 18:35 packets-week.png -rw-r--r-- 1 netflow apache 18379 Jul 22 18:35 packets-year.png -rw-rw-r-- 1 netflow apache 258 Jul 22 18:35 profile.dat -rw-r--r-- 1 netflow apache 15728 Jul 22 18:35 traffic-day.png -rw-r--r-- 1 netflow apache 19764 Jul 22 18:35 traffic-month.png -rw-r--r-- 1 netflow apache 15163 Jul 22 18:35 traffic-week.png -rw-r--r-- 1 netflow apache 17352 Jul 22 18:35 traffic-year.png
observium config:
$config['nfsen_enable'] = 1; $config['nfsen_rrds'] = "/opt/nfsendata/profiles-stat/live/"; $config['nfsen_split_char'] = "_"; #$config['nfsen_suffix'] = ""; fqdn is under 19 char
Thanks, Morgan
I did some digging, and this seems to be related to an issue with the strstr function, related to not running 5.3+ as the website states. I'll update to 5.3 and see how things go.
Morgan
On Sun, Jul 22, 2012 at 6:49 PM, Morgan McLean wrx230@gmail.com wrote:
I don't think I'm being as retarded with this one. Sorry if I am.
nfsen running for a single firewall cluster at the moment, cfw.sv.domain.com. I can view nfsen's interface and see all of the data etc, so I know my netflow is working properly and nfsen can run reports on it etc.
I get cannot generate graph when going to the nfsen tab directly via url options, it does not show up in tabs list otherwise.
Is there something major here I'm doing wrong? IE smokeping I pointed to png files instead of RRD files :).
I've tried temporary universal read write etc for testing purposes, didn't help. I tried using the nfsen_suffix option at first, but ended up ditching that and spelling out the entire hostname under nfsen to eliminate a possible trouble spot.
nfsen output on start:
[root@netmon01.ops bin]# ./nfsen start Starting nfcapd:(cfw_sv_domain_com)[7154] Starting nfsend.
Directory, rrd file:
[root@netmon01.ops live]# pwd /opt/nfsendata/profiles-stat/live [root@netmon01.ops live]# ll total 2860 -rw-rw-r-- 1 netflow apache 2687848 Jul 22 18:35 cfw_sv_domain_com.rrd -rw-r--r-- 1 netflow apache 14727 Jul 22 18:35 flows-day.png -rw-r--r-- 1 netflow apache 18817 Jul 22 18:35 flows-month.png -rw-r--r-- 1 netflow apache 16145 Jul 22 18:35 flows-week.png -rw-r--r-- 1 netflow apache 17712 Jul 22 18:35 flows-year.png -rw-r--r-- 1 netflow apache 20324 Jul 22 18:35 packets-day.png -rw-r--r-- 1 netflow apache 19281 Jul 22 18:35 packets-month.png -rw-r--r-- 1 netflow apache 19349 Jul 22 18:35 packets-week.png -rw-r--r-- 1 netflow apache 18379 Jul 22 18:35 packets-year.png -rw-rw-r-- 1 netflow apache 258 Jul 22 18:35 profile.dat -rw-r--r-- 1 netflow apache 15728 Jul 22 18:35 traffic-day.png -rw-r--r-- 1 netflow apache 19764 Jul 22 18:35 traffic-month.png -rw-r--r-- 1 netflow apache 15163 Jul 22 18:35 traffic-week.png -rw-r--r-- 1 netflow apache 17352 Jul 22 18:35 traffic-year.png
observium config:
$config['nfsen_enable'] = 1; $config['nfsen_rrds'] = "/opt/nfsendata/profiles-stat/live/"; $config['nfsen_split_char'] = "_"; #$config['nfsen_suffix'] = ""; fqdn is under 19 char
Thanks, Morgan
Ok, I figured out the problem. The strstr function used to cut the suffix off of the host name breaks if the user doesn't use a suffix. I tested locally on my mac, and I get empty output, which is exactly the problem I've found.
vpn-100-71:~ mmclean$ php morgan.php
Warning: strstr(): Empty delimiter in /Users/mmclean/morgan.php on line 5
(theres an echo statement here for the variable)
Should I make a jira ticket, or is this expected?
Thanks, Morgan
On Mon, Jul 23, 2012 at 1:48 AM, Morgan McLean wrx230@gmail.com wrote:
I did some digging, and this seems to be related to an issue with the strstr function, related to not running 5.3+ as the website states. I'll update to 5.3 and see how things go.
Morgan
On Sun, Jul 22, 2012 at 6:49 PM, Morgan McLean wrx230@gmail.com wrote:
I don't think I'm being as retarded with this one. Sorry if I am.
nfsen running for a single firewall cluster at the moment, cfw.sv.domain.com. I can view nfsen's interface and see all of the data etc, so I know my netflow is working properly and nfsen can run reports on it etc.
I get cannot generate graph when going to the nfsen tab directly via url options, it does not show up in tabs list otherwise.
Is there something major here I'm doing wrong? IE smokeping I pointed to png files instead of RRD files :).
I've tried temporary universal read write etc for testing purposes, didn't help. I tried using the nfsen_suffix option at first, but ended up ditching that and spelling out the entire hostname under nfsen to eliminate a possible trouble spot.
nfsen output on start:
[root@netmon01.ops bin]# ./nfsen start Starting nfcapd:(cfw_sv_domain_com)[7154] Starting nfsend.
Directory, rrd file:
[root@netmon01.ops live]# pwd /opt/nfsendata/profiles-stat/live [root@netmon01.ops live]# ll total 2860 -rw-rw-r-- 1 netflow apache 2687848 Jul 22 18:35 cfw_sv_domain_com.rrd -rw-r--r-- 1 netflow apache 14727 Jul 22 18:35 flows-day.png -rw-r--r-- 1 netflow apache 18817 Jul 22 18:35 flows-month.png -rw-r--r-- 1 netflow apache 16145 Jul 22 18:35 flows-week.png -rw-r--r-- 1 netflow apache 17712 Jul 22 18:35 flows-year.png -rw-r--r-- 1 netflow apache 20324 Jul 22 18:35 packets-day.png -rw-r--r-- 1 netflow apache 19281 Jul 22 18:35 packets-month.png -rw-r--r-- 1 netflow apache 19349 Jul 22 18:35 packets-week.png -rw-r--r-- 1 netflow apache 18379 Jul 22 18:35 packets-year.png -rw-rw-r-- 1 netflow apache 258 Jul 22 18:35 profile.dat -rw-r--r-- 1 netflow apache 15728 Jul 22 18:35 traffic-day.png -rw-r--r-- 1 netflow apache 19764 Jul 22 18:35 traffic-month.png -rw-r--r-- 1 netflow apache 15163 Jul 22 18:35 traffic-week.png -rw-r--r-- 1 netflow apache 17352 Jul 22 18:35 traffic-year.png
observium config:
$config['nfsen_enable'] = 1; $config['nfsen_rrds'] = "/opt/nfsendata/profiles-stat/live/"; $config['nfsen_split_char'] = "_"; #$config['nfsen_suffix'] = ""; fqdn is under 19 char
Thanks, Morgan
participants (1)
-
Morgan McLean