Search found 5 matches

by nuclear
Mon Aug 29, 2016 3:50 pm
Forum: Open Source Nagios Projects
Topic: All files in var deleted on every reboot?
Replies: 10
Views: 4908

Re: All files in var deleted on every reboot?

More testing....

Recompiled nagios with --prefix=/opt/nagios/ and /opt/nagios/var/* are intact after reboots! So what part of the OS would be doing such a thing in /usr/local/nagios/var only?
by nuclear
Mon Aug 29, 2016 3:47 pm
Forum: Open Source Nagios Projects
Topic: All files in var deleted on every reboot?
Replies: 10
Views: 4908

Re: All files in var deleted on every reboot?

Ok, I did some additional testing.... 1. Deleted /usr/local/nagios/var (what does it hurt since the contents were being deleted at reboot anyway?) 2. Reboot 3. Login and ll /usr/local/nagios and there is var back from the dead. Note time is the same as the reboot. root@nms~# ll /usr/local/nagios/ to...
by nuclear
Mon Aug 29, 2016 3:39 pm
Forum: Open Source Nagios Projects
Topic: All files in var deleted on every reboot?
Replies: 10
Views: 4908

Re: All files in var deleted on every reboot?

Here is the init.d file. I have not modified since make.
by nuclear
Mon Aug 29, 2016 1:31 pm
Forum: Open Source Nagios Projects
Topic: All files in var deleted on every reboot?
Replies: 10
Views: 4908

Re: All files in var deleted on every reboot?

This is likely an issue with your init script, nagios config file, permissions, filesystem, or a combination of these factors. Do you have .../var set up as a RAM disk by chance? That's what I thought... but no. root@nms/usr/local/nagios# ls -alh total 24K drwxr-xr-x. 9 root root 4.0K Aug 29 15:55 ...
by nuclear
Mon Aug 29, 2016 11:49 am
Forum: Open Source Nagios Projects
Topic: All files in var deleted on every reboot?
Replies: 10
Views: 4908

All files in var deleted on every reboot?

Centos 7 Nagios 4 Everything in /usr/local/nagios/var/ is deleted after every reboot? Anybody know what is going on here? I have to do this after every reboot to get nagios restarted. root@nms/usr/local/nagios/var# mkdir -p spool/checkresults root@nms/usr/local/nagios/var# mkdir -p rw root@nms/usr/l...