This is not a valid setting

going through the setup for nfsen, NFSen - LibreNMS Docs, and get this error

lnms config:set nfsen_base.+ '/var/nfsen' 
This is not a valid setting. Please check your input

any ideas as to why this is invalid?
I have no errors validating config

maybe I’m asking the wrong question here is /opt/librenms/config.php

$config['nfsen_enable']                         = 1;
$config['nfsen_split_char']                     = '_';
$config['nfsen_rrds'][]                         = '/var/nfsen/profiles-stat/live/';
$config['nfsen_rrds'][]                         = '/var/nfsen/profiles-stat';
$config['nfsen_base'][]                         = '/var/nfsen/';
$config['nfsen_suffix']                         = "_xxxx_com";

$config['nfsen_last_max']                       = 153600;
$config['nfsen_top_max']                        = 500;
$config['nfsen_top_N']                          = array( 10, 20, 50, 100, 200, 500 );
$config['nfsen_top_default']                    = 20;
$config['nfsen_stat_default']                   = 'srcip';
$config['nfsen_order_default']                  = 'packets';
$config['nfsen_last_default']                   = 900;
$config['nfsen_lasts_default']                  = array(
							'300'=>'5 minutes',
							'600'=>'10 minutes',
							'900'=>'15 minutes',
							'1800'=>'30 minutes',
							'3600'=>'1 hour',
							'9600'=>'3 hours',
							'38400'=>'12 hour',
							'76800'=>'24 hour',
							'115200'=>'36 hour',
							'153600'=>'48 hour'
							);```

and here is a widget:

rrds are being generated, nfsen sees them, config.php is pointed to the correct directories…

Impressive, no one has any input on this! Is there an alternative to nfsen that does work with Librenms?

config.php is deprecated, so thats why the documentation doesn’t mention it anymore

This makes my original question even more important since config.php is deprecated. Is this error something that would prevent librenms from reading the files that are on the drive?

This is not a valid setting. Please check your input

this might help?

RRDTool Command

rrdtool graph /tmp/K2GDORISZ6tm1oC9 --start 1693502760 --end 1693506360 --width 1161 --height 597 --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal -c FONT\#000000 -c BACK\#EEEEEE00 -c SHADEA\#EEEEEE00 -c SHADEB\#EEEEEE00 -c CANVAS\#FFFFFF00 -c GRID\#a5a5a5 -c MGRID\#FF9999 -c FRAME\#5e5e5e -c ARROW\#5e5e5e --alt-autoscale-max --rigid --slope-mode  COMMENT:'                     Now       Min       Max     Avg\\l' CDEF:X= AREA:X\#99999999: LINE1.25:X\#666666:
RRDTool Output

ERROR: can not parse an empty rpn expression

LibreNMS is maintained by the community, so somethings get missed in updates, it is up to the community to fix them if found.

“not a valid setting” means it has not been defined yet in config_definitions.json

It can still be set with the --ignore-checks option. But config.php overrides it, so it won’t apply as your config.php is already setting it.

The graph isn’t actually trying to graph anything, it is just an empty graph statement. Which means, there is probably something wrong with your configuration, and the also the code is not handling your misconfig very gracefully.

Thanks for the reply! Any suggestions on where to look for the misconfig? I’ve commented out the config.php so the lnms config:set commands work. That being said librenms is pointed to the correct directories for the rrd files. Could it be a permissions issue?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.