Koozali.org: home of the SME Server

Nagios or other monitoring

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: Nagios or other monitoring
« Reply #15 on: October 07, 2007, 08:01:40 AM »
This is the first how to posted by a member that actually works...

Fantastic, I can deploy this on all my other SME installations now...!!

Thanks

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Nagios or other monitoring
« Reply #16 on: October 08, 2007, 12:27:12 AM »
WARNING in /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/92nagios: ERROR: Cannot process template /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/92nagios: Unmatched close brace at line 90 at /sbin/e-smith/expand-template line 45
Looks like you had a problem with the cut & paste. You may have missed the first '{' or last '}'.

Trevor B

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Nagios or other monitoring
« Reply #17 on: October 08, 2007, 10:15:10 AM »
I find it much easier to cut-and-paste into  a file using 'pico -w' then using 'vi' - vi automatically indents, so when I cut and paste the output usually doesn't look like the input.  pico, on the other hand, does NOT automatically indent... (but without the "-w" it will automatically wrap long lines, causing another set of problems...).

Which is by way of saying that if deleting the last } in 92nagios doesn't do the trick, I'd try recreating the file using pico -w 92nagios
« Last Edit: October 08, 2007, 10:17:18 AM by mmccarn »

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: Nagios or other monitoring
« Reply #18 on: October 09, 2007, 01:16:47 AM »
Looks like you had a problem with the cut & paste. You may have missed the first '{' or last '}'.

Trevor B

i'm re-install sme server and try to install nagios again..there are no error after install until finish.
and i can start nagios, but inthe confguration they said :

It appears as though you do not have permission to view the configuration information you requested...

If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.

what is this ??
« Last Edit: October 09, 2007, 01:26:29 AM by sedangbelajar »

Offline kryptos

  • *****
  • 245
  • +0/-0
Re: Nagios or other monitoring
« Reply #19 on: October 09, 2007, 03:16:18 AM »
Hi,

Quote
i'm re-install sme server and try to install nagios again..there are no error after install until finish.
and i can start nagios, but inthe confguration they said :

It appears as though you do not have permission to view the configuration information you requested...

If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.

what is this ??


Just check on nagios.cfg file you have to do some changes in there look for for this text below:

check_external_commands=0

what we do here is change 0 to 1, but you should read first the manual for nagios regarding this thing for you to understand.


Regards,
Rocel

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: Nagios or other monitoring
« Reply #20 on: October 09, 2007, 04:02:45 AM »
Hi,


Just check on nagios.cfg file you have to do some changes in there look for for this text below:

check_external_commands=0

what we do here is change 0 to 1, but you should read first the manual for nagios regarding this thing for you to understand.


Regards,
Rocel

i'm change in the nagios.cfg like the example, but nothing happen. there are no everything in my nagios..



Help me
« Last Edit: October 09, 2007, 04:07:05 AM by sedangbelajar »

Offline okepc

  • ****
  • 118
  • +0/-0
    • http://www.okepc.nl
Re: Nagios or other monitoring
« Reply #21 on: October 09, 2007, 11:11:19 AM »
Did you restart the nagios service ?

regards

Dirk

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Nagios or other monitoring
« Reply #22 on: October 09, 2007, 11:47:47 AM »
Who did you log in as?

It shows 'Logged in as ?'

AFAIK, you need to be an authenticated user to have any access. I assume that you have set all of the authorised_for parameters in your /etc/nagios/cgi.cfg as *

Trevor B

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: Nagios or other monitoring
« Reply #23 on: October 09, 2007, 03:34:57 PM »
Did you restart the nagios service ?

regards

Dirk

Dear doc team

after change number from 0 to 1
i'm restart again from the following number

restarting httpd
9.   /etc/rc7.d/S86httpd-e-smith restart
10. /etc/rc7.d/S86httpd-admin restart

you'll need to setup nagios first, so go edit your /etc/nagios/<files> and then do a
10./etc/init.d/nagios start

To automatic start nagios

11. ln -s /etc/init.d/nagios /etc/rc.d/rc7.d/S99nagios


Pre-flight Check nagios configuration

1.  /usr/bin/nagios -v /etc/nagios/nagios.cfg
or
nagios -v /etc/nagios/nagios.cfg



but no respon in my browser...

regards

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: Nagios or other monitoring
« Reply #24 on: October 09, 2007, 03:40:20 PM »
Who did you log in as?

It shows 'Logged in as ?'

AFAIK, you need to be an authenticated user to have any access. I assume that you have set all of the authorised_for parameters in your /etc/nagios/cgi.cfg as *

Trevor B

