Page 1 of 1

ERROR:Process name table : Message size exceeded buffer max

Posted: Thu Mar 01, 2012 10:46 am
by jglass
Hello:

I'm using the SNMP wizard for Windows Servers. Services for disk, memory utilization are working; Services to monitor Windows Services or Processes fail with this error:
ERROR: Process name table : Message size exceeded buffer maxMsgSize.

I found and tried this: In case you get a "ERROR: running table : Message size exceeded maxMsgSize" error, you may need to adjust the maxMsgSize, i.e. the maximum size of snmp message with the -o option. Try a value with the -o AND the -v option : the script will output the actual value so you can add some octets to it with the -o option.

Here is my monitor command:
check_xi_service_snmp_win_service! -C public --v2c -n 'ServiceName'!!!!!!!

I added the -o option, then the -o -v options together. Also, used -o 5000:
check_xi_service_snmp_win_service! -C public --v2c -n 'ServiceName' -o 5000 -v!!!!!!!
When using this string the Error code is: Alarm at 15.

I'm not sure whether I'm adding the -o and -v options is the correct order OR if this is really the right solution. I have tried placing it in several locations (before service name, after service name, after the !!!!!!!.

Anyone have any idea how to correct this?

Thank you,

Jason

Re: ERROR:Process name table : Message size exceeded buffer

Posted: Thu Mar 01, 2012 2:28 pm
by lmiltchev
Can you try to run the check in the command line and show us the actual command that you are running, and the output? For example:

Code: Select all

cd /usr/local/nagios/libexec
./check_snmp_process.pl -H 192.168.X.XXX  -C public --v2c -n 'explorer.exe'
1 process matching explorer.exe (> 0)

Re: ERROR:Process name table : Message size exceeded buffer

Posted: Thu Mar 01, 2012 3:52 pm
by jglass
Here it is. Pretty much the same as the GUI is reporting:

[root@localhost libexec]# ./check_snmp_win.pl -H 172.x.x.x -C public --v2c -n 'NISvc'
ERROR: Process name table : Message size exceeded buffer maxMsgSize.

I googled the error, but didnt find anything that helped.

-Jason

Re: ERROR:Process name table : Message size exceeded buffer

Posted: Thu Mar 01, 2012 5:57 pm
by lmiltchev
I was able to recreate this issue and I've been playing around with it for a while. I *believe* I have a solution for you. Open the "check_snmp_win.pl" in a text editor:

Code: Select all

vi /usr/local/nagios/libexec/check_snmp_win.pl
and find this line:

Code: Select all

$session->max_msg_size(5000)
Try increasing the limit - I doubled it to 10000 on my test machine. Now all of my checks work.

Re: ERROR:Process name table : Message size exceeded buffer

Posted: Fri Mar 02, 2012 9:51 am
by jglass
That got it! Thank you for the help -- I'm sure I'll be able to fix other issues now, as I become more fimiliar with finding the right attributes in the lib files.

Thanks,
Jason

Re: ERROR:Process name table : Message size exceeded buffer

Posted: Fri Mar 02, 2012 10:54 am
by scottwilkerson
This one seems to be growing...

I adjusted the wizard so that it now has 10000 as the default.

Re: ERROR:Process name table : Message size exceeded buffer

Posted: Fri Mar 02, 2012 11:02 am
by lmiltchev
I'm glad I could help, Jason!