We use cacti to graph disk usage on a host which has about 40 disks mounted. Recently some new disks were added and i tried to use add_graphs.php to add them into cacti, with no success. The disks are certainly mounted and I can see them with an snmpget.
If I craft the add_graph.php to list the devices:
$ php -q add_graphs.php --host-id=38 --graph-template-id=26 --graph-type=ds --snmp-query-id=8 --snmp-query-type-id=18 --snmp-field=hrStorageIndex --list-snmp-values
I can see all previous devices, but not the new devices.
Any suggestions?
Cannot see new object
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Sun Jan 18, 2009 5:38 pm
Cannot see new object
More on this problem:
The output from the command:
# php -q add_graphs.php --host-id=38 --graph-template-id=26 --graph-type=ds --snmp-query-id=8 --snmp-query-type-id=18 --snmp-field=hrStorageDescr --list-snmp-values
shows the following:
/data/fs1
/data/fs10
/data/fs11
/data/fs12
/data/fs13
/data/fs14
/data/fs15
/data/fs16
/data/fs17
/data/fs18
/data/fs19
Yet, a tcpdump running on the host in question does not show any snmp traffic resulting from the query. Maybe the add_device is querying the database and not the host directly as expected...
The output from the command:
# php -q add_graphs.php --host-id=38 --graph-template-id=26 --graph-type=ds --snmp-query-id=8 --snmp-query-type-id=18 --snmp-field=hrStorageDescr --list-snmp-values
shows the following:
/data/fs1
/data/fs10
/data/fs11
/data/fs12
/data/fs13
/data/fs14
/data/fs15
/data/fs16
/data/fs17
/data/fs18
/data/fs19
Yet, a tcpdump running on the host in question does not show any snmp traffic resulting from the query. Maybe the add_device is querying the database and not the host directly as expected...
-
- Posts: 4
- Joined: Sun Jan 18, 2009 5:38 pm
Cannot see new object
Thanks very much, this fixed the problem.
Who is online
Users browsing this forum: No registered users and 0 guests