-
Notifications
You must be signed in to change notification settings - Fork 1k
Custom column #3694
Copy link
Copy link
Open
Labels
Description
- [X ] I have read and understood docs/Issues.md.
Is your feature request related to a problem? Please describe.
Kind of.... When accessing devices via their IP address, I have no description related to this IP address.
Describe the solution you'd like
Using SQL source, I've add a "comment" column containing a description. the "name" field contains the IP address of the target device
I tried to alter oxidized/lib/oxidized/source/sql.rb to add this "comment" column, then alter oxidized-web/lib/oxidized/web/views/nodes.haml to display it.
But the field remains empty. Here's my sql scheme :
MariaDB [oxidized]> describe nodes;
+----------+--------------+------+-----+----------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+----------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(128) | NO | UNI | NULL | |
| model | varchar(128) | NO | | NULL | |
| username | varchar(128) | YES | | oxidized | |
| password | varchar(128) | YES | | NULL | |
| enable | varchar(64) | YES | | NULL | |
| group | varchar(128) | YES | | NULL | |
| comment | varchar(128) | YES | | NULL | |
+----------+--------------+------+-----+----------+----------------+
I'm using Oxidized-web v.0.18.0, Oxidized v.0.35.0
Regards,
Cédric
Reactions are currently unavailable