Hello,

The examples on https://docs.observium.org/port_descr_parsing/ describe the standard for interfaces descriptions recognized by the default regex in Observium.
"Cust: Example Customer [10Mbit] (T1 Telco Y CCID129031) {EXAMP0001}" is only one example of a routers interface for customers (that's correctly recognized and parsed by Observium).

If you have a different standard for your interfaces descriptions, you need to write your own wrapper in "custom-port-descr-parser.inc.php".
You can get inspiration from the file "port-descr-parser.inc.php" (the default Observium regex).
But yes, you must know a minimum PHP and regex :-)

Johann


Le mer. 9 déc. 2020 à 16:41, Tasnim Tamanna via observium <observium@observium.org> a écrit :
I want to keep all customers' graphs under the Ports>Customers tab.

And just tried to follow this instruction:

https://docs.observium.org/port_descr_parsing/

I am not really sure where to add these line: Cust: Example Customer [10Mbit] (T1 Telco Y CCID129031) {EXAMP0001}

On Wed, Dec 9, 2020 at 9:35 PM Adam Armstrong via observium <observium@observium.org> wrote:

What are you trying to do?

 

You don’t need to copy anything to use our default port parsing, and adding random non-code text to a PHP file will break it.

 

Adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of Tasnim Tamanna via observium
Sent: 09 December 2020 15:34
To: Observium <observium@observium.org>
Cc: Tasnim Tamanna <desideratasnim@gmail.com>
Subject: [Observium] interface description parsing

 

Hi All,

 

For interface description parsing, I have copied the whole port-descr-parser.inc.php file to custom-port-descr-parser.inc.php file, and added below lines in the new file:

 

cust: cust_name [speed] (a_note) {circuit_id}

 

Finally, added below lines in config.php file:

 

$config['int_transit']             = 1;  // Enable Transit Types
$config['int_peering']             = 1;  // Enable Peering Types
$config['int_core']                = 1;  // Enable Core Port Types
$config['int_customers']           = 1;  // Enable Customer Port Parsing
$config['port_descr_parser'] = "includes/custom-port-descr-parser.inc.php";

 

 

But it's not working. Need help :-(

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
https://urldefense.com/v3/__http://postman.memetic.org/cgi-bin/mailman/listinfo/observium__;!!Bqsxq_o9!k6YRsElfQc3srqa7t94mq-0PYnHsocdhBtTV-reVZ0_8JkIxfMxH8MPrI3YlPl_DbQ$