Cannot add new graph using using Get SNMP Data Indexed

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
charli303
Posts: 4
Joined: Thu Nov 12, 2015 9:42 am

Cannot add new graph using using Get SNMP Data Indexed

Post by charli303 »

Hi all,
I've installed the CACTI and using it to monitor service access points (routers subinterface). I'm using Data Query and Get SNMP Data (Indexed) to succeed it. Nowadays I realised that, it is not allowing me to create new graph. I tried to disassociate and reassociate the Device with DataQuery, but it still doesnt allow me.

The following Screenshots of my new try to create are attached:
1- Devices->Create Graph for this host->select checkbox->Create
1 select new data query port for creation
1 select new data query port for creation
1 select new data query port.jpg (154.29 KiB) Viewed 512 times
2- The result of creation (It looks like created, but it doent gives me name for graph that is created)
2 Graph creation result
2 Graph creation result
2 Graph creation result.jpg (66.98 KiB) Viewed 512 times
3- Search result from Data Source (It looks like new data dource is created)
3 Data Source search
3 Data Source search
3 Data Source search.jpg (121.91 KiB) Viewed 512 times
4- Search result from Graph Management (No any Graph looks like created, the problem is here!!!)
4 Graph Management search
4 Graph Management search
4 Graph Management search.jpg (99.29 KiB) Viewed 512 times

I've checked the following:
- Cacti log looks normal, there is no any Error or Warning. I even tried to enable debugging during creation, but it still doesn't showed me any Error or Warning.
- I tried device reachability, snmpwalk, and all they looks OK.

There is no any updating problem at old graphs, they all are fine.
Because I cannot see any log anywhere, I could not pinpoint the reason, please help.

Thanks,
User avatar
charli303
Posts: 4
Joined: Thu Nov 12, 2015 9:42 am

Re: Cannot add new graph using GUI or add_graphs.php

Post by charli303 »

I tried to add the graph via CLI scripts af following:

Code: Select all

[root@cactimonp00 appuser]# php -q /var/lib/cacti/cli/add_graphs.php --host-id=66 --graph-type=ds --graph-template-id=47 --snmp-query-id=17 --snmp-query-type-id=29 --snmp-field=sap_description --snmp-value=Thirdparty_OAM_1/2/13
Graph Added - graph-id: (11341) - data-source-ids: (11328, 11328)
[root@cactimonp00 appuser]# 
It looks like created, and doesnt allow me to create the same whenever I use te script again:

Code: Select all

[root@cactimonp00 appuser]# php -q /var/lib/cacti/cli/add_graphs.php --host-id=66 --graph-type=ds --graph-template-id=47 --snmp-query-id=17 --snmp-query-type-id=29 --snmp-field=sap_description --snmp-value=Thirdparty_OAM_1/2/13
NOTE: Not Adding Graph - this graph already exists - graph-id: (11341) - data-source-id: ()
[root@cactimonp00 appuser]# 


I searched the graph in MySQL, but I cannot find it.

Code: Select all

mysql> SELECT local_data_id FROM data_template_rrd, graph_templates_item WHERE data_template_rrd.id = graph_templates_item.task_item_id AND graph_templates_item.local_graph_id = 11341 LIMIT 1;
Empty set (0.00 sec)
mysql>

Please help to pinpoint the problem?
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests