Additional information I gathered. There are some .rrd files I found
[AB11213@netflow-proc1 src]$ ls -l /data/nfsen/profiles-stat/live
total 10516
-rw-rw-r-- 1 netflow www 2687848 Nov 18 14:44 Linux-Host-eth1.rrd
-rw-rw-r-- 1 netflow www 2687848 Nov 18 14:44 peer1.rrd
-rw-rw-r-- 1 netflow www 2687848 Nov 18 14:44 peer2.rrd
-rw-rw-r-- 1 netflow www 323 Nov 18 14:44 profile.dat
-rw-rw-r-- 1 netflow www 2687848 Nov 18 14:44 upstream1.rrd
Also this is first time set up of nfsen on this server.
Just thought of sharing above information
*From:*Duddilla, Srikanth
*Sent:* Tuesday, November 18, 2014 4:12 PM
*To:* 'nfsen-discuss@lists.sourceforge.net'
*Subject:* nfsen install error
I am new to nfsen. I was installing nfsen an found following errors
“unable to create graph”.
Can someone provide what was the issue and fix for this?
I would appreciate your help. I have included nfsen.conf file contents.
--------------------------------------------------------------------------------
[root@netflow-proc1 nfsen-1.3.6p1]# ./install.pl etc/nfsen.conf
Check for required Perl modules: All modules found.
Setup NfSen:
Version: 1.3.6p1: $Id: install.pl 53 2012-01-23 16:36:02Z peter $
Perl to use: [/usr/bin/perl]
Found /usr/local/bin/nfdump: Version: 1.6.1p1 $LastChangedDate:
2010-03-05 07:50:35 +0100 (Fri, 05 Mar 2010) $
Setup php and html files.
Copy NfSen dirs etc bin libexec plugins doc ...
Copy config file 'etc/nfsen.conf'
In directory: /data/nfsen/libexec ...
Update script: AbuseWhois.pm
Update script: Log.pm
Update script: Lookup.pm
Update script: NfAlert.pm
Update script: Nfcomm.pm
Update script: NfConf.pm
Update script: NfProfile.pm
Update script: NfSen.pm
Update script: NfSenRC.pm
Update script: NfSenRRD.pm
Update script: NfSenSim.pm
Update script: Nfsources.pm
Update script: Nfsync.pm
Update script: Notification.pm
In directory: /data/nfsen/bin ...
Update script: nfsen
Update script: nfsend
Update script: RebuildHierarchy.pl
Update script: testPlugin
Cleanup old files ...
Setup diretories:
Use UID/GID 511 512
Creating: mkdir /data/nfsen/var
/data/nfsen/var
Creating: mkdir /data/nfsen/var/tmp
/data/nfsen/var/tmp
Creating: mkdir /data/nfsen/var/run
/data/nfsen/var/run
Creating: mkdir /data/nfsen/var/filters
/data/nfsen/var/filters
Creating: mkdir /data/nfsen/var/fmt
/data/nfsen/var/fmt
Creating: mkdir /data/nfsen/profiles-stat
/data/nfsen/profiles-stat
Creating: mkdir /data/nfsen/profiles-stat/live
/data/nfsen/profiles-stat/live
Creating: mkdir /data/nfsen/profiles-data
/data/nfsen/profiles-data
Creating: mkdir /data/nfsen/profiles-data/live
/data/nfsen/profiles-data/live
Profile live: spool directories:
Creating: mkdir /data/nfsen/profiles-data/live/Linux-Host-eth1
Linux-Host-eth1
Creating: mkdir /data/nfsen/profiles-data/live/peer2
peer2
Creating: mkdir /data/nfsen/profiles-data/live/upstream1
upstream1
Creating: mkdir /data/nfsen/profiles-data/live/peer1
peer1
Rename gif RRDfiles ... done.
Create profile info for profile 'live'
Rebuilding profile stats for './live'
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Rebuilding profile stats for './live'*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Rebuilding profile stats for './live'*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Rebuilding profile stats for './live'*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, traffic-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, flows-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 337.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 346.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 356.*
*Unable to create graph: No such file or directory*
*Error GenGraph: Profile: live, packets-day: Legend set but no color:
peer2 at libexec/NfSenRRD.pm line 366.*
*Reconfig: No changes found!*
*Setup done.*
===================================================================================================
*Nfsen.conf File*:
##############################
#
# NfSen master config file
#
# $Id: nfsen-dist.conf 22 2007-11-20 12:27:38Z phaag $
#
# Configuration of NfSen:
# Set all the values to fit your NfSen setup and run the 'install.pl'
# script from the nfsen distribution directory.
#
# The syntax must conform to Perl syntax.
#
##############################
#
# NfSen default layout:
# Any scripts, modules or profiles are installed by default under
$BASEDIR.
# However, you may change any of these settings to fit your requested
layout.
#
# Required for default layout
$BASEDIR = "/data/nfsen";
#
# Where to install the NfSen binaries
$BINDIR="${BASEDIR}/bin";
#
# Where to install the NfSen Perl modules
$LIBEXECDIR="${BASEDIR}/libexec";
#
# Where to install the config files
$CONFDIR="${BASEDIR}/etc";
#
# NfSen html pages directory:
# All php scripts will be installed here.
# URL: Entry point for nfsen: http://<webserver>/nfsen/nfsen.php
<http://%3cwebserver%3e/nfsen/nfsen.php>
$HTMLDIR = "/var/www/nfsen/";
#
# Where to install the docs
$DOCDIR="${HTMLDIR}/doc";
#
# Var space for NfSen
$VARDIR="${BASEDIR}/var";
# directory for all pid files
# $PIDDIR="$VARDIR/run";
#
# Filter directory
# FILTERDIR="${VARDIR}/filters";
#
# FORMATDIR for custom printing formats
# FORMATDIR="${VARDIR}/fmt";
#
#
# The Profiles stat directory, where all profile information
# RRD DBs and png pictures of the profile are stored
$PROFILESTATDIR="${BASEDIR}/profiles-stat";
#
# The Profiles directory, where all netflow data is stored
$PROFILEDATADIR="${BASEDIR}/profiles-data";
#
# Where go all the backend plugins
$BACKEND_PLUGINDIR="${BASEDIR}/plugins";
#
# Where go all the frontend plugins
$FRONTEND_PLUGINDIR="${HTMLDIR}/plugins";
#
# nfdump tools path
$PREFIX = '/usr/local/bin';
#
# nfsend communication socket
# $COMMSOCKET = "$PIDDIR/nfsen.comm";
# BASEDIR unrelated vars:
#
# Run nfcapd as this user
# This may be a different or the same uid than your web server.
# Note: This user must be in group $WWWGROUP, otherwise nfcapd
# is not able to write data files!
$USER = "netflow";
# user and group of the web server process
# All netflow processing will be done with this user
$WWWUSER = "www";
$WWWGROUP = "www";
# Receive buffer size for nfcapd - see man page nfcapd(1)
$BUFFLEN = 200000;
# list of extensions for each collector. See argument -T
# for nfcapd(1) for more detailes.
# defaults to empty -> compatible to nfdump-1.5.8
# $EXTENSIONS = '';
# Example:
# $EXTENSIONS = 'all';
# $EXTENSIONS = '+3,+4';
#
# Directory sub hierarchy layout:
# Possible layouts:
#
# 0 default no hierachy levels - flat layout - compatible with
pre NfSen versions
# 1 %Y/%m/%d year/month/day
# 2 %Y/%m/%d/%H year/month/day/hour
# 3 %Y/%W/%u year/week_of_year/day_of_week
# 4 %Y/%W/%u/%H year/week_of_year/day_of_week/hour
# 5 %Y/%j year/day-of-year
# 6 %Y/%j/%H year/day-of-year/hour
# 7 %Y-%m-%d year-month-day
# 8 %Y-%m-%d/%H year-month-day/hour
$SUBDIRLAYOUT = 1;
# Compress flows while collecting 0 or 1
$ZIPcollected = 1;
# Compress flows in profiles 0 or 1
$ZIPprofiles = 1;
# Interrupt expire -- not yet enabled as not yet fully tested
#$InterruptExpire = 0;
# number of nfprofile processes to spawn during the profiling phase
# depends on how busy your system is and how many CPUs you have
# on very busy systems increase it to a higher value
$PROFILERS = 2;
# if the PROFILEDATADIR is filled up to this percentage, a warning
message will be printed.
# set to 0 to disable the test
$DISKLIMIT = 98;
# number of nfprofile processes to spawn during the profiling phase
$PROFILERS = 6;
# Netflow sources
# Define an ident string, port and colour per netflow source
#
# Required parameters:
# ident identifies this netflow source. e.g. the router name,
# Upstream provider name etc.
# port nfcapd listens on this port for netflow data for this source
# set port to '0' if you do not want a
collector to be started
# col colour in nfsen graphs for this source
#
# Optional parameters
# type Collector type needed for this source. Can be 'netflow'
or 'sflow'. Default is netflow
# optarg Optional args to the collector at startup
#
# Syntax:
# 'ident' => { 'port' => '<portnum>', 'col' => '<colour>',
'type' => '<type>' }
# Ident strings must be 1 to 19 characters long only, containing
characters [a-zA-Z0-9_].
%sources = (
'upstream1' => { 'port' => '9995', 'col' => '#0000ff', 'type'
=> 'netflow' },
'peer1' => { 'port' => '9996', 'IP' => '172.16.17.18' },
'peer2' => { 'port' => '9996', 'IP' => '172.16.17.19' },
'Linux-Host-eth1' => { 'port' => '23456', 'col' => '#ff0000',
'type' => 'netflow' },
);
#
# Low water mark: When expiring files, delete files until
# size = $low_water % of max_size
# typically 90
$low_water = 90;
#
# syslog facility for periodic jobs
# nfsen uses level 'debug', 'info', 'warning' and 'err'
# Note: nfsen is very chatty for level 'debug' and 'info'
# For normal operation, you may set the logging level in syslog.conf
# to warning or error unless you want to debug NfSen
$syslog_facility = 'local3';
#
# SYSLOG mess
# Log socket type: Most *NIX such as LINUX and *BSD are fine with 'unix'
# which is the default. You need to change that to 'stream' or 'inet' for
# some Solaris version 8/9, AIX and others ..
# You may set it to undef to prevent calling Sys::Syslog::setlogsock
at all
# ( works for Solaris 10 and newer Sys::Syslog module
#
# If not defined at all, 'unix' is assumed unless for Solaris, which
defaults to 'stream'
# $LogSocket = 'unix';
#
# Plugins
# Plugins extend NfSen for the purpose of:
# Periodic data processing, alerting-condition and alerting-action
# For data processing a plugin may run for any profile or for a
specific profile only.
# Syntax: [ 'profile list', 'module' ]
# profile list: ',' separated list of profiles (
'profilegroup/profilename' ),
# or '*' for any profile, '!' for no profile
# module: Perl Module name, equal to plugin name
# The profile list '!' make sense for plugins, which only provide
alerting functions
#
# The module follows the standard Perl module conventions, with at
least one
# function: Init(). See demoplugin.pm for a simple template.
#
# A file with the same name in the FRONTEND_PLUGINDIR and .php
extension is automatically
# recongized as frontend plugin.
#
# Plugins are installed under
# $BACKEND_PLUGINDIR and $FRONTEND_PLUGINDIR
@plugins = (
# profile # module
# [ '*', 'demoplugin' ],
);
%PluginConf = (
# For plugin demoplugin
demoplugin => {
# scalar
param2 => 42,
# hash
param1 => { 'key' => 'value' },
},
# for plugin otherplugin
otherplugin => [
# array
'mary had a little lamb'
],
);
#
# Alert module: email alerting:
# Use this from address
$MAIL_FROM = 'y...@from.example.net';
# Use this SMTP server
$SMTP_SERVER = 'localhost';
# Use this email body:
# You may have multiple lines of text.
# Var substitution:
# @alert@ replaced by alert name
# @timeslot@ replaced by timeslot alert triggered
$MAIL_BODY = q{
Alert '@alert@' triggered at timeslot @timeslot@
};
######################################################
#
# For the NfSen simulator include the section below.
#
######################################################
#
# Nfsen Simulator
# The simulator requires, that you have already installed
# and configured NfSen. The simulation is based on already
# pre-colleted data, which you may get from another live
# NfSen system.
#
# Steps to setup the NfSen simulator:
# 1. Configure the sources of the live profile with the
# same names of the NfSen system, you take netflow data
# for the simulation. Set the port for each netflow source
# to 0 to prevent a collector to be started.
# Install NfSen with this config in a seperate directory
# 2. Copy the pre-collected data into the appropriate
# netflow directory of the live profile.
# 3. Configure the simulator using the parameters below
# Enable Simulation mode => $SIMmode = 1
# Configure the time window of the pre-collected data.
# tstart => Start of time window. yyyymmddhhmm
# tbegin => Optional parameter. Start of simulation
# profile exists already between tstart - tbegin
# tend => End of time window. yyyymmddhhmm
# cycletime => simulation time in seconds of a 5min slot
# Setting cycletime = 0 processes the cycles as fast as
# possible. Please note, if you test plugings, your
# cycletime needs to be at least the time required to
# process all plugins.
# 4. Start nfsen: ../nfsen start
# Simulation starts
#
# The simulator runs from tstart to tend and stops when tend
# is reached. You may stop the simulation at any given time
# using ./nfsen stop. To continue the simulation start NfSen
# again: ./nfsen start. You may reset the simulator at any
# given time using ./nfsen abort-reset. This stops the sumulation
# and rolls back to tstart. All profiles/alerts are deleted,
# so you may start from scratch again.
#
# Configure simulator parameters
#
# $SIMmode = 1;
# %sim = (
# 'tstart' => '200707100000', # Simulation data available
from July 10th 2007 00:00
# 'tbegin' => '200707110000', # Simulation begins at July
11th 2007 00:00
# 'tend' => '200707112355', # Simulation ends at July
11th 2007 23:55
# 'cycletime' => '30', # 30s per
5min slot
# );
1;
Thanks
This communication is the property of CenturyLink and may contain
confidential or privileged information. Unauthorized use of this
communication is strictly prohibited and may be unlawful. If you have
received this communication in error, please immediately notify the
sender by reply e-mail and destroy all copies of the communication
and any attachments.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss