Page 1 of 1
Nagios storing check files in /tmp?
Posted: Mon Oct 24, 2011 6:57 am
by cwscribner
Hi all.
The title pretty much explains it. Nagios is storing check files in the /tmp directory which seems odd to me...shouldn't they be stored somewhere in /usr/local/nagios? Attached is the dir output.
Re: Nagios storing check files in /tmp?
Posted: Mon Oct 24, 2011 9:19 am
by mguthrie
There is one of the subsystem processes for XI that writes some check results to the /tmp directory. I forget which one exactly that's doing it, but if you want I can ask our lead developer when he gets back. I do know that it's an XI-specific process, not the Core engine that's writing to that directory.
Re: Nagios storing check files in /tmp?
Posted: Mon Oct 24, 2011 9:25 am
by cwscribner
Is there any harm in removing those files? Is there a way to have XI store them elsewhere?
Re: Nagios storing check files in /tmp?
Posted: Mon Oct 24, 2011 9:34 am
by mguthrie
The files get auto-cleaned every few seconds, but I should probably find out what is using them before I suggest cleaning them manually ; )
I'll do some snooping and find out what's writing to that directory. I'm guessing you'd prefer it be elsewhere for privacy/security reasons?
Re: Nagios storing check files in /tmp?
Posted: Mon Oct 24, 2011 9:37 am
by cwscribner
Privacy, security, and safety. I'm not the only one who accesses the server but I am the only one with Linux experience so I try to keep things as contained as possible.
Re: Nagios storing check files in /tmp?
Posted: Mon Oct 24, 2011 9:45 am
by mguthrie
Makes sense. I'll post pack on this when I've got something. If I don't see a good reason not to change it I'll probably move the location of where those temp files are stored for future releases.
Re: Nagios storing check files in /tmp?
Posted: Wed Oct 26, 2011 10:53 am
by mguthrie
I did follow up with our lead developer on this, and it's actually the Core engine underneath that is writing some of the files to /tmp. He said there is a system-level reason for why it's currently using the /tmp directory for those results, but he'll take a look at what it would take to change it to a more secure location.
Re: Nagios storing check files in /tmp?
Posted: Fri Oct 28, 2011 12:05 pm
by cwscribner
Sounds good, thanks for the update!