|
|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
/* write something to the syslog facility */
|
|
|
int write_to_syslog(char *buffer, unsigned long data_type){
|
|
|
-+ static logopen = 0;
|
|
|
++static int logopen = 0;
|
|
|
|
|
|
#ifdef DEBUG0
|
|
|
printf("write_to_syslog() start\n");
|
|
|
@@ -13,7 +13,7 @@
|
|
|
if(!(data_type & syslog_options))
|
|
|
return OK;
|
|
|
+
|
|
|
-+ /* fsl identification */
|
|
|
++ /* OSSP fsl identification */
|
|
|
+ if (!logopen) {
|
|
|
+ openlog("nagios", LOG_NDELAY, LOG_USER);
|
|
|
+ logopen = 1;
|