[ZBX-11537] SNMP Cannot connect to "x.x.x.x" No SecurityNam specified Created: 2016 Nov 29  Updated: 2017 Oct 23  Resolved: 2017 Oct 23

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.2.1
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: salim nouh Assignee: Unassigned
Resolution: Commercial support required Votes: 0
Labels: items
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ZABBIX 3.2 ( AVAYA SMGR ).


Attachments: File Config-ZABBIX.docx     File log-zabbix.rar     PNG File screenshot-1.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png     Text File zabbix_server.log     File zabbix_server.log.old    

 Description   

Hello;

We have upgrade ZABBIX from 2.2.6 version to 3.2 version.

We received a lot of alertes about two server ( cannot SNMP ).

The error is : Cannot connect to "x.x.x.x" No SecurityNam specified

We have check Login + password security name and we found that exist.

Nom
Type agent SNMPv3
Clé : sysUpTime
Interface hôte
OID SNMP : SNMPv2-MIB::sysUpTime.0
Nom de contexte
Nom de la sécurité : {$SNMP_USERNAME}

When i type snmpwalk -V 1c -c pasword X.X.X.X i have :

NET-SNMP version: 5.5



 Comments   
Comment by Aleksandrs Saveljevs [ 2016 Nov 29 ]

Could you please show screenshots of the corresponding item configuration and "Inherited and host macros" in "Macros" tab of host configuration?

Comment by salim nouh [ 2016 Nov 29 ]

Hello Aleksandrs Saveljevs;

There is configuration of serveur :

Thank you very Much :

Comment by Aleksandrs Saveljevs [ 2016 Nov 29 ]

