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

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 »

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?
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 »

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
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 »

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.
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

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
scpcerror-edge.png
scpcerror-edge.png (41.5 KiB) Viewed 2043 times
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

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
Attachments
New Cacti templates.zip
(84.63 KiB) Downloaded 86 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 »

What do you get from a verbose query?
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 »

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.
Screenshot 2023-12-26 215109.png
Screenshot 2023-12-26 215109.png (149.93 KiB) Viewed 2019 times
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
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Please if there is another way to check the verbose query like command, share with me.
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

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

Re: Unable to add iDirect NMS Graph

Post by Atochi »

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

Re: Unable to add iDirect NMS Graph

Post by Atochi »

Thank you all for your support. I really appreciate everyone.
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

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
graphs.png
graphs.png (28.11 KiB) Viewed 990 times
Attachments
New Cacti templates.zip
(84.63 KiB) Downloaded 54 times
Atochi
Posts: 39
Joined: Fri Dec 08, 2023 10:17 am

Re: Unable to add iDirect NMS Graph

Post by Atochi »

You can reach via tochukwuugwuanyi@gmail.com

Thank You.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests