add more field into device record

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

add more field into device record

Post by Rno »

I'd like to use Cacti as inventory for all of my network equipment

Is it possible to include into the 1.2 future version 3 mores field into the device DB
Serial number
type
location

Now i can just add it into the comment part, but it' hard to make a search or a sort based on this text field.

Thanks in advance,
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: add more field into device record

Post by phalek »

You can do that via a plugin. In fact my updated Cacti 1.x book does contain a howto for such a plugin ... ( see the Serial Number / Warranty fields in the screenshot )

The Location is already existing in Cacti 1., it's the Device Site Association.
Attachments
3920_09_05.png
3920_09_05.png (29.46 KiB) Viewed 12775 times
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Rno
Cacti Pro User
Posts: 704
Joined: Wed Dec 07, 2011 9:19 am

Re: add more field into device record

Post by Rno »

I know I can do that via plug-in, I have some I developed) but I thinks it can be for general interest
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: add more field into device record

Post by Osiris »

Pretty sure I saw something about plans for location, and device types being supported as a function of site tree branches.
Before history, there was a paradise, now dust.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: add more field into device record

Post by netniV »

There is already a device template, which is effectively device type. There is Sites which is the equivalent of Location. There is also snmp_sysLocation which is the location field retrieved via SNMP. I think the only field that isn't currently available is Serial but that shouldn't be too had to add.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: add more field into device record

Post by Osiris »

The location in 1.2 is like Closet, Rack, Enclosure, etc. Types can be different that Device Templates, but you can name your Device Templates to match type. For example, the Net-SNMP Device Template works pretty good for a DNS or DHCP Server. But those server types might deserve more Templates around the service, so you would duplicate the Net-SNMP, and then make changes from there giving it a new name like DNS Server.
Before history, there was a paradise, now dust.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: add more field into device record

Post by Osiris »

Adding Warranty and Serial number might not be a bad thing. The notes field was added ages ago for such data I think. Plugins work great in either case.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest