All files in var deleted on every reboot?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dspatil7768
Posts: 7
Joined: Thu Jan 19, 2017 7:43 am

All files in var deleted on every reboot?

Post by dspatil7768 »

Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =7&t=40015
In the future, please create a new thread and link to the old one instead of adding on.


I got same problem. After reboot it show error that on config file. Then after creating /nagios/var/rw directory and giving executable permission it works. As mentioned in above replys I did checked my permissions. also chkconfig. Output of chkconfig is given below:
-------------------------------------------------------------------------------------------------------
[root@node1 rw]#chkconfig
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
nagios 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
--------------------------------------------------------------------------------------------------------
Is there any solution?

Thank you,
Devendra
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: All files in var deleted on every reboot?

Post by rkennedy »

Can you please show us the instructions / commands you used to install?

Also, what is the output of getenforce

Lastly, what OS / version are you running?
Former Nagios Employee
dspatil7768
Posts: 7
Joined: Thu Jan 19, 2017 7:43 am

Re: All files in var deleted on every reboot?

Post by dspatil7768 »

- I followed Techmint site: Nagios 4.2.0 Released – Install on RHEL/CentOS 7.x/6.x/5.x and Fedora 24-19

- output of getenforce - [root@node1 ~]# getenforce
- Disabled

- Operating System: Centos 7.2 [root@node1 ~]# uname -r
- 3.10.0-327.36.3.el7.x86_64
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: All files in var deleted on every reboot?

Post by dwhitfield »

It's best to follow our instructions: https://support.nagios.com/kb/article.php?id=96

Is there a reason you are using chkconfig instead of systemd?
Locked