X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnotify_nagios.c;h=bea0faad3079093fbef68c77884014b5e6b5b375;hb=be126043c2be20399d7670fe194645292018bde0;hp=c95f7cb99bf1ab139670a85ccd1e2b51c603d5ff;hpb=5ff74d56067ac64db801df5184eb8b97f4b2b645;p=collectd.git diff --git a/src/notify_nagios.c b/src/notify_nagios.c index c95f7cb9..bea0faad 100644 --- a/src/notify_nagios.c +++ b/src/notify_nagios.c @@ -141,7 +141,7 @@ static int nagios_notify(const notification_t *n, /* {{{ */ break; } - ssnprintf(buffer, sizeof(buffer), + snprintf(buffer, sizeof(buffer), "[%.0f] PROCESS_SERVICE_CHECK_RESULT;%s;%s;%d;%s\n", CDTIME_T_TO_DOUBLE(n->time), n->host, &svc_description[1], code, n->message);