File nagcon-suse_nagios_log.patch of Package nagcon
--- nc.cpp.orig 2010-07-06 13:28:52.000000000 +0200
+++ nc.cpp 2010-07-06 13:29:48.000000000 +0200
@@ -178,7 +178,7 @@
printf("-f file what file to monitor (usuallly:\n");
printf("-F host:port connect to a host for retrieving the status.log information\n");
- printf(" /usr/local/nagios/var/status.log, look for status_file in\n");
+ printf(" /var/lib/nagios/status.dat, look for status_file in\n");
printf(" the nagios.cfg file\n");
printf("-i x check interval (in seconds)\n");
printf("-a list also the services for hosts that are down\n");
@@ -210,7 +210,7 @@
WINDOW *win;
int sw;
- char *status_log = "/usr/local/nagios/var/status.log";
+ char *status_log = "/var/lib/nagios/status.dat";
int interval = 5;
char list_all_problems = 0;
char always_notify = 0;
@@ -297,7 +297,7 @@
}
if (file_mode == 0 && stat(status_log, &statstruct) == -1)
- error_exit("error accessing nagios status.log file! (%s)", status_log);
+ error_exit("error accessing nagios status.dat file! (%s)", status_log);
init_curses();
signal(SIGWINCH, do_resize);