Advertisement

04.20.2008 at 01:41PM PDT, ID: 23338109
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Nagios installation path

Can i install nagios in any path ?
or it should be in /usr/local/nagios?
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: jaisonshereen
Solution Provided By: duncan_roe
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
04.20.2008 at 02:17PM PDT, ID: 21397626

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 02:24PM PDT, ID: 21397648

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 02:37PM PDT, ID: 21397677

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 02:40PM PDT, ID: 21397690

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 02:53PM PDT, ID: 21397714

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 02:59PM PDT, ID: 21397732

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 03:02PM PDT, ID: 21397739

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 03:02PM PDT, ID: 21397741

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 03:13PM PDT, ID: 21397778

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.20.2008 at 06:07PM PDT, ID: 21398161

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:32AM PDT, ID: 21400133

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 05:54AM PDT, ID: 21401106

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 02:44PM PDT, ID: 21406353

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 02:55PM PDT, ID: 21406448

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:00PM PDT, ID: 21406482

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:07PM PDT, ID: 21406537

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:09PM PDT, ID: 21406547

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:28PM PDT, ID: 21406685

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:30PM PDT, ID: 21406700

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:42PM PDT, ID: 21406773

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 03:43PM PDT, ID: 21406779

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 04:06PM PDT, ID: 21406904

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 06:02PM PDT, ID: 21407443

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.21.2008 at 09:53PM PDT, ID: 21408168

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.22.2008 at 01:39AM PDT, ID: 21409042

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.22.2008 at 03:00AM PDT, ID: 21409378

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.22.2008 at 06:27AM PDT, ID: 21410855

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.22.2008 at 06:41AM PDT, ID: 21410978

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.22.2008 at 02:45PM PDT, ID: 21415884

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 04:17AM PDT, ID: 21506244

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
04.20.2008 at 02:17PM PDT, ID: 21397626

Rank: Guru

You can install it under any directory. It is up to you to install it any where you like. The path /usr/local is more convenient since many S/W packages also install under it and many users will look under this dir for installed S/W binaries.
 
04.20.2008 at 02:24PM PDT, ID: 21397648

Rank: Wizard

You can build nagios to install anywhere.
Note that in the example above, you are actually installing nagios in /usr/local - the nagios directory is part of the installation.
You change the install directory by using the --prefix= directive to configure prior to running make.
If you have an already-built package, you likely have to put it where it was built for. There are lots of files in the share subdirectory of nagios, and the software might have trouble finding them if nagios/ were put elsewhere.
What exactly is the problem you have?
 
04.20.2008 at 02:37PM PDT, ID: 21397677
i have to setup monitor for database ...
ie : select * from dual
must work and need to be monitored by nagios.

But..oracle is running in Oracle db account and there is no permission to mkdir even...
so i though of going to another account ..aphilips and create my directory over there.. and install nagios..
and monitor oracle...!!

it is possible right ?
 
04.20.2008 at 02:40PM PDT, ID: 21397690

Rank: Guru

Yes it is possible but the other account should be able to use oracle if you want to run sql scripts, etc
 
04.20.2008 at 02:53PM PDT, ID: 21397714

Rank: Wizard

Is this a problem with the user that runs nagios, rather than the location of the install?
 
04.20.2008 at 02:59PM PDT, ID: 21397732
i dont have permission to create folders in both the user accounts ... how can i proceed with this ?
 
04.20.2008 at 03:02PM PDT, ID: 21397739
i havent installed nagios ..i am going to install it ... so its not a problem with nagios ..because i am not created any user for nagios specifically....

do i need to create another user account for nagios ?  or can i use the existing one.. ie : oralcedb were oracle is running ( but this account have any permission to create a directory )

how can i proceed ?
 
04.20.2008 at 03:02PM PDT, ID: 21397741

Rank: Guru

Which directories you have perms over?

Can you run the installation as root? I think you need to be root if you wants to install under /usr/local
 
04.20.2008 at 03:13PM PDT, ID: 21397778
ok... then i ll ask the client for root credentials and update here .. thanks cya!!
 
04.20.2008 at 06:07PM PDT, ID: 21398161

Rank: Wizard

As a non-privileged user, you could build nagios from source to install in your home directory:

./configure --prefix=<home directory>
make
make install

but running it with your user only gives access to information that you are allowed to access
 
04.21.2008 at 03:32AM PDT, ID: 21400133
duncan roe:->

i did the same .... but its not working ...showing errors!

i ran ./configure with the arguments and i "make all" it succeeded  then i used make " make install" it gave some errors and said it failed ...

i was not in root account...i was in oracledb account where oracle is running ...

 
04.21.2008 at 05:54AM PDT, ID: 21401106

Rank: Wizard

What errors did it give exactly?
What were the arguments you gave to configure?
 
04.21.2008 at 02:44PM PDT, ID: 21406353
The command is this :

