Page 1 of 4
SNMP troubles after 5R1.0 upgrade
Posted: Wed Oct 07, 2015 11:38 am
by dlukinski
Hello all
When trying to run Windows SNMP wizard I get "The wizard detected that this server does not have snmpwalk permission on the target host. This will prevent the automatic scan of services and processes and prevent services from running successfully."
- if I am to proceed further, maxbuffer issue would come up for Service/Process SNMP checks
- buffer increased from 5000 default to 10000: helped configuring 5 hosts and came back to this message when I tried to do #6.
- buffer increase from 10000 to 32768 and decrease to 15000: no luck, still same SNMP monitoring issues
- Resulted from 5R1.0 upgrade to the existing install / had to delete scores of hosts and services, believing this was something else (Web-based Upgrade also failed)
Now unable to re-create Hosts and Services SNMP monitoring because of this trouble
---------
Removed 5 hosts and added another 5 hosts (SNMP walk worked), when trying to add #6 I got the same error all over again
---------
Nagios Hyper-V appliance 2 CPU / 2 GB RAM
---------
Increased Hyper-V instance RAM to 4 GB - no luck
Attempted using another OVA-based install (Vmware) to configure SNMP monitoring: same troubles right away after an upgrade to 5R1.0
Same max_mgs_size of 5000. Increased to 10000, reboot - no luck, refuses to ran SNMP walk against the server which worked for Hyper-V
Moderator Note: I have merged your 4 posts into 1. Please edit your previous post if you have new information to add, instead of posting multiple times.
Re: SNMP troubles after 5R1.0 upgrade
Posted: Thu Oct 08, 2015 11:33 am
by jdalrymple
There is a lot of missing information here that we'll need:
dlukinski wrote:SNMP troubles after 5R1.0 upgrade
Upgraded from what version, and what method did you use to upgrade?
dlukinski wrote:- if I am to proceed further, maxbuffer issue would come up for Service/Process SNMP checks
- buffer increased from 5000 default to 10000: helped configuring 5 hosts and came back to this message when I tried to do #6.
- buffer increase from 10000 to 32768 and decrease to 15000: no luck, still same SNMP monitoring issues
What type of device are you monitoring? Are you doing an snmp wizard or an snmpwalk wizard?
dlukinski wrote:Removed 5 hosts and added another 5 hosts (SNMP walk worked), when trying to add #6 I got the same error all over again
Again, what kind of hosts/devices? What kind of wizard? What is different between host 5 and host 6?
You might also find additional clues in /var/log/httpd/error_log
dlukinski wrote:Nagios Hyper-V appliance 2 CPU / 2 GB RAM
Increased Hyper-V instance RAM to 4 GB - no luck
I'm assuming you mean this is the platform that XI is running on? If that's the case this information shouldn't matter.
Re: SNMP troubles after 5R1.0 upgrade
Posted: Thu Oct 08, 2015 12:29 pm
by dlukinski
Devices to monitor: Windows 2008 R2 in all cases / Hyper-V and VMWARE 64-bit appliances used
Windows SNMP wizard used (it appears to attempt snmp-walk in version 5, listing services and processes) errors on ALL Nagios XI installs I upgraded by following your "manual upgrade process" / Web-based upgrades also errored in all 3 cases (2 x OVA VMWARE / 1 x Hyper-V machine supplied by you). One of installs (future Test XI license) had 30+ hosts under monitoring (all Windows 2008 R2) I had to remove monitoring for because all Service/Process monitoring immediately failed with maxbuffer issue.
--------------------------------------------------------------------------------------------------------------------
Suddenly I could run Windows SNMP wizard 2 more times (making it 7 hosts configured and monitoring services), but # 8 attempt fails again: same message about snmp walk.
--------------------------------------------------------------------------------------------------------------------
HTTPD log shows:
error [client with my PC ip used for administration] request failed: URI too long (longer than 8190) - from today, same time stamp as attempt #8, which have also failed to snmpwalk after entering IP
Previous days log have same error in correlation with attempts to SNMP-configure Windows 2008 R2 hosts monitoring
! -Many folks online do not recommend to touch (recompile) Apache to fix this one - !
Re: SNMP troubles after 5R1.0 upgrade
Posted: Thu Oct 08, 2015 12:32 pm
by dlukinski
-
Re: SNMP troubles after 5R1.0 upgrade
Posted: Thu Oct 08, 2015 2:23 pm
by dlukinski
-
Re: SNMP troubles after 5R1.0 upgrade
Posted: Thu Oct 08, 2015 2:36 pm
by dlukinski
-
Re: SNMP troubles after 5R1.0 upgrade
Posted: Fri Oct 09, 2015 12:20 pm
by dlukinski
not many replies from Nagios team on this one.
Lowered max_msg_size back to 5000 (from 10000) and immediately got "Message size exceeded buffer maxMsgSize." against ALL services/processes SNMP monitoring.
Changed back to 10000 and error disappears. "The wizard detected that this server does not have snmpwalk permission on the target host. This will prevent the automatic scan of services and processes and prevent services from running successfully." also persists.
Once again this trouble did not manifest itself in previous release with many, many nodes monitored.
Guys, there is something seriously wrong with your new release you think?
Re: SNMP troubles after 5R1.0 upgrade
Posted: Fri Oct 09, 2015 12:28 pm
by tmcdonald
dlukinski wrote:not many replies from Nagios team on this one.
In regards to this specifically, we have an internal dashboard that displays posts from oldest to newest so we can get to the long-standing issues first. When you "bump" a post or add new information, the age counter gets reset to zero, so from our perspective it looks like you just posted 10 minutes ago. In the future if you have anything to add, please edit your previous post instead of posting more than once in a row. This helps ensure that we get to you in time, and that the post-per-page ratio is kept low. If you look at your original post in this thread I had edited all of your posts into one for this exact reason and left a note.
Re: SNMP troubles after 5R1.0 upgrade
Posted: Fri Oct 09, 2015 12:52 pm
by lgroschen
Could you try the following from your Nagios XI server terminal:
Code: Select all
snmpwalk -v2c -c <community_string> <target_windows_host_IP>
and post the output from the command. If you setup the permission to the windows server correctly it should return a long walk otherwise it should tell you why the walk failed.
Re: SNMP troubles after 5R1.0 upgrade
Posted: Fri Oct 09, 2015 12:52 pm
by ssax
First backup the original file:
Code: Select all
cp /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/windowssnmp.inc.php /tmp/
The replace the file below with the one attached (unzip it first):
Code: Select all
/usr/local/nagiosxi/html/includes/configwizards/windowssnmp/windowssnmp.inc.php
Then run through the wizard again, on the second page where you get the error it should show some values at the very top, please post them here.
Then you can revert to the original file:
Code: Select all
cp /tmp/windowssnmp.inc.php /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/windowssnmp.inc.php
Thank you