Unable to add iDirect NMS Graph

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

Moderators: Developers, Moderators

Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Unable to add iDirect NMS Graph

Post by Atochi »

Hello

Kindly assist, i have not been enable to add idirect graph.

See the below error I keep getting. Please assist.

2023-12-08 16:13:49 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-12-08 16:13:49 - ERROR PHP ERROR: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cacti/lib/data_query.php:2383 Stack trace: #0 /var/www/html/cacti/lib/data_query.php(834): verify_index_order() #1 /var/www/html/cacti/lib/data_query.php(106): query_snmp_host() #2 /var/www/html/cacti/lib/api_device.php(1289): run_data_query() #3 /var/www/html/cacti/lib/api_device.php(1131): api_device_update_host_template() #4 /var/www/html/cacti/host.php(273): api_device_save() #5 /var/www/html/cacti/host.php(62): form_save() #6 {main} thrown in file: /var/www/html/cacti/lib/data_query.php on line: 2383
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to add iDirect NMS Graph

Post by TheWitness »

What Cacti version?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Cacti Version 1.2.26
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

I also installed Cacti 1.2.25, the same error.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to add iDirect NMS Graph

Post by TheWitness »

What Data Query are you re-indexing? Can you upload the resource XML for that Data Query? The XML file is wrong, I guess we fix this to report an XML file without a direction or something else, like a warning. But let's see the XML file first.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Unable to add iDirect NMS Graph

Post by TheWitness »

True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

The data query I am using is from this http://bit.ly/1lIHkAT

I have attached it also.

If you have different data query, kindly share with me.

Thank You.
Attachments
cacti-idirect-templates.zip
(86.88 KiB) Downloaded 120 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Unable to add iDirect NMS Graph

Post by Osiris »

It's the scperror.xml that is damaged
Attachments
Screenshot_20231209-030606.png
Screenshot_20231209-030606.png (131.15 KiB) Viewed 2619 times
Before history, there was a paradise, now dust.
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Please can you assist me in fixing it (scperror.xml). I do not know how to do that?
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Hello,

Kindly check if the below attachment is fixed now.

If it is so, it is still giving me the same error.

2023-12-09 09:27:49 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-12-09 09:27:49 - ERROR PHP ERROR: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cacti/lib/data_query.php:2383 Stack trace: #0 /var/www/html/cacti/lib/data_query.php(834): verify_index_order() #1 /var/www/html/cacti/lib/data_query.php(106): query_snmp_host() #2 /var/www/html/cacti/lib/api_device.php(1289): run_data_query() #3 /var/www/html/cacti/lib/api_device.php(1131): api_device_update_host_template() #4 /var/www/html/cacti/host.php(273): api_device_save() #5 /var/www/html/cacti/host.php(62): form_save() #6 {main} thrown in file: /var/www/html/cacti/lib/data_query.php on line: 2383
Attachments
scpcerror.xml
(431 Bytes) Downloaded 118 times
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Hello

Please any help.
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Please does anyone have working iDirect cacti template? Kindly share with me.

Also assist me with your cacti version and PHP.

We have been trying cacti 1.2.25 with PHP 7.4, 8.1, 8.2. Currently on cacti 1.2.26 with PHP 8.2.

And I am getting the same error.

2023-12-10 11:07:35 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-12-10 11:07:35 - ERROR PHP ERROR: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cacti/lib/data_query.php:2383 Stack trace: #0 /var/www/html/cacti/lib/data_query.php(834): verify_index_order() #1 /var/www/html/cacti/lib/data_query.php(106): query_snmp_host() #2 /var/www/html/cacti/lib/api_device.php(1289): run_data_query() #3 /var/www/html/cacti/lib/api_device.php(1131): api_device_update_host_template() #4 /var/www/html/cacti/host.php(273): api_device_save() #5 /var/www/html/cacti/host.php(62): form_save() #6 {main} thrown in file: /var/www/html/cacti/lib/data_query.php on line: 2383
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Please any help from anyone here.

I will really appreciate it.

Thank you.

Is there any alternative that I can use to graph iDirect?
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Unable to add iDirect NMS Graph

Post by macan »

in your file scperror.xml is:
<scpcerrors>
<name>scpcerror</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.13732.1.4.3.1.10</oid>
</scpcerror>

Problem is with the first and last line. There must be the same name. Change last line to
</scpcerrors>
Let the Cacti grow!
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Thank you, Macan.

I have corrected this since Saturday 09 Dec, 2023,

See attached. It is still the same error.
Attachments
scpcerror.xml
(431 Bytes) Downloaded 80 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests