summaryrefslogtreecommitdiff
path: root/daemon/snmp-engine.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-08-06 00:08:45 +0000
committerStef Walter <stef@memberwebs.com>2006-08-06 00:08:45 +0000
commit76e08b021fd334fa4f415c9765a559252c399499 (patch)
tree74964694d3a4d84c92e88f6fdf209eb93f66a65d /daemon/snmp-engine.c
parenta2d9a66d8b56a629b44ad23eca6929680a75f042 (diff)
Make sure that communities and/or versions are not inadventently mixed up.
Diffstat (limited to 'daemon/snmp-engine.c')
-rw-r--r--daemon/snmp-engine.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/daemon/snmp-engine.c b/daemon/snmp-engine.c
index c2afbe9..1d1b64a 100644
--- a/daemon/snmp-engine.c
+++ b/daemon/snmp-engine.c
@@ -245,7 +245,7 @@ send_req(rb_request* req, mstime when)
{
if(req->sent <= 1)
rb_messagex(LOG_DEBUG, "skipping snmp request: host not resolved: %s",
- req->host->name);
+ req->host->hostname);
return;
}
@@ -259,9 +259,9 @@ send_req(rb_request* req, mstime when)
ret = sendto(snmp_socket, snmp_buffer, b.asn_ptr - snmp_buffer, 0,
&SANY_ADDR(req->host->address), SANY_LEN(req->host->address));
if(ret == -1)
- rb_message(LOG_ERR, "couldn't send snmp packet to: %s", req->host->name);
+ rb_message(LOG_ERR, "couldn't send snmp packet to: %s", req->host->hostname);
else
- rb_messagex(LOG_DEBUG, "sent request #%d to: %s", req->id, req->host->name);
+ rb_messagex(LOG_DEBUG, "sent request #%d to: %s", req->id, req->host->hostname);
}
}
@@ -619,7 +619,7 @@ resolve_cb(int ecode, struct addrinfo* ai, void* arg)
if(ecode)
{
- rb_messagex(LOG_WARNING, "couldn't resolve hostname: %s: %s", host->name,
+ rb_messagex(LOG_WARNING, "couldn't resolve hostname: %s: %s", host->hostname,
gai_strerror(ecode));
return;
}
@@ -630,7 +630,7 @@ resolve_cb(int ecode, struct addrinfo* ai, void* arg)
host->last_resolved = server_get_time();
host->is_resolved = 1;
- rb_messagex(LOG_DEBUG, "resolved host: %s", host->name);
+ rb_messagex(LOG_DEBUG, "resolved host: %s", host->hostname);
}
static int
@@ -648,8 +648,8 @@ resolve_timer(mstime when, void* arg)
if(when - host->resolve_interval > host->last_resolve_try)
{
/* Automatically strips port number */
- rb_messagex(LOG_DEBUG, "resolving host: %s", host->name);
- async_resolver_queue(host->name, "161", resolve_cb, host);
+ rb_messagex(LOG_DEBUG, "resolving host: %s", host->hostname);
+ async_resolver_queue(host->hostname, "161", resolve_cb, host);
host->last_resolve_try = when;
}