windows snmp is not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

windows snmp is not working

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: windows snmp is not working

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: windows snmp is not working

Post by mejokj »

Hello,

I have checked these agent option all features are enable.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: windows snmp is not working

Post 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.

Code: Select all

tail -f /var/log/httpd/*_log
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: windows snmp is not working

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: windows snmp is not working

Post by mejokj »

Hello,

I have tried the input the 161 port and it shows the same issue and same logs.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: windows snmp is not working

Post 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.

Code: Select all

service httpd restart.
Run the wizard and see if it works.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked