W32-CPU Statistics Error while creating graph

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
srik
Posts: 1
Joined: Fri Jun 14, 2024 6:52 am

W32-CPU Statistics Error while creating graph

Post by srik »

Cacti Version : 1.2.26.

We downloaded windows template using below link
https://forums.cacti.net/viewtopic.php?t=29832

Seeing below error while creating a graph on the machine.

Total: 0.000000, Delta: 0.000000, Found data query XML file at 'C:/Apache24/htdocs/cacti/resource/snmp_queries/snmp_informant_cpu.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [67].
Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.000000, Delta: 0.000000, <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
Total: 0.090000, Delta: 0.090000, ERROR: Data Query returned no indexes.


2024-06-14 04:54:12 - CMDPHP PHP ERROR Backtrace: (C:\Apache24\htdocs\cacti\host.php[126]:host_reload_query(), C:\Apache24\htdocs\cacti\host.php[624]:run_data_query(), C:\Apache24\htdocs\cacti\lib\data_query.php[110]:query_script_host(), C:\Apache24\htdocs\cacti\lib\data_query.php[688]:get_script_query_path(), C:\Apache24\htdocs\cacti\lib\data_query.php[2362]:substitute_script_query_path(), C:\Apache24\htdocs\cacti\lib\variables.php[265]:str_replace(), CactiErrorHandler())
2024-06-14 04:54:12 - ERROR PHP DEPRECATED: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in file: C:\Apache24\htdocs\cacti\lib\variables.php on line: 265
2024-06-14 04:54:12 - CMDPHP PHP ERROR WARNING Backtrace: (C:\Apache24\htdocs\cacti\host.php[126]:host_reload_query(), C:\Apache24\htdocs\cacti\host.php[624]:run_data_query(), C:\Apache24\htdocs\cacti\lib\data_query.php[110]:query_script_host(), C:\Apache24\htdocs\cacti\lib\data_query.php[688]:CactiErrorHandler())
2024-06-14 04:54:12 - ERROR PHP WARNING: Undefined array key "script_path" in file: C:\Apache24\htdocs\cacti\lib\data_query.php on line: 688
2024-06-14 04:54:12 - CMDPHP PHP ERROR WARNING Backtrace: (C:\Apache24\htdocs\cacti\host.php[126]:host_reload_query(), C:\Apache24\htdocs\cacti\host.php[624]:run_data_query(), C:\Apache24\htdocs\cacti\lib\data_query.php[110]:query_script_host(), C:\Apache24\htdocs\cacti\lib\data_query.php[688]:CactiErrorHandler())
2024-06-14 04:54:12 - ERROR PHP WARNING: Undefined array key "arg_index" in file: C:\Apache24\htdocs\cacti\lib\data_query.php on line: 688
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: W32-CPU Statistics Error while creating graph

Post by macan »

windows template is part of cacti, you don't need install templates.
It seems that you are using old template which has problem with php 8.x
Let the Cacti grow!
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: W32-CPU Statistics Error while creating graph

Post by TheWitness »

Hey Petr,

I think we need to log this though.

Sriko,

Can you upload the device template and any scripts/resource files?
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests