arg_num_indexes missing in XML file

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Ahmed1993
Posts: 9
Joined: Mon Jul 08, 2019 8:11 am

arg_num_indexes missing in XML file

Post by Ahmed1993 »

Hi everyone
I have been trying to add QoS template to use it with cisco router , all goes well until I added it to Associated Data Queries of the router
status show success bot 0 Items, 0 Rows so I used Verbose Query and the following came out

+ Running data query [11].
+ Found type = '4' [Script Query].
+ Found data query XML file at 'C:\Users\Administrator\Downloads\cisco-qos-64\cacti_data_query_cisco-qos-64.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
+ Executing script for list of indexes ' ' Index Count: 0

I have no knowledge in XML so can I do???
note :- I have tried two other templates but the same problem came out
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: arg_num_indexes missing in XML file

Post by netniV »

Have you configured you cisco to allow the information via SNMP? By default it will be locked down.
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
Ahmed1993
Posts: 9
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

Post by Ahmed1993 »

Hi netniV
in fact I have an old working cacti server so I have mirrored configuration for the new one
I have even tried to export the QoS template used in the old cacti to use it in the new one but the same problem
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: arg_num_indexes missing in XML file

Post by camerabob »

On the Cisco, have you permitted the new IP to poll?
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Ahmed1993
Posts: 9
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

Post by Ahmed1993 »

camerabob wrote:On the Cisco, have you permitted the new IP to poll?
yes I did I have a working cacti server and I have mirrored configuration for the new one
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: arg_num_indexes missing in XML file

Post by camerabob »

Show us the SNMP on the Cisco side please. Mask out anything you don't wish to be shown in public.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Ahmed1993
Posts: 9
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

Post by Ahmed1993 »

camerabob wrote:Show us the SNMP on the Cisco side please. Mask out anything you don't wish to be shown in public.
Dear camerabob ,
thanks for your interest

==> on the monitored router
snmp-server community password RO Cacti
snmp-server host 10.30.1.251 password
ip access-list standard Cacti
permit 10.30.1.251

==> on a Cisco ASA (connecting the router to the LAN containing the cacti server)
access-list ACL-X extended permit udp host 10.30.1.251 host x.x.x.x eq snmp
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: arg_num_indexes missing in XML file

Post by netniV »

Cisco have a decent page on the various things you can do to monitor the use of SNMP on the devices:
https://www.cisco.com/c/en/us/td/docs/s ... _snmp.html

Try monitoring the usage. Also, make sure that the device is definitely listening for UDP traffic on SNMP by using SNMPWALK
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
Ahmed1993
Posts: 9
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

Post by Ahmed1993 »

I also have no problem in snmp on my new server since I can create graphs for my router (interface traffic and cpu) but just have a problem with templates
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest