traps from cluster

alteest <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All!

I have next problem:

I have cluster with physical ipAddress for each machine and with virtual 
address for cluster. And when i send trap from any machine i receive it 
on destination host as from physical ipAddress, but it's need to receive 
it as from virtal (cluster) address.

Traps V2c, not V1.

I tried in snmp.conf (for example):

clientaddr 192.168.1.1

but i still receive as from physical adress. And it seems works only for 
comman-line applications.

In C code i tryed something like:

    char *agent = "hostfrommynetwork";
    if (agent != NULL) {
        struct hostent *hinfo = gethostbyname(agent);
        *pdu->agent_addr = *((u_long *)(hinfo->h_addr));
    }

But i still receive traps as from physical address.

So, is there way to send traps V2c as from virtual host (the same as in 
V1)?

thanks,

--
alteest.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.