Which directory to use?

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
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Which directory to use?

Post by inserm »

Hello,
Some documentation on using:
/ usr / local / nagios / etc to manage server linux, windows or switch
/ usr / local / nagios / etc / objects for the file command.cfg
/ usr / local / nagios / libexec for scripts

and other documents are used:
/ etc/nagios3/conf.d to manage server linux, windows or switch
/ etc/nagios3 for file command.cfg
"/ usr / lib / nagios / plugins" for scripts

so my question what is the difference?
or it depends on the OS or version of nagios
User avatar
inventsekar
Posts: 37
Joined: Fri Jul 20, 2012 11:29 am

Re: Which directory to use?

Post by inventsekar »

i also have the same question...
i thought - if we install from source, the first directory structure (/usr/loca/....) gets formed..
and if we install from repository, then the second directory structure (/etc/nagios3/) gets formed...
i maybe wrong, lets wait for others to reply...

thanks...
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Which directory to use?

Post by agriffin »

As inventsekar mentioned, the first set of directories are used when you install from source. In the packages for Debian-based distributions, the directories were rearranged to comply with the Filesystem Hierarchy Standard and "nagios" was also renamed "nagios3" because Nagios 3.0 broke backwards compatibility with previous versions. On Red Hat-based distributions, you'll see yet more directory names too.

This kind of situation is very common on Linux systems. Software is typically written to install somewhere beneath the /usr/local directory, and then repackaged to use other directories. Essentially all it does is separate packaged software from unpackaged software.
Locked