+int logfile_notification (const notification_t *n)
+{
+ char msg[1024] = "";
+ int status;
+
+ status = snprintf (msg, sizeof (msg), "Notification: %s: message = %s, "
+ "host = %s",
+ (n->severity == NOTIF_FAILURE) ? "FAILURE"
+ : ((n->severity == NOTIF_WARNING) ? "WARNING"
+ : ((n->severity == NOTIF_OKAY) ? "OKAY" : "UNKNOWN")),
+ n->message, n->host);
+ msg[sizeof (msg) - 1] = '\0';
+
+ logfile_print (msg, n->time);
+
+ return (0);
+} /* int logfile_notification */
+