Windows SNMP wizard broken
Posted: Mon Aug 26, 2024 5:21 am
Hi,
I'm on the Nagios XI 2024R1.2, Windows SNMP wizard version: 2.0.0, Ubuntu 20.04.6 LTS (up to date).
Getting this error immediately after starting the wizard, doesn't matter if I put a new or existing host:
I found interesting errors in the apache log:
I'm on the Nagios XI 2024R1.2, Windows SNMP wizard version: 2.0.0, Ubuntu 20.04.6 LTS (up to date).
Getting this error immediately after starting the wizard, doesn't matter if I put a new or existing host:
SNMP from the server works just fine, no issues at all, running snmpwalk towards hosts from the server via ssh also works without issues.This server does not respond to SNMP requests (not snmp, or possibly wrong auth).
I found interesting errors in the apache log:
==> /var/log/apache2/error.log <==
[Mon Aug 26 10:09:58.705709 2024] [php7:warn] [pid 503763] [client 192.168.11.1:53382] PHP Warning: snmp2_real_walk(): No response from 192.168.11.6 in /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/windowssnmp.inc.php on line 163, referer: https://XXXX/nagiosxi/config/monitoringwizard.php
[Mon Aug 26 10:09:58.734720 2024] [php7:notice] [pid 503763] [client 192.168.11.1:53382] PHP Notice: Undefined variable: selectedhostconfig in /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/steps/step1.php on line 1, referer: https://XXXX/nagiosxi/config/monitoringwizard.php
[Mon Aug 26 10:09:58.734965 2024] [php7:notice] [pid 503763] [client 192.168.11.1:53382] PHP Notice: Undefined variable: cfg in /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/steps/step1.php on line 187, referer: https://XXXX/nagiosxi/config/monitoringwizard.php
[Mon Aug 26 10:09:58.735011 2024] [php7:notice] [pid 503763] [client 192.168.11.1:53382] PHP Notice: Trying to access array offset on value of type null in /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/steps/step1.php on line 187, referer: https://XXXX/nagiosxi/config/monitoringwizard.php
[Mon Aug 26 10:09:58.735165 2024] [php7:warn] [pid 503763] [client 192.168.11.1:53382] PHP Warning: parse_ini_file(/var/xi-sys.cfg): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/steps/step1.php on line 188, referer: https://XXXX/nagiosxi/config/monitoringwizard.php
[Mon Aug 26 10:09:58.735198 2024] [php7:notice] [pid 503763] [client 192.168.11.1:53382] PHP Notice: Trying to access array offset on value of type bool in /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/steps/step1.php on line 192, referer: https://XXXX/nagiosxi/config/monitoringwizard.php
[Mon Aug 26 10:09:58.735276 2024] [php7:notice] [pid 503763] [client 192.168.11.1:53382] PHP Notice: Trying to access array offset on value of type bool in /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/steps/step1.php on line 192, referer: https://XXXX/nagiosxi/config/monitoringwizard.php
==> /var/log/apache2/access.log <==
192.168.11.1 - - [26/Aug/2024:10:09:58 +0000] "POST /nagiosxi/config/monitoringwizard.php HTTP/1.1" 200 13610 "https://XXXX/nagiosxi/config/monitoringwizard.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0"
192.168.11.1 - - [26/Aug/2024:10:09:58 +0000] "GET /nagiosxi/includes/components/usermacros/?mode=query&raw=0 HTTP/1.1" 200 677 "https://XXXX/nagiosxi/config/monitoringwizard.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0"