Thank you! Could you please show some DebugLevel=4 log for a poller where this item is processed (remember that you can change logging level at runtime, no need to restart the server: http://blog.zabbix.com/zabbix-2-4-features-part-6-runtime-loglevel-changing/3653/ )?

Comment by salim nouh [ 2016 Nov 29 ]

Hello Aleksandrs Saveljevs;

this is logs zabbix.
Nam of server is EUR-SYS.
Error SNMP : Cannot connect to "10.118.126.91:161": No securityName specified.

The upgrade has made at 24/11 17H
thank you again.

Best regards
Salim

Comment by salim nouh [ 2016 Nov 29 ]

The error is too for INTUITY_AUDIX_Rouen ( the same problem ).

thank you again

Comment by salim nouh [ 2016 Nov 29 ]

Hello,

This is logs on level 4.

The alerte received is :

Sent: mardi 29 novembre 2016 17:46
To:
Subject: PROBLEM: Cannot SNMP to EUR-SYS

Trigger: Cannot SNMP to EUR-SYS
Trigger status: PROBLEM
Trigger severity: Disaster
Trigger URL:

Item values:

1. Device uptime (EUR-SYS:sysUpTime): 65 days, 05:27:29.

Best regards
Salim

Comment by salim nouh [ 2016 Nov 30 ]

Hello Aleksandrs Saveljevs;

Have you need more information please in order to help us to resolve our problem please ?

thank you for your help.

best regards
salim

Comment by Aleksandrs Saveljevs [ 2016 Dec 05 ]

If we look at zabbix_server.log file, then it fails with this error on the following items:

  9694:20161129:175049.846 In get_values()
  9694:20161129:175049.846 In DCconfig_get_poller_items() poller_type:1
  9694:20161129:175049.846 End of DCconfig_get_poller_items():1
  9694:20161129:175049.846 In substitute_key_macros() data:'hrMemoryDescr'
  9694:20161129:175049.846 End of substitute_key_macros():SUCCEED data:'hrMemoryDescr'
  9694:20161129:175049.846 In substitute_simple_macros() data:'161'
  9694:20161129:175049.846 In substitute_simple_macros() data:EMPTY
  9694:20161129:175049.846 In substitute_simple_macros() data:'avaya123'
  9694:20161129:175049.846 In substitute_simple_macros() data:'avaya123'
  9694:20161129:175049.846 In substitute_simple_macros() data:EMPTY
  9694:20161129:175049.846 In substitute_simple_macros() data:EMPTY
  9694:20161129:175049.846 In substitute_key_macros() data:'discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]'
  9694:20161129:175049.846 In substitute_simple_macros() data:'{#SNMPVALUE}'
  9694:20161129:175049.846 End substitute_simple_macros() data:'{#SNMPVALUE}'
  9694:20161129:175049.846 End of substitute_key_macros():SUCCEED data:'discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]'
  9694:20161129:175049.846 In get_values_snmp() host:'EUR-SYS_StDenis' addr:'10.118.126.91' num:1
  9694:20161129:175049.846 In zbx_snmp_open_session()
  9694:20161129:175049.872 SNMPv3 [@10.118.126.91:161]
  9694:20161129:175049.872 End of zbx_snmp_open_session()
  9694:20161129:175049.872 In zbx_snmp_process_discovery()
  9694:20161129:175049.872 In zbx_snmp_translate() oid:'HOST-RESOURCES-MIB::hrStorageDescr'
  9694:20161129:175049.872 End of zbx_snmp_translate() oid_translated:'HOST-RESOURCES-MIB::hrStorageDescr'
  9694:20161129:175049.872 In zbx_snmp_walk() type:6 oid:'HOST-RESOURCES-MIB::hrStorageDescr' bulk:1
  9694:20161129:175049.873 zbx_snmp_walk() snmp_synch_response() status:1 s_snmp_errno:-27 errstat:-1 max_vars:73
  9694:20161129:175049.873 End of zbx_snmp_walk():NETWORK_ERROR
  9694:20161129:175049.873 End of zbx_snmp_process_discovery():NETWORK_ERROR
  9694:20161129:175049.873 In zbx_snmp_close_session()
  9694:20161129:175049.873 End of zbx_snmp_close_session()
  9694:20161129:175049.873 getting SNMP values failed: Cannot connect to "10.118.126.91:161": No securityName specified.
  9694:20161129:175049.873 End of get_values_snmp()
  9694:20161129:175049.873 In deactivate_host() hostid:10096 itemid:26068 type:6
  9694:20161129:175049.873 query [txnlev:1] [begin;]
  9694:20161129:175049.873 query [txnlev:1] [update hosts set snmp_errors_from=1480438249,snmp_disable_until=1480438264 where hostid=10096]
  9694:20161129:175049.874 query [txnlev:1] [commit;]
  9694:20161129:175049.874 SNMP agent item "hrMemoryDescr" on host "EUR-SYS_StDenis" failed: first network error, wait for 15 seconds
  9694:20161129:175049.874 deactivate_host() errors_from:1480438249 available:1
  9694:20161129:175049.874 End of deactivate_host()
  9694:20161129:175049.874 End of get_values():1
  9695:20161129:175106.859 In get_values()
  9695:20161129:175106.859 In DCconfig_get_poller_items() poller_type:1
  9695:20161129:175106.859 End of DCconfig_get_poller_items():1
  9695:20161129:175106.859 In substitute_key_macros() data:'hrMemoryDescr'
  9695:20161129:175106.859 End of substitute_key_macros():SUCCEED data:'hrMemoryDescr'
  9695:20161129:175106.859 In substitute_simple_macros() data:'161'
  9695:20161129:175106.859 In substitute_simple_macros() data:EMPTY
  9695:20161129:175106.859 In substitute_simple_macros() data:'avaya123'
  9695:20161129:175106.859 In substitute_simple_macros() data:'avaya123'
  9695:20161129:175106.859 In substitute_simple_macros() data:EMPTY
  9695:20161129:175106.859 In substitute_simple_macros() data:EMPTY
  9695:20161129:175106.859 In substitute_key_macros() data:'discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]'
  9695:20161129:175106.859 In substitute_simple_macros() data:'{#SNMPVALUE}'
  9695:20161129:175106.859 End substitute_simple_macros() data:'{#SNMPVALUE}'
  9695:20161129:175106.859 End of substitute_key_macros():SUCCEED data:'discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]'
  9695:20161129:175106.859 In get_values_snmp() host:'INTUITY_AUDIX_Rouen' addr:'10.150.18.5' num:1
  9695:20161129:175106.859 In zbx_snmp_open_session()
  9695:20161129:175106.883 SNMPv3 [@10.150.18.5:161]
  9695:20161129:175106.883 End of zbx_snmp_open_session()
  9695:20161129:175106.883 In zbx_snmp_process_discovery()
  9695:20161129:175106.883 In zbx_snmp_translate() oid:'HOST-RESOURCES-MIB::hrStorageDescr'
  9695:20161129:175106.883 End of zbx_snmp_translate() oid_translated:'HOST-RESOURCES-MIB::hrStorageDescr'
  9695:20161129:175106.883 In zbx_snmp_walk() type:6 oid:'HOST-RESOURCES-MIB::hrStorageDescr' bulk:1
  9695:20161129:175106.888 zbx_snmp_walk() snmp_synch_response() status:1 s_snmp_errno:-27 errstat:-1 max_vars:120
  9695:20161129:175106.888 End of zbx_snmp_walk():NETWORK_ERROR
  9695:20161129:175106.888 End of zbx_snmp_process_discovery():NETWORK_ERROR
  9695:20161129:175106.888 In zbx_snmp_close_session()
  9695:20161129:175106.888 End of zbx_snmp_close_session()
  9695:20161129:175106.888 getting SNMP values failed: Cannot connect to "10.150.18.5:161": No securityName specified.
  9695:20161129:175106.888 End of get_values_snmp()
  9695:20161129:175106.888 In deactivate_host() hostid:10106 itemid:26069 type:6
  9695:20161129:175106.888 query [txnlev:1] [begin;]
  9695:20161129:175106.888 query [txnlev:1] [update hosts set snmp_errors_from=1480438266,snmp_disable_until=1480438281 where hostid=10106]
  9695:20161129:175106.888 query [txnlev:1] [commit;]
  9695:20161129:175106.888 SNMP agent item "hrMemoryDescr" on host "INTUITY_AUDIX_Rouen" failed: first network error, wait for 15 seconds
  9695:20161129:175106.888 deactivate_host() errors_from:1480438266 available:1
  9695:20161129:175106.888 End of deactivate_host()
  9695:20161129:175106.888 End of get_values():1

Based on this log, it seems that only two hosts are affected: "EUR-SYS_StDenis" and "INTUITY_AUDIX_Rouen". On those, these are not regular items that fail with this error, but LLD rules with key "discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]". Could you please check their configuration?

Comment by salim nouh [ 2016 Dec 05 ]

Thank you Aleksandrs Saveljevs for your analyze;

If i understood, the problem is on LLD rules and we should check that.

I asked if you can explain us for how check that please ? else i talk to our ingineer about that.

Thank you very much.

Best regards
Salim

Comment by Aleksandrs Saveljevs [ 2016 Dec 05 ]

Doing the same screenshots as you posted before for these LLD rules and host macros could be enough.

Comment by salim nouh [ 2017 Jan 10 ]

Hello Aleksandrs ;

I hope you are fine ;

1)
I attached screenshot of Zabbix config as demanded;

