mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			73 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
$no_refresh = true;
 | 
						|
 | 
						|
$config_groups = get_config_by_group('external');
 | 
						|
 | 
						|
$oxidized_conf = array(
 | 
						|
    array('name'               => 'oxidized.enabled',
 | 
						|
          'descr'              => 'Enable Oxidized support',
 | 
						|
          'type'               => 'checkbox',
 | 
						|
    ),
 | 
						|
    array('name'               => 'oxidized.url',
 | 
						|
          'descr'              => 'URL to your Oxidized API',
 | 
						|
          'type'               => 'text',
 | 
						|
    ),
 | 
						|
    array('name'               => 'oxidized.features.versioning',
 | 
						|
          'descr'              => 'Enable config versioning access',
 | 
						|
          'type'               => 'checkbox',
 | 
						|
    ),
 | 
						|
    array('name'               => 'oxidized.group_support',
 | 
						|
          'descr'              => 'Enable the return of groups to Oxidized',
 | 
						|
          'type'               => 'checkbox',
 | 
						|
    ),
 | 
						|
    array('name'               => 'oxidized.default_group',
 | 
						|
          'descr'              => 'Set the default group returned',
 | 
						|
          'type'               => 'text',
 | 
						|
    ),
 | 
						|
    array('name'               => 'oxidized.reload_nodes',
 | 
						|
          'descr'              => 'Reload Oxidized nodes list, each time a device is added',
 | 
						|
          'type'               => 'checkbox',
 | 
						|
    ),
 | 
						|
);
 | 
						|
 | 
						|
$unixagent_conf = array(
 | 
						|
    array('name'               => 'unix-agent.port',
 | 
						|
          'descr'              => 'Default unix-agent port',
 | 
						|
          'type'               => 'text',
 | 
						|
    ),
 | 
						|
    array('name'               => 'unix-agent.connection-timeout',
 | 
						|
          'descr'              => 'Connection timeout',
 | 
						|
          'type'               => 'text',
 | 
						|
    ),
 | 
						|
    array('name'               => 'unix-agent.read-timeout',
 | 
						|
          'descr'              => 'Read timeout',
 | 
						|
          'type'               => 'text',
 | 
						|
    ),
 | 
						|
);
 | 
						|
 | 
						|
$rrdtool_conf = array(
 | 
						|
    array('name'               => 'rrdtool',
 | 
						|
           'descr'             => 'Path to rrdtool binary',
 | 
						|
           'type'              => 'text',
 | 
						|
    ),
 | 
						|
    array('name'               => 'rrdtool_tune',
 | 
						|
          'descr'              => 'Tune all rrd port files to use max values',
 | 
						|
          'type'               => 'checkbox',
 | 
						|
    ),
 | 
						|
);
 | 
						|
 | 
						|
echo '
 | 
						|
<div class="panel-group" id="accordion">
 | 
						|
    <form class="form-horizontal" role="form" action="" method="post">
 | 
						|
';
 | 
						|
 | 
						|
echo generate_dynamic_config_panel('Oxidized integration',true,$config_groups,$oxidized_conf);
 | 
						|
echo generate_dynamic_config_panel('Unix-agent integration',true,$config_groups,$unixagent_conf);
 | 
						|
echo generate_dynamic_config_panel('RRDTool Setup',true,$config_groups,$rrdtool_conf);
 | 
						|
 | 
						|
echo '
 | 
						|
    </form>
 | 
						|
</div>
 | 
						|
';
 |