Unable to add iDirect NMS Graph
Moderators: Developers, Moderators
Re: Unable to add iDirect NMS Graph
Thanks for reporting the additional error. This all goes back to a defective XML file. If you open the XML file with the Edge or Chromium browsers are there errors displayed?
If the XML is not defective, does each field have a direction attribute?
If the XML is not defective, does each field have a direction attribute?
Before history, there was a paradise, now dust.
Re: Unable to add iDirect NMS Graph
Hello Osiris,
Is it to open cacti dashboard via Edge? I just did that it still gives me the same error.
Please if you have iDirect xml files, kindly share with me.
2023-12-23 17:07:30 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-12-23 17:07:30 - ERROR PHP ERROR: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cacti/lib/data_query.php:985 Stack trace: #0 /var/www/html/cacti/lib/data_query.php(106): query_snmp_host() #1 /var/www/html/cacti/lib/api_device.php(1289): run_data_query() #2 /var/www/html/cacti/lib/api_device.php(1131): api_device_update_host_template() #3 /var/www/html/cacti/host.php(273): api_device_save() #4 /var/www/html/cacti/host.php(62): form_save() #5 {main} thrown in file: /var/www/html/cacti/lib/data_query.php on line: 985
Is it to open cacti dashboard via Edge? I just did that it still gives me the same error.
Please if you have iDirect xml files, kindly share with me.
2023-12-23 17:07:30 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-12-23 17:07:30 - ERROR PHP ERROR: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cacti/lib/data_query.php:985 Stack trace: #0 /var/www/html/cacti/lib/data_query.php(106): query_snmp_host() #1 /var/www/html/cacti/lib/api_device.php(1289): run_data_query() #2 /var/www/html/cacti/lib/api_device.php(1131): api_device_update_host_template() #3 /var/www/html/cacti/host.php(273): api_device_save() #4 /var/www/html/cacti/host.php(62): form_save() #5 {main} thrown in file: /var/www/html/cacti/lib/data_query.php on line: 985
Re: Unable to add iDirect NMS Graph
You mistook what I said, open the resource XML with the browser. That would have nothing to do with Cacti.
Before history, there was a paradise, now dust.
Re: Unable to add iDirect NMS Graph
Hello
I have done that, It is opening. Is there anything I should be looking at for (Like an indicator that shows the the XML is wrong).
Please If you do have iDirect template, share with me.
See below
I have done that, It is opening. Is there anything I should be looking at for (Like an indicator that shows the the XML is wrong).
Please If you do have iDirect template, share with me.
See below
Re: Unable to add iDirect NMS Graph
Hello
I have reformatted the whole template(using this link: https://www.freeformatter.com/xml-formatter.html) that I am working with. see attached
It is still giving me this same error
I have reformatted the whole template(using this link: https://www.freeformatter.com/xml-formatter.html) that I am working with. see attached
It is still giving me this same error
- Attachments
-
- New Cacti templates.zip
- (84.63 KiB) Downloaded 86 times
Re: Unable to add iDirect NMS Graph
What do you get from a verbose query?
Before history, there was a paradise, now dust.
Re: Unable to add iDirect NMS Graph
Hello
I cannot get to that stage. The first stage of creating a graph is show below. This is were I am for the past 4 months. I cannot pass this stage so without passing this stage I can't get to verbose query.
see the error:
2023-12-26 21:50:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-12-26 21:50:55 - ERROR PHP ERROR: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cacti/lib/data_query.php:985 Stack trace: #0 /var/www/html/cacti/lib/data_query.php(106): query_snmp_host() #1 /var/www/html/cacti/lib/api_device.php(1289): run_data_query() #2 /var/www/html/cacti/lib/api_device.php(1131): api_device_update_host_template() #3 /var/www/html/cacti/host.php(273): api_device_save() #4 /var/www/html/cacti/host.php(62): form_save() #5 {main} thrown in file: /var/www/html/cacti/lib/data_query.php on line: 985
I cannot get to that stage. The first stage of creating a graph is show below. This is were I am for the past 4 months. I cannot pass this stage so without passing this stage I can't get to verbose query.
see the error:
2023-12-26 21:50:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2023-12-26 21:50:55 - ERROR PHP ERROR: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/cacti/lib/data_query.php:985 Stack trace: #0 /var/www/html/cacti/lib/data_query.php(106): query_snmp_host() #1 /var/www/html/cacti/lib/api_device.php(1289): run_data_query() #2 /var/www/html/cacti/lib/api_device.php(1131): api_device_update_host_template() #3 /var/www/html/cacti/host.php(273): api_device_save() #4 /var/www/html/cacti/host.php(62): form_save() #5 {main} thrown in file: /var/www/html/cacti/lib/data_query.php on line: 985
Re: Unable to add iDirect NMS Graph
Please if there is another way to check the verbose query like command, share with me.
Re: Unable to add iDirect NMS Graph
working working working
Re: Unable to add iDirect NMS Graph
Thank you all for your support. I really appreciate everyone.
Re: Unable to add iDirect NMS Graph
From my end, the conclusion here is that the iDirect template works perfectly with php7.4
For those us that have iDirect (VSAT) that wants to install cacti to graph remote sites, please follow the below steps:
First install php7.4(https://www.digitalocean.com/community/ ... untu-20-04),
When following the below guide make sure to include php7.4 anywhere you see php...like php7.4 php7.4-{}
see the link that I used to setup:
https://linux.how2shout.com/how-to-inst ... -04-20-04/
When you get to install cacti use this command(git clone -b 1.2.x --single-branch https://github.com/Cacti/cacti/)
It worked for me, I believe it will work for you too.
Now I can graph
For those us that have iDirect (VSAT) that wants to install cacti to graph remote sites, please follow the below steps:
First install php7.4(https://www.digitalocean.com/community/ ... untu-20-04),
When following the below guide make sure to include php7.4 anywhere you see php...like php7.4 php7.4-{}
see the link that I used to setup:
https://linux.how2shout.com/how-to-inst ... -04-20-04/
When you get to install cacti use this command(git clone -b 1.2.x --single-branch https://github.com/Cacti/cacti/)
It worked for me, I believe it will work for you too.
Now I can graph
- Attachments
-
- New Cacti templates.zip
- (84.63 KiB) Downloaded 54 times
Who is online
Users browsing this forum: No registered users and 2 guests