i'm using https://.....the i'm logged in as admin


because i'm not see that from example "Posted by: kryptos", how can i configure the /etc/nagios/cgi.cfg as *


regrads
« Last Edit: October 09, 2007, 06:30:30 PM by sedangbelajar »

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Nagios or other monitoring
« Reply #25 on: October 10, 2007, 12:04:09 AM »
because i'm not see that from example "Posted by: kryptos", how can i configure the /etc/nagios/cgi.cfg as *
It, and the other *.cfg files,  can NOT be configured through the web interface (they should all require some tweaking). You need to log in as root to your servers console (or via ssh) and edit those files. (this is in the nagios documentation).
Code: [Select]
#root@fred ~> cd /etc/nagios
#root@fred /etc/nagios> nano cgi.cfg
ctrl-o (to save)
ctrl-x (to exit)
Also check that any users/groups mentioned in any of the *.cfg files exist on your server (default users are nagios, nagios-admin and group nagios).

Nagios is a very 'hands-on' package and will require a fair amount of work at the command-line. Whilst I have managed to configure monarch (a web front-end), that took at lot more command-line effort than should be necessary...

Trevor B

Offline sedangbelajar

  • **
  • 30
  • +0/-0
Re: Nagios or other monitoring
« Reply #26 on: October 10, 2007, 04:18:58 AM »
It, and the other *.cfg files,  can NOT be configured through the web interface (they should all require some tweaking). You need to log in as root to your servers console (or via ssh) and edit those files. (this is in the nagios documentation).
Code: [Select]
#root@fred ~> cd /etc/nagios
#root@fred /etc/nagios> nano cgi.cfg
ctrl-o (to save)
ctrl-x (to exit)
Also check that any users/groups mentioned in any of the *.cfg files exist on your server (default users are nagios, nagios-admin and group nagios).

Nagios is a very 'hands-on' package and will require a fair amount of work at the command-line. Whilst I have managed to configure monarch (a web front-end), that took at lot more command-line effort than should be necessary...

Trevor B

i'll try to configure your suggest from "putty" or "ssh" then from root i'm using "vi" or "pico", but the problem i can not see example how to configure cgi.cfg..
maybe someone can give me example, because i'm  a newbie in linux..sometimes i do not understand if i can see the example..

regards

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: Nagios or other monitoring
« Reply #27 on: October 10, 2007, 04:32:33 AM »
i'll try to configure your suggest from "putty" or "ssh" then from root i'm using "vi" or "pico", but the problem i can not see example how to configure cgi.cfg..
maybe someone can give me example, because i'm  a newbie in linux..sometimes i do not understand if i can see the example..
As I stated above, and as outlined in the nagios documentation under "Advice to beginners"
Quote from: Advice to beginners
Advice for Beginners

Congrats on choosing to try Nagios! Nagios is quite powerful and flexible, but unfortunately its not very friendly to newbies. Why? Because it takes a lot of work to get it installed and configured properly. That being said, if you stick with it and manage to get it up and running, you'll never want to be without it. :-) Here are some very important things to keep in mind for those of you who are first-time users of Nagios:

   1. Relax - its going to take some time. Don't expect to be able to compile Nagios and start it up right off the bat. Its not that easy. In fact, its pretty difficult. If you don't want to spend time learning how things work and getting things running smoothly, don't bother using this software. Instead, pay someone to monitor your network for you or hire someone to install Nagios for you. :-)

   2. Read the documentation. Nagios is difficult enough to configure when you've got a good grasp of what's going on, and nearly impossible if you don't. Do yourself a favor and read before blindly attempting to install and run Nagios. If you're the type who doesn't want to take the time to read the documentation, you'll probably find that others won't find the time to help you out when you have problems. RTFM.

   3. Use the sample config files. Sample configuration files are provided with Nagios. Look at them, modify them for your particular setup and test them! The sample files are just that - samples. There's a very good chance that they won't work for you without modifications. Sample config files can be found in the sample-config/ subdirectory of the Nagios distribution.

   4. Seek the help of others. If you've read the documentation, reviewed the sample config files, and are still having problems, try sending a descriptive email message describing your problems to the nagios-users mailing list. Due to the amount of work that I have to do for this project, I am unable to answer most of the questions that get sent directly to me, so your best source of help is going to be the mailing list. If you've done some background reading and you provide a good problem description, odds are that someone will give you some pointers on getting things working properly.
The nagios documentation can be found @ http://www.nagios.org/docs/. I have 2.9 installed (have not tried the 3 series yet).

On my setup, I just set all of the parameters that started with 'authorised_for' to '*'

Good Luck
Trevor B