Unable to add iDirect NMS Graph
Moderators: Developers, Moderators
Unable to add iDirect NMS Graph
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
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
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to add iDirect NMS Graph
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?
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?
Re: Unable to add iDirect NMS Graph
Cacti Version 1.2.26
Re: Unable to add iDirect NMS Graph
I also installed Cacti 1.2.25, the same error.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to add iDirect NMS Graph
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Unable to add iDirect NMS Graph
Fixed here. https://github.com/Cacti/cacti/issues/5609
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?
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?
Re: Unable to add iDirect NMS Graph
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.
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
Re: Unable to add iDirect NMS Graph
It's the scperror.xml that is damaged
- Attachments
-
- Screenshot_20231209-030606.png (131.15 KiB) Viewed 2622 times
Before history, there was a paradise, now dust.
Re: Unable to add iDirect NMS Graph
Please can you assist me in fixing it (scperror.xml). I do not know how to do that?
Re: Unable to add iDirect NMS Graph
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
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 119 times
Re: Unable to add iDirect NMS Graph
Hello
Please any help.
Please any help.
Re: Unable to add iDirect NMS Graph
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
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
Re: Unable to add iDirect NMS Graph
Please any help from anyone here.
I will really appreciate it.
Thank you.
Is there any alternative that I can use to graph iDirect?
I will really appreciate it.
Thank you.
Is there any alternative that I can use to graph iDirect?
Re: Unable to add iDirect NMS Graph
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>
<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!
Re: Unable to add iDirect NMS Graph
Thank you, Macan.
I have corrected this since Saturday 09 Dec, 2023,
See attached. It is still the same error.
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
Who is online
Users browsing this forum: No registered users and 0 guests