Page 1 of 1
windows snmp is not working
Posted: Thu Nov 12, 2020 2:44 am
by mejokj
Hello,
The nagiosxi version is 5.6.1.4 and snmp wizard for windows is not working it shows the error which is attached. But the snmp walk is working from the nagios server and getting output.
Re: windows snmp is not working
Posted: Thu Nov 12, 2020 12:53 pm
by tgriep
Make sure all of the settings for the SNMP Service is enabled on the Windows system.
Login to the Windows system and go to the Properties for the SNMP Service and click on the Agent Tab.
Check all of the boxes, see the included screen capture.
Apply the change and restart the SNMP service and see if the wizard works on the XI server.
Re: windows snmp is not working
Posted: Mon Nov 16, 2020 8:40 am
by mejokj
Hello,
I have checked these agent option all features are enable.
Re: windows snmp is not working
Posted: Mon Nov 16, 2020 10:13 am
by tgriep
When you run the wizard, make sure you put port 161 in the SNMP Port field and see if that works for you.
If it fails, run this in a root shell.
Then re-run the wizard and them post the output from the shell running the tail command.
Also, run these commands and post the output to the ticket.
Code: Select all
snmpwalk -v2c -c public xxx.xxx.xxx.xxx HOST-RESOURCES-MIB::hrSWRunName
snmpwalk -v2c -c public xxx.xxx.xxx.xxx SNMPv2-SMI::enterprises.77.1.2.3.1.1
snmpwalk -v2c -c public xxx.xxx.xxx.xxx HOST-RESOURCES-MIB::hrStorageDescr
Re: windows snmp is not working
Posted: Mon Nov 23, 2020 12:23 pm
by tgriep
When you run the Windows SNMP Wizard, fill in all of the fields especially the SNMP Port: field.
It looks like port 161 is typed in but it is not so type it in and run the wizard to see if it works.
Re: windows snmp is not working
Posted: Sun Nov 29, 2020 12:41 am
by mejokj
Hello,
I have tried the input the 161 port and it shows the same issue and same logs.
Re: windows snmp is not working
Posted: Mon Nov 30, 2020 10:10 am
by tgriep
Edit this file on the server.
Code: Select all
/usr/local/nagiosxi/html/includes/configwizards/windowssnmp/windowssnmp.inc.php
Change line 52 from
Code: Select all
$port = grab_array_var($inargs, "port", "");
to
Code: Select all
$port = grab_array_var($inargs, "port", "161");
Save the change and restart Apache.
Run the wizard and see if it works.