Hi
when i set source IP, zabbix is unable to start any SNMP sessions
I believe this is the section
#ifdef HAVE_SNMP_SESSION_LOCALNAME
if (NULL != CONFIG_SOURCE_IP)
session.localname = CONFIG_SOURCE_IP;
#endif
SOCK_STARTUP;
if (NULL == (ss = snmp_open(&session)))
{
SOCK_CLEANUP;
zbx_snprintf(err, MAX_STRING_LEN, "Cannot open snmp session");
}
in zabbix/src/zabbix_server/poller/checks_snmp.c
everything works well when i don't set the source address.
reason i need source address is zabbix was on another machine and is now merged into a new machine.
all the firewall rules and agent configs have been set to the old address !
when i set source IP, zabbix is unable to start any SNMP sessions
I believe this is the section
#ifdef HAVE_SNMP_SESSION_LOCALNAME
if (NULL != CONFIG_SOURCE_IP)
session.localname = CONFIG_SOURCE_IP;
#endif
SOCK_STARTUP;
if (NULL == (ss = snmp_open(&session)))
{
SOCK_CLEANUP;
zbx_snprintf(err, MAX_STRING_LEN, "Cannot open snmp session");
}
in zabbix/src/zabbix_server/poller/checks_snmp.c
everything works well when i don't set the source address.
reason i need source address is zabbix was on another machine and is now merged into a new machine.
all the firewall rules and agent configs have been set to the old address !

Comment