arg_num_indexes missing in XML file

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

Moderators: Moderators, Developers

Post Reply
Author
Message
Ahmed1993
Posts: 7
Joined: Mon Jul 08, 2019 8:11 am

arg_num_indexes missing in XML file

#1 Post by Ahmed1993 » Mon Jul 08, 2019 8:36 am

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: 3007
Joined: Sun Aug 27, 2017 12:05 am

Re: arg_num_indexes missing in XML file

#2 Post by netniV » Mon Jul 08, 2019 9:19 am

Have you configured you cisco to allow the information via SNMP? By default it will be locked down.

Ahmed1993
Posts: 7
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

#3 Post by Ahmed1993 » Mon Jul 08, 2019 9:28 am

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: 295
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: arg_num_indexes missing in XML file

#4 Post by camerabob » Mon Jul 08, 2019 9:28 am

On the Cisco, have you permitted the new IP to poll?
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.6-1.el7 @ CentOS 7-7.1908.0.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Ahmed1993
Posts: 7
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

#5 Post by Ahmed1993 » Mon Jul 08, 2019 9:45 am

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: 295
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: arg_num_indexes missing in XML file

#6 Post by camerabob » Mon Jul 08, 2019 10:40 am

Show us the SNMP on the Cisco side please. Mask out anything you don't wish to be shown in public.
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.6-1.el7 @ CentOS 7-7.1908.0.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Ahmed1993
Posts: 7
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

#7 Post by Ahmed1993 » Tue Jul 09, 2019 2:34 am

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: 3007
Joined: Sun Aug 27, 2017 12:05 am

Re: arg_num_indexes missing in XML file

#8 Post by netniV » Tue Jul 09, 2019 5:19 am

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

Ahmed1993
Posts: 7
Joined: Mon Jul 08, 2019 8:11 am

Re: arg_num_indexes missing in XML file

#9 Post by Ahmed1993 » Tue Jul 09, 2019 7:08 am

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