1:
./configure --prefix=/home/oracledb/nagios-3.0.1 --with-cgiurl=/home/oracledb/nagios-3.0.1/cgi --with-htmurl=/home/oracledb/nagios-3.0.1 --with-nagios-user=oracledb --with-nagios-grp=corpdb
Open in New Window
 
04.21.2008 at 02:55PM PDT, ID: 21406448
Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.


Its configured successfully ..but
when i shoot this command

make all

Below is the error i am getting :

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
ROOT@pythia# make all
cd ./base && make
gcc -g -O2 -DHAVE_CONFIG_H  -DNSCORE  -c  ../common/snprintf.c
In file included from ../common/../include/config.h:327,
                 from ../common/snprintf.c:108:
/home/gnu-sol/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/dlfcn.h:53: warning: `RTLD_NOW' redefined
../common/../include/config.h:111: warning: this is the location of the previous definition
/home/gnu-sol/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/dlfcn.h:54: warning: `RTLD_GLOBAL' redefined
../common/../include/config.h:107: warning: this is the location of the previous definition
gcc -g -O2 -DHAVE_CONFIG_H  -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o  ../common/snprintf.o     -lm  -lpthread -ldl -lrt
gcc: ../common/snprintf.o: No such file or directory
In file included from ../include/config.h:327,
                 from nagios.c:38:
/home/gnu-sol/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/dlfcn.h:53: warning: `RTLD_NOW' redefined
../include/config.h:111: warning: this is the location of the previous definition
/home/gnu-sol/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/dlfcn.h:54: warning: `RTLD_GLOBAL' redefined
../include/config.h:107: warning: this is the location of the previous definition
*** Error code 1
make: Fatal error: Command failed for target `nagios'
Current working directory /home/oracledb/nagios-3.0.1/base
*** Error code 1
make: Fatal error: Command failed for target `all'
ROOT@pythia# ^C
ROOT@pythia#
Open in New Window
 
04.21.2008 at 03:00PM PDT, ID: 21406482

Rank: Wizard

This install will try to create /home/oracledb/nagios-3.0.1/nagios/ - do you have access to do that?
Also, doesn't the cgi directory have to be where your web server expects to find it?
 
04.21.2008 at 03:07PM PDT, ID: 21406537
i dont have permission to apply command "mkdir"  so i dont think access to do that .. and i cannot proceed with installation ..right?
 
04.21.2008 at 03:09PM PDT, ID: 21406547
Any changes need to made to ./config command ?

 
04.21.2008 at 03:28PM PDT, ID: 21406685

Rank: Wizard

Posted before I saw your latest post. You're building for Solaris - please mention that in future questions if you are sending them to the Linux topic area - it's fine that you do, just helps to know.
This is a bit strange. You have a couple of warnings about redefinitions but no error, then gcc has not made the .o file.. This has nothing to do with the configured install directory by the way, it's a straight-out build problem.
`RTLD_NOW' and `RTLD_GLOBAL' have no business being in config.h: they are part of libdl. You could try the effect of removing the offending lines (compare them first with the "official" lines in /lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/dlfcn.h). The file is there instead of /usr/include because it's a "fixed" version, created during the installation of gcc. This has likely confused configure, so it has put those lines in config.h.
Gcc 2.7.2 (and indeed Solaris 2.5) are very old, I guess you know that.  That could lead to problems building some sources, but I don't think that's the problem here.
The only error I can see is:

gcc: ../common/snprintf.o: No such file or directory

That file should have been created by the line:

gcc -g -O2 -DHAVE_CONFIG_H  -DNSCORE  -c  ../common/snprintf.c

which only got warnings. But for some reason it wasn't. As I said before, try removing the offending lines from config.h.

Also, you might like to try just "make" instead of "make all". This will make the default target, which may not be "all". Solaris 2.5 has snprintf - Nagios has no need to make its own copy.
 
04.21.2008 at 03:30PM PDT, ID: 21406700

Rank: Wizard

It doesn't matter where you install the nagios executable, so you can proceed from that point of view.
 
04.21.2008 at 03:42PM PDT, ID: 21406773
I applied the command that u provide its show the error below :

1:
2:
3:
4:
5:
ROOT@pythia#  gcc -g -O2 -DHAVE_CONFIG_H  -DNSCORE  -c  ../common/snprintf.c
gcc: ../common/snprintf.c: No such file or directory
gcc: No input files
gcc: ../common/snprintf.c: No such file or directory
gcc: No input files
Open in New Window
 
04.21.2008 at 03:43PM PDT, ID: 21406779
mkdir command is working... sorry for confusing !!
 
04.21.2008 at 04:06PM PDT, ID: 21406904
Where is config.h i cannot see that file in my folder ...to remove offending lines ?
 
04.21.2008 at 06:02PM PDT, ID: 21407443