2)

Can I ask you help about Mysql on ZABBIX server please ?

Our customer has made a security scan and found a faille on port 3306 on MYSQL and want to correct that.

ZABBIX and Mysql ( Database ) was installed on the same server and we have only one server ZABBIX.

Can you please confirmed us if we can block this port please ? if we can do that, we can have process using ZABBIX Web Page ?

Thank you very much for your Help.

Best regards
Salim

Comment by salim nouh [ 2017 Jan 10 ]

Hello;

I send you Macro config of server Eur-SYS and INTUITY who has problem.

I ask if you can check config using a remote session please using WebEx.

I 'm available.

Thank you for your Help.

best regards
Salim

Comment by Pedro Paulo Silva Gonçalves [ 2017 Feb 17 ]

Hi all,

I'm having the same problem, I'm using Zabbix server 3.2 + CentOS 7
I have a disk discovery by snmp, for windows and linux, as I'm not running.
The LLD and regular expression settings are correct, but I can not seem to collect information from any assets that use this LLD.
When I shoot the snmpwwalk it brings the result normally.

can anybody help me?

I removed this information from the log as an example.

18700:20170216:144230.588 discovery rule [459503][SERVER:hrStorageDescr] became supported
18666:20170216:144230.612 discovery rule [459937][SERVER:hrStorageDescr] became supported
18696:20170216:144230.767 discovery rule [460700][SERVER:hrStorageDescr] became supported
18676:20170216:144231.302 discovery rule [460889][SERVER:hrStorageDescr] became supported
18662:20170216:144231.566 discovery rule [460420][SERVER:hrStorageDescr] became supported
18650:20170216:152256.229 SNMP agent item "hrStorageDescr" on host "XXXXXXXX" failed: first network error, wait for 15 seconds
18649:20170217:032029.570 SNMP agent item "hrStorageDescr" on host " SERVER " failed: first network error, wait for 15 seconds

snmpwalk -v 2c -c 'community.' XXXXXXXX HOST-RESOURCES-MIB::hrStorage

HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 20881407
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 262136
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 65528
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 6123436
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 45358
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 42525

Generated at Tue Jun 03 18:00:31 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.