Skip to content

Custom column #3694

@Rico29

Description

@Rico29

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions