[ZBX-9855] SNMP process monitoring shows item as Not Supported after the monitored process is restarted Created: 2015 Sep 08 Updated: 2017 May 30 Resolved: 2015 Oct 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.4.6 |
Fix Version/s: | 2.2.11rc1, 2.4.7rc1, 3.0.0alpha3 |
Type: | Incident report | Priority: | Major |
Reporter: | Bulendra Gogoi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | snmp, snmpdynamicindex | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix Server: RHEL 6.6 |
Attachments: | zabbix-2.4.6.patch |
Description |
Monitoring process memory consumption via SNMP using OID HOST-RESOURCES-MIB::hrSWRunPerfMem["index","HOST-RESOURCES-MIB::hrSWRunName", "notepad.exe"] Once the item is setup, it shows correct data in zabbix. Now to reproduce the issue, follow the below steps: 1. Stop the notepad process in the monitored windows machine |
Comments |
Comment by Aleksandrs Saveljevs [ 2015 Sep 08 ] |
In "Administration" -> "General" -> "Other", there is "Refresh unsupported items (in sec)" setting, which is 600 seconds by default. Have you waited long enough for the item to be processed again? |
Comment by Bulendra Gogoi [ 2015 Sep 08 ] |
Yes, I reduced it to 60 seconds. The same check is working fine on Linux. I have tested few times on both the OS |
Comment by Aleksandrs Saveljevs [ 2015 Sep 08 ] |
Thank you. I have tried reproducing the issue using your scenario and this is indeed the case. Server log is as follows: ... 26564:20150908:131341.323 In get_values_snmp() host:'ZBX-9855' addr:'192.168.1.50' num:1 26564:20150908:131341.323 In zbx_snmp_open_session() 26564:20150908:131341.323 SNMP [[email protected]:161] 26564:20150908:131341.323 End of zbx_snmp_open_session() 26564:20150908:131341.323 In zbx_snmp_process_dynamic() 26564:20150908:131341.323 In zbx_snmp_translate() oid:'HOST-RESOURCES-MIB::hrSWRunName' 26564:20150908:131341.323 End of zbx_snmp_translate() oid_translated:'HOST-RESOURCES-MIB::hrSWRunName' 26564:20150908:131341.323 In cache_get_snmp_index() oid:'HOST-RESOURCES-MIB::hrSWRunName' value:'notepad.exe' 26564:20150908:131341.323 End of cache_get_snmp_index():SUCCEED idx:'3452' 26564:20150908:131341.323 In zbx_snmp_get_values() num:1 level:0 26564:20150908:131341.325 zbx_snmp_get_values() snmp_synch_response() status:0 s_snmp_errno:0 errstat:2 mapping_num:1 26564:20150908:131341.325 End of zbx_snmp_get_values():NOTSUPPORTED 26564:20150908:131341.325 End of zbx_snmp_process_dynamic():NOTSUPPORTED 26564:20150908:131341.325 In zbx_snmp_close_session() 26564:20150908:131341.325 End of zbx_snmp_close_session() 26564:20150908:131341.325 getting SNMP values failed: SNMP error: (noSuchName) There is no such variable name in this MIB. 26564:20150908:131341.325 End of get_values_snmp() ... 3452 is Notepad's index before it was stopped, after it was restarted it is 3868, and it is not being detected. |
Comment by Bulendra Gogoi [ 2015 Sep 08 ] |
Thanks a lot for the quick attention. I am doing a POC and this is coming as a roadblock. I would be happy to test the patch if needed. |
Comment by dimir [ 2015 Sep 22 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9855 |
Comment by dimir [ 2015 Sep 22 ] |
Please feel free to test attached patch against 2.4.6. |
Comment by Andris Zeila [ 2015 Sep 28 ] |
Successfully tested |
Comment by dimir [ 2015 Sep 29 ] |
Fixed in pre-2.2.11 (r55825) pre-2.4.7 (r55827), pre-3.0.0 (r55828). |