Page 1 of 1

Which directory to use?

Posted: Tue Oct 02, 2012 5:50 am
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

Re: Which directory to use?

Posted: Tue Oct 02, 2012 10:06 am
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...

Re: Which directory to use?

Posted: Tue Oct 02, 2012 3:50 pm
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.