Templates for windows server 2016 and 2019

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

Moderators: Developers, Moderators

eliassal
Cacti User
Posts: 51
Joined: Thu Jan 13, 2022 12:13 pm

Re: Templates for windows server 2016 and 2019

Post by eliassal »

Yes, I amanged to have 2 graphs for windows which are only
myhostwin10 - Broadcast Packates ETH1
myhostwin10 - Broadcast Packates vEthernet (USBVS-ETH),
nothing else.
But still no graphs for windows server

I added $pipes as well but still getting the rror
2022-01-18 20:30:39 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2022-01-18 20:30:39 - ERROR PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /usr/share/cacti/lib/mib_cache.php:359 Stack trace: #0 /usr/share/cacti/lib/snmpagent.php(471): MibCache->update() #1 /usr/share/cacti/poller.php(822): snmpagent_poller_bottom() #2 {main} thrown in file: /usr/share/cacti/lib/mib_cache.php on line: 359
as well as a warning in yellow color
2022-01-18 20:30:10 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
in spite of the fact that my admin is an admin with correct email configuration and not sur where setup notification
copemi
Posts: 13
Joined: Tue Sep 10, 2019 1:11 pm

Re: Templates for windows server 2016 and 2019

Post by copemi »

eliassal wrote: Tue Jan 18, 2022 2:34 pm Yes, I amanged to have 2 graphs for windows which are only
myhostwin10 - Broadcast Packates ETH1
myhostwin10 - Broadcast Packates vEthernet (USBVS-ETH),
nothing else.
But still no graphs for windows server

I added $pipes as well but still getting the rror
2022-01-18 20:30:39 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2022-01-18 20:30:39 - ERROR PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /usr/share/cacti/lib/mib_cache.php:359 Stack trace: #0 /usr/share/cacti/lib/snmpagent.php(471): MibCache->update() #1 /usr/share/cacti/poller.php(822): snmpagent_poller_bottom() #2 {main} thrown in file: /usr/share/cacti/lib/mib_cache.php on line: 359
as well as a warning in yellow color
2022-01-18 20:30:10 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
in spite of the fact that my admin is an admin with correct email configuration and not sur where setup notification
I don't know if this would work for you but on line 359.

Remember create a copy of mib_cache.php

https://github.com/Cacti/cacti/commit/f ... 0fc4e52efb

Then tell me how the logs look
eliassal
Cacti User
Posts: 51
Joined: Thu Jan 13, 2022 12:13 pm

Re: Templates for windows server 2016 and 2019

Post by eliassal »

I did and now I am getting this line in green status
2022-01-18 22:35:10 - SYSTEM STATS: Time:8.5755 Method:cmd.php Processes:1 Threads:1 Hosts:6 HostsPerProcess:6 DataSources:149 RRDsProcessed:143
but then having
2022-01-18 22:33:48 - AUTOM8 [PID: 2950] Network salam.net Thread 5 Finished, 26 IPs Scanned, 2 IPs Responded to Ping, 0 Responded to SNMP, 0 Device Added, 0 Graphs Added to Cacti
2022-01-18 22:33:48 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[826]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:33:48 - ERROR PHP WARNING: Undefined array key "script_path" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:33:48 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[826]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:33:48 - ERROR PHP WARNING: Undefined array key "arg_index" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:33:39 - AUTOM8 WARNING: Automation Rule[Traffic 64 bit Server] for Device[SWITCH] - DQ[SNMP - Interface Statistics] includes a SQL column ifIP that is not found for the Device. Can not continue.

2022-01-18 22:31:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[630]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:31:50 - ERROR PHP WARNING: Undefined array key "script_path" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:31:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[630]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:31:50 - ERROR PHP WARNING: Undefined array key "arg_index" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:31:30 - AUTOM8 [PID: 2934] Network Discover is now running for Subnet Range '1'
2022-01-18 22:31:26 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:2, TotalIssues:12, Time:1.6315
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 67
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 67
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 68
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 68
eliassal
Cacti User
Posts: 51
Joined: Thu Jan 13, 2022 12:13 pm

Re: Templates for windows server 2016 and 2019

Post by eliassal »

Also, I have in the log
022-01-18 22:33:48 - AUTOM8 [PID: 2950] Network salam.net Thread 5 Finished, 26 IPs Scanned, 2 IPs Responded to Ping, 0 Responded to SNMP, 0 Device Added, 0 Graphs Added to Cacti
How do I know which graphs have been added?
copemi
Posts: 13
Joined: Tue Sep 10, 2019 1:11 pm

Re: Templates for windows server 2016 and 2019

Post by copemi »

eliassal wrote: Tue Jan 18, 2022 4:22 pm I did and now I am getting this line in green status
2022-01-18 22:35:10 - SYSTEM STATS: Time:8.5755 Method:cmd.php Processes:1 Threads:1 Hosts:6 HostsPerProcess:6 DataSources:149 RRDsProcessed:143
but then having
2022-01-18 22:33:48 - AUTOM8 [PID: 2950] Network salam.net Thread 5 Finished, 26 IPs Scanned, 2 IPs Responded to Ping, 0 Responded to SNMP, 0 Device Added, 0 Graphs Added to Cacti
2022-01-18 22:33:48 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[826]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:33:48 - ERROR PHP WARNING: Undefined array key "script_path" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:33:48 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[826]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:33:48 - ERROR PHP WARNING: Undefined array key "arg_index" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:33:39 - AUTOM8 WARNING: Automation Rule[Traffic 64 bit Server] for Device[SWITCH] - DQ[SNMP - Interface Statistics] includes a SQL column ifIP that is not found for the Device. Can not continue.

2022-01-18 22:31:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[630]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:31:50 - ERROR PHP WARNING: Undefined array key "script_path" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:31:50 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_automation.php[368]:discoverDevices(), /poller_automation.php[630]:rerunDataQueries(), /poller_automation.php[903]:run_data_query(), /lib/data_query.php[108]:query_script_host(), /lib/data_query.php[647]:CactiErrorHandler())
2022-01-18 22:31:50 - ERROR PHP WARNING: Undefined array key "arg_index" in file: /usr/share/cacti/lib/data_query.php on line: 647
2022-01-18 22:31:30 - AUTOM8 [PID: 2934] Network Discover is now running for Subnet Range '1'
2022-01-18 22:31:26 - SYSTEM DSDEBUG STATS: Type:poller, ChecksPerformed:2, TotalIssues:12, Time:1.6315
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 67
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 67
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 68
2022-01-18 22:31:26 - DSDEBUG Bad Data Found for Data Source ID 68

1.) The status in green color is because everything is correct

2.) Automation I have it disabled because I don't use it, I add the devices manually, I recommend you open another case or wait for someone more experienced to support you with that.

3.) It is possible that the error in data_query.php has to do with automation.

4) Since I don't use Automatation, I couldn't tell you how to see what graphics have been created :(

I hope that the other previous points have been resolved and that you have been able to graph Windows correctly. If so, confirm so this thread can help others.
eliassal
Cacti User
Posts: 51
Joined: Thu Jan 13, 2022 12:13 pm

Re: Templates for windows server 2016 and 2019

Post by eliassal »

Yes in fact, thanks,
it added a printer.
But anyway, even after correction, I dont have all graphs for network interfaces/NICs, especially for the router, all empty graphs, this is the most important device for me
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests