LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-13-2012, 05:00 PM   #16
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,380

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364

Bookmark: http://nagios.sourceforge.net/docs/n.../3/en/toc.html for future references.

wget http://prdownloads.sourceforge.net/s...s-3.4.1.tar.gz

To get the tarball..

Then follow these steps: http://nagios.sourceforge.net/docs/n...upgrading.html
 
Old 07-13-2012, 05:11 PM   #17
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 125

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kustom42 View Post
Thanks I followed them steps up to

Code:
Verify your configuration files. Correct any errors shown here before proceeding with the next step.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
But that I got this

Code:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!
   Error processing main config file!



***> One or more problems was encountered while processing the config files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.
I checked the folder and the nagios.cfg is not there

http://i.imgur.com/QtfoC.jpg

It seems to be here

http://i.imgur.com/xIzWE.jpg
 
Old 07-13-2012, 05:12 PM   #18
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid + various in VMs.
Posts: 1,807

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Because of the nature of Debian Stable (which I'm guessing you're running) the packages do get behind a little sometimes. Unless you have specific problems or know of unpatched vulnerabilities you should be OK using the outdated package. You could look to backports though and see if you could get a newer version (run Sid myself so not learned how this is done).
 
1 members found this post helpful.
Old 07-13-2012, 05:15 PM   #19
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 125

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by 273 View Post
Because of the nature of Debian Stable (which I'm guessing you're running) the packages do get behind a little sometimes. Unless you have specific problems or know of unpatched vulnerabilities you should be OK using the outdated package. You could look to backports though and see if you could get a newer version (run Sid myself so not learned how this is done).
I know people take the piss out windows users but its sure is easier for a noob like me! debian is hard work. Yes mate I belive it is debian stable

The outdated package give me all 404 errors tho, prob something to do with virualmin which I run on it.
 
Old 07-13-2012, 05:17 PM   #20
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,380

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
I agree with 273, but since you havent started using it yet it would be best to start on the most recent.

Run the nagios -v command with no arguments.

It will look for the config file in its default location, or you can specify the location to the file if you need to.
 
Old 07-13-2012, 05:19 PM   #21
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 125

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kustom42 View Post
I agree with 273, but since you havent started using it yet it would be best to start on the most recent.

Run the nagios -v command with no arguments.

It will look for the config file in its default location, or you can specify the location to the file if you need to.
Got this mate
Code:
 nagios -v
-bash: nagios: command not found
 
Old 07-13-2012, 06:00 PM   #22
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 125

Original Poster
Rep: Reputation: 0
Sorry I find this hard to work out, I guess I messed up with the above command.
 
Old 07-13-2012, 06:19 PM   #23
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 125

Original Poster
Rep: Reputation: 0
Ok ive got it running

But all pages are giving internal Server Errors

screenshot.459.jpg
 
Old 07-16-2012, 10:48 AM   #24
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,380

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Your /var/log/httpd/error_log file should give us the exact error. Can you take a look at that log file and let us know what error is reporting?
 
Old 07-16-2012, 04:06 PM   #25
sundialsvcs
Senior Member
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,554

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Please remember that there are always two levels to any computer software problem ...

First, you must make a high-level identification of exactly how to go about solving your problem. In my case, seeing that you had a "cross-platform" requirement for "monitoring software," I recommended Nagios as an existing solution infrastructure.

Second, you must figure out whatever short-term obstacles, such as packages or what-not, may be discovered to be standing in your way.

Perservere ...

Once you have, in the long view, determined "where your arrows must ultimately go," the short-term obstacles (like packages and so on...) are merely annoyances. [u]If/u](!!) you have first confirmed that your desired Windows monitoring software can, in fact, "talk to Nagios," then you can patiently push through all of those annoyances and know that you'll finally have solved the big-picture problem ... for good.

"Linux ... Windows ... OS/X ... IBM big-iron ... whatever ..." it's really all the same.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
view the files/dir inotify is monitoring? navarromoral Linux - General 2 02-15-2010 05:06 PM
Which (server monitoring) software to use (on Windows)? turalo General 0 07-10-2009 11:36 AM
how to view movies that only windows media player can view? servnov Linux - General 7 02-08-2006 10:42 AM
Linux & Windows monitoring software newatlinux Linux - Networking 7 08-12-2004 04:57 PM
Linux AND Windows monitoring software newatlinux Linux - Software 3 08-05-2004 09:21 PM


All times are GMT -5. The time now is 04:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration