
As per my first question of this thread:
I would like to use my already labeled ports instead of the default port label options. That's it.
I did have $config['int_groups'] added to the config.php. eg:
$config['int_groups'] = array("Students","Staff","I.T.");
With this the menu links show up under ports. But no ports show up in the custom lists.
Dan.
On Tue, Feb 14, 2017 at 10:02 PM, Adam Armstrong adama@observium.org wrote:
Don't change $types, add things to $config['int_groups'].
We don't really know what you're trying to do, anyways.
adam.
On 15/02/2017 03:47:39, Dan Letkeman danletkeman@gmail.com wrote: I get the reasons for using the include in the config and modifying only the copy of the file.
I have changed the $types in the parser file but I still get nothing. Do you have an example of what parts of the file I need to modify?
Thanks, Dan.
On Tue, Feb 14, 2017 at 8:07 PM, Adam Armstrong adama@observium.org wrote:
fuken email.
Copy this file to a new file, "includes/port-descr-parser-custom.inc.php"
Add this to your config.php :
$config['port_descr_parser'] = "includes/port-descr-parser-cu stom.inc.php";
Edit the function in includes/port-descr-parser-custom.inc.php to parse in the way you want it to. This requires understanding PHP and how to parse strings. The file serves as an example.
Adam.
On 15/02/2017 02:06:27, Adam Armstrong adama@observium.org wrote: Copy this file to a new file,
Add this to your config.php :
Please never modify any files on your installation if you want updates to work, unless you really know what you're doing.
adam.
On 15/02/2017 02:01:30, Dan Letkeman danletkeman@gmail.com wrote: I found this:
http://observium.observium.narkive.com/USAxEBIY/custom-port-service-type
But i'm not sure what to add or modify in the: includes/port-descr-parser.inc.php
Dan.
On Tue, Feb 14, 2017 at 7:51 PM, Sophanith Chhom < sophanith.chhom@gmail.com> wrote:
I'm also looking on this too...
On Wed, Feb 15, 2017 at 8:44 AM, Dan Letkeman danletkeman@gmail.com wrote:
Hello,
I was wondering if anyone has some info on how to do custom port description parsing?
I already have my ports labeled and I would like to add custom port lists to the ports menu.
Thanks, Dan.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi -bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/ cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium