Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 26
Crazy issue with Nagios Core 4.2.4

Whenever I reboot my the server; the following directory gets deleted:

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
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
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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.


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 > Forums > Linux Forums > Linux - Software

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

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