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,
add more field into device record
Moderators: Developers, Moderators
add more field into device record
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
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
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: add more field into device record
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.
The Location is already existing in Cacti 1., it's the Device Site Association.
- Attachments
-
- 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
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
Re: add more field into device record
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
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
Re: add more field into device record
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.
Re: add more field into device record
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: add more field into device record
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.
Re: add more field into device record
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.
Who is online
Users browsing this forum: No registered users and 1 guest