LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2017, 03:06 AM   #1
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 188

Rep: Reputation: 25
Crazy issue with Nagios Core 4.2.4


Whenever I reboot my the server; the following directory gets deleted:
/usr/local/nagios/var/rw/

Any help with this would be helpful.I installed it via the tar and it works aside from this issue.
 
Old 01-25-2017, 03:35 AM   #2
treemouse
Member
 
Registered: Jan 2017
Posts: 30

Rep: Reputation: Disabled
I don't have any Nagios-specific suggestions for you, but a good general troubleshooting step for "_____ gets deleted at boot" is to make the thing that is being deleted immutable. When a file is immutable, nobody can delete it. Not even root (for root, immutable works a bit like the safety on a gun -- you have to turn it off before you do something, which stops you from doing it accidentally).

To make something immutable, you do "chattr +i /path/to/file" at to make it mutable again, you do "chattr -i /path/to/file".

Unfortunately, with directories, "immutable" doesn't behave quite the same way it does with files - it also stops you from creating new files in the directory. If that is a problem with this directory, then don't make it immutable, make the files in the directory immutable instead, which will still block deletion of the parent directory.

This is not an ideal solution - the ideal solution would be to find out what's doing the deleting and stop it. But this might help with that too -- once you've made the directory or files immutable, give the system a reboot, and then have a detailed comb through of your logs to see if you can see any messages complaining about being unable to delete the directory -- if so, they could point you at whatever is doing the deleting in the first place.
 
1 members found this post helpful.
Old 01-25-2017, 07:10 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by vwtech View Post
Any help with this would be helpful.
Is it plugged in? :P
So where's the "crazy" part?
What OS is it installed on?
What have you read?
Where did you read it?

Did you check /var/log/ for error messages?
You haven't given us much to go on.
Need help? Post details, Not suicide notes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios XI & Nagios Core Integration anjukm Linux - Software 5 09-25-2015 05:26 AM
Nagios Core 3.4 Issue in notification praveen.ks Linux - Server 5 08-17-2013 04:45 PM
crazy network issue aweber1nj Linux - Networking 4 10-16-2005 04:27 PM
crazy weird printing issue shinepuppy Linux - Software 2 05-02-2003 11:48 AM
security issue is driving me crazy safra Linux - Security 10 07-18-2002 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration