Nagios storing check files in /tmp?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Nagios storing check files in /tmp?

Post 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.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios storing check files in /tmp?

Post 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.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Nagios storing check files in /tmp?

Post by cwscribner »

Is there any harm in removing those files? Is there a way to have XI store them elsewhere?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios storing check files in /tmp?

Post 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?
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Nagios storing check files in /tmp?

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios storing check files in /tmp?

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios storing check files in /tmp?

Post 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.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Nagios storing check files in /tmp?

Post by cwscribner »

Sounds good, thanks for the update!
Locked