Устоновка монитора системы nagios-2.4 (Помогите устоновить из исходников монитор)

Cent OS, Scientific Linux

Модератор: Модераторы разделов

Аватара пользователя
Quicksand
Сообщения: 575
Статус: Характер скверный. Не женат.
ОС: SUSE

Устоновка монитора системы nagios-2.4

Сообщение Quicksand »

Здравствуйте, в общем проблема такова, пытаюсь ставить его, есть пакет nagios-2.4.tar распоковал его в /home/quicksand/nagios-2.4
ls
base configure.in install-sh nagios-2.4 subst.in
cgi contrib LEGAL nagios.spec update-version
Changelog daemon-init.in LICENSE OutputTrap.pm UPGRADING
common functions Makefile.in p1.pl xdata
config.guess html make-tarball pkginfo.in
config.sub include mkpackage README
configure INSTALLING module sample-config
-----------------------
читаю readme там сказанно что для устоновки читайте файл INSTALLING? читаю его, там:
1) Run the configure script to initialize variables and create a Makefile, etc.
./configure --prefix=PREFIX --with-cgiurl=CGIURL --with-htmurl=HTMURL --with-nagios-user=SOMEUSER --with-nagios-group=SOMEGROUP
a) Replace PREFIX with the base directory under which Nagios should be
installed. Default is '/usr/local/nagios'
Replace CGIURL with the base URL that you will be using to access the
CGIs. Do NOT include a trailing slash. Default is '/nagios/cgi-bin'
c) Replace HTMURL with the base URL that you will be using to access the
html documentation and main interface. Default is '/nagios'
d) Replace SOMEUSER with the name of the user on your system that will
be given permissions to the Nagios directories and files. Default
is 'nagios'
e) Replace SOMEGROUP with the name of the group on your system that
will be given permissions to the Nagios directories and files.
Default is 'nagios'
Notes:
Notes:
There are also --with-command-user and --with-command-group options
that can be specified. These are used when installing the directory
that will hold the external command file. For more information on
external commands, read the HTML documentation.
2) Compile Nagios and the CGIs with the following command:
make all
Installing The Binaries
-----------------------
1) Install the binaries and HTML documentations with the following command:
make install
Creating And Installing Sample Config Files
-------------------------------------------
Sample main, resource and CGI configuration files are automatically
created in your distribution distribution directory after you run the
configure script. The files are named 'nagios.cfg', 'resource.cfg'
and 'cgi.cfg' respectively.
1) If you want, you can install the sample config files into the
{prefix}/etc directory with the following command:
make install-config
Installing The Init Script
--------------------------
1) If you want to install and init script for starting Nagios, use the
following command:
make install-init
Everything Else
---------------
1) You'll have to download and install plugins for use with Nagios. Plugins
can be obtained from the downloads page at http://www.nagios.org of from
the SourceForge project page at http://nagiosplug.sourceforge.net
2) You'll have to edit your main, host, resource, and CGI config files in order
to fit your system setup and define what hosts and service you want to
monitor. Read the HTML docs on how to do this and look at the sample
config files.
3) If you plan on using the CGIs, you'll have to read the HTML documentation
on configuring you web server properly and CGI authentication and
authorization. These are a must to read!
That's it! If you have problems or questions, read all of the HTML
documentation, particularly the sections on the configuration files and CGI
authentication before reporting problems. Unless you feel that your
problem can only be answered by me, try posting a message to the
appropriate mailing list.
В общем срочно нужно поставить этот монитор но сижу в ступоре не могу понять что делать, очень прошу помощи...
Характер скверный. Не женат.
Спасибо сказали:
Аватара пользователя
Vidoc
Сообщения: 231
ОС: Gentoo ~x86

Re: Устоновка монитора системы nagios-2.4

Сообщение Vidoc »

По-моему всё довольно очевидно.
в /home/quicksand/nagios-2.4 делаем
$./configure --prefix=/usr/nagios.

(--with-nagios-user=SOMEUSER - SOMEUSER - тот пользователь, который имеет доступ к "Nagios directories and files."
SOMEGROUP -аналогично)

Затем
$make all
#make install && make install-config && make install-init.
Спасибо сказали:
Аватара пользователя
Quicksand
Сообщения: 575
Статус: Характер скверный. Не женат.
ОС: SUSE

Re: Устоновка монитора системы nagios-2.4

Сообщение Quicksand »

Vidoc писал(а):
09.06.2006 12:03
По-моему всё довольно очевидно.
в /home/quicksand/nagios-2.4 делаем
$./configure --prefix=/usr/nagios.

(--with-nagios-user=SOMEUSER - SOMEUSER - тот пользователь, который имеет доступ к "Nagios directories and files."
SOMEGROUP -аналогично)

Затем
$make all
#make install && make install-config && make install-init.

Я под рутом сижу, не могу сделать нечего что ты написал, если не сложно можешь написать, первое что я должен сейчас ввести, нахожусь под рутом в папке с nagios
Характер скверный. Не женат.
Спасибо сказали:
Аватара пользователя
Vidoc
Сообщения: 231
ОС: Gentoo ~x86

Re: Устоновка монитора системы nagios-2.4

Сообщение Vidoc »

Код: Выделить всё

#chmod +x configure
#./configure --prefix=/usr/nagios && make all && make install
#make install-config && make install-init

Затем добавляешь кого надо в группу nagious.
Спасибо сказали:
Аватара пользователя
Quicksand
Сообщения: 575
Статус: Характер скверный. Не женат.
ОС: SUSE

Re: Устоновка монитора системы nagios-2.4

Сообщение Quicksand »

Vidoc писал(а):
09.06.2006 12:14

Код: Выделить всё

#chmod +x configure
#./configure --prefix=/usr/nagios && make all && make install
#make install-config && make install-init

Затем добавляешь кого надо в группу nagious.

[root@gateway nagios-2.4]#chmod +x configure - прошло нормально нечего не сказало
--------------------------
[root@gateway nagios-2.4]#./configure --prefix=/usr/nagios && make all && make install - понеслась
Command user/group: nagios,nagios
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/nagios
Lock file: ${prefix}/var/nagios.lock
Init directory: /etc/rc.d/init.d
Host OS: linux-gnu

Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /bin/traceroute


Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.

cd ./base && make
make[1]: Entering directory `/home/quicksand/nagios-2.4/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
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 notifications.o sehandlers.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 -Wl,-export-dynamic -lm -lpthread -lltdl
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -lm
make[1]: Leaving directory `/home/quicksand/nagios-2.4/base'
cd ./cgi && make
make[1]: Entering directory `/home/quicksand/nagios-2.4/cgi'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o getcgi.o getcgi.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiutils.o cgiutils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiauth.o cgiauth.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o avail.cgi avail.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xcomments-cgi.o ../xdata/xcddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xdowntime-cgi.o ../xdata/xdddefault.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o cmd.cgi cmd.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o xcomments-cgi.o downtime-cgi.o xdowntime-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o config.cgi config.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o extinfo.cgi extinfo.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o xcomments-cgi.o downtime-cgi.o xdowntime-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o history.cgi history.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o notifications.cgi notifications.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o outages.cgi outages.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o xcomments-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o showlog.cgi showlog.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o status.cgi status.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o xcomments-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswml.cgi statuswml.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o summary.cgi summary.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o tac.cgi tac.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o xcomments-cgi.o
gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswrl.cgi statuswrl.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o -lm
make[1]: Leaving directory `/home/quicksand/nagios-2.4/cgi'
cd ./html && make
make[1]: Entering directory `/home/quicksand/nagios-2.4/html'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/quicksand/nagios-2.4/html'
cd ./module && make
make[1]: Entering directory `/home/quicksand/nagios-2.4/module'
gcc -g -O2 -DHAVE_CONFIG_H -fPIC -o helloworld.o helloworld.c -shared
make[1]: Leaving directory `/home/quicksand/nagios-2.4/module'

*** Compile finished ***

If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

make install
- This installs the main program, CGIs, and HTML files

make install-init
- This installs the init script in /etc/rc.d/init.d

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs *SAMPLE* config files in /usr/nagios/etc
You'll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!


*** Support Notes *******************************************

If you have questions about configuring or running Nagios,
please make sure that you:

- Look at the sample config files
- Read the HTML documentation
- Read the FAQs online at http://www.nagios.org/faqs

before you post a question to one of the mailing lists.
Also make sure to include pertinent information that could
help others help you. This might include:

- What version of Nagios you are using
- What version of the plugins you are using
- Relevant snippets from your config files
- Relevant error messages from the Nagios log file

For those of you who are interested in contract support or
consulting services for Nagios, please visit:

http://www.nagios.org/contractsupport

*************************************************************

Enjoy.

cd ./base && make install
make[1]: Entering directory `/home/quicksand/nagios-2.4/base'
make install-basic
make[2]: Entering directory `/home/quicksand/nagios-2.4/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /usr/nagios/bin
make[2]: Leaving directory `/home/quicksand/nagios-2.4/base'
make strip-post-install
make[2]: Entering directory `/home/quicksand/nagios-2.4/base'
/usr/bin/strip /usr/nagios/bin/nagios
/usr/bin/strip /usr/nagios/bin/nagiostats
make[2]: Leaving directory `/home/quicksand/nagios-2.4/base'
make[1]: Leaving directory `/home/quicksand/nagios-2.4/base'
cd ./cgi && make install
make[1]: Entering directory `/home/quicksand/nagios-2.4/cgi'
make install-basic
make[2]: Entering directory `/home/quicksand/nagios-2.4/cgi'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/sbin
for file in *.cgi; do \
/usr/bin/install -c -m 775 -o nagios -g nagios $file /usr/nagios/sbin; \
done
make[2]: Leaving directory `/home/quicksand/nagios-2.4/cgi'
make strip-post-install
make[2]: Entering directory `/home/quicksand/nagios-2.4/cgi'
for file in *.cgi; do \
/usr/bin/strip /usr/nagios/sbin/$file; \
done
make[2]: Leaving directory `/home/quicksand/nagios-2.4/cgi'
make[1]: Leaving directory `/home/quicksand/nagios-2.4/cgi'
cd ./html && make install
make[1]: Entering directory `/home/quicksand/nagios-2.4/html'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/media
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/stylesheets
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/contexthelp
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/docs
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/docs/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/images/logos
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/share/ssi
/usr/bin/install -c -m 664 -o nagios -g nagios robots.txt /usr/nagios/share
/usr/bin/install -c -m 664 -o nagios -g nagios docs/robots.txt /usr/nagios/share/docs
for file in *.html; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share; done
for file in media/*.wav; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/media; done
for file in stylesheets/*.css; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/stylesheets; done
for file in contexthelp/*.html; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/contexthelp; done
for file in docs/*.html; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/docs; done
for file in docs/images/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/docs/images; done
for file in images/*.gif; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/images; done
for file in images/*.jpg; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/images; done
for file in images/*.png; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/images; done
for file in images/logos/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/nagios/share/images/logos; done
make[1]: Leaving directory `/home/quicksand/nagios-2.4/html'
make install-basic
make[1]: Entering directory `/home/quicksand/nagios-2.4'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/var
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/var/archives
if [ no = yes ]; then \
/usr/bin/install -c -m 664 -o nagios -g nagios p1.pl /usr/nagios/bin; \
fi;

*** Main program, CGIs and HTML files installed ***

You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

make install-init
- This installs the init script in /etc/rc.d/init.d

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs *SAMPLE* config files in /usr/nagios/etc
You'll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!

make[1]: Leaving directory `/home/quicksand/nagios-2.4'
------------------------
[root@gateway nagios-2.4]# make install-config && make install-init
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/nagios/etc
/usr/bin/install -c -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/nagios/etc/nagios.cfg-sample
/usr/bin/install -c -m 664 -o nagios -g nagios sample-config/cgi.cfg /usr/nagios/etc/cgi.cfg-sample
/usr/bin/install -c -m 660 -o nagios -g nagios sample-config/resource.cfg /usr/nagios/etc/resource.cfg-sample
/usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/bigger.cfg /usr/nagios/etc/bigger.cfg-sample
/usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/minimal.cfg /usr/nagios/etc/minimal.cfg-sample
/usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/checkcommands.cfg /usr/nagios/etc/checkcommands.cfg-sample
/usr/bin/install -c -m 664 -o nagios -g nagios sample-config/template-object/misccommands.cfg /usr/nagios/etc/misccommands.cfg-sample

*** Sample config file installed ***

Remember, these are *SAMPLE* config files. You'll need to read
the documentation for more information on how to actually define
services, hosts, etc. to fit your particular needs.

If you have questions about configuring Nagios properly, please:
- Look at the sample config files
- Read the HTML documentation
- Read the FAQs online at http://www.nagios.org/faqs
*BEFORE* you post a question to one of the mailing lists.

/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 774 -o root -g root daemon-init /etc/rc.d/init.d/nagios

*** Init script installed ***

You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs *SAMPLE* config files in /usr/nagios/etc
You'll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!
--------------
вроде все сделал что нужно было, огромное спасибо, а дальше надо ещё что?) простите конечно за вопрос.



Все сделал как было сказанно, встает опять беда, сталкиваюсь первый раз(
[root@gateway /]# nagios

Nagios 2.4
Copyright © 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-31-2006
License: GPL

Usage: nagios [option] <main_config_file>

Options:

-v Reads all data in the configuration files and performs a basic
verification/sanity check. Always make sure you verify your
config data before (re)starting Nagios.

-s Shows projected/recommended check scheduling information based
on the current data in the configuration files.

-d Starts Nagios in daemon mode (instead of as a foreground process).
This is the recommended way of starting Nagios for normal operation.

Visit the Nagios website at http://www.nagios.org for bug fixes, new
releases, online documentation, FAQs, information on subscribing to
the mailing lists, and commercial and contract support for Nagios.

[root@gateway /]# /etc/init.d/nagios start
Configuration file /usr/nagios/etc/nagios.cfg not found. Exiting.
[root@gateway /]# vi /usr/nagios/etc/nagios.cfg-sample

есть только этот файл nagios.cfg-sample
просто *.cfg нет, как быть?

Все сделал как было сказанно, встает опять беда, сталкиваюсь первый раз(
[root@gateway /]# nagios

Nagios 2.4
Copyright © 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-31-2006
License: GPL

Usage: nagios [option] <main_config_file>

Options:

-v Reads all data in the configuration files and performs a basic
verification/sanity check. Always make sure you verify your
config data before (re)starting Nagios.

-s Shows projected/recommended check scheduling information based
on the current data in the configuration files.

-d Starts Nagios in daemon mode (instead of as a foreground process).
This is the recommended way of starting Nagios for normal operation.

Visit the Nagios website at http://www.nagios.org for bug fixes, new
releases, online documentation, FAQs, information on subscribing to
the mailing lists, and commercial and contract support for Nagios.

[root@gateway /]# /etc/init.d/nagios start
Configuration file /usr/nagios/etc/nagios.cfg not found. Exiting.
[root@gateway /]# vi /usr/nagios/etc/nagios.cfg-sample

есть только этот файл nagios.cfg-sample
просто *.cfg нет, как быть?
Характер скверный. Не женат.
Спасибо сказали:
Аватара пользователя
Vidoc
Сообщения: 231
ОС: Gentoo ~x86

Re: Устоновка монитора системы nagios-2.4

Сообщение Vidoc »

1. Всё-таки выучить английский :D
2.#make install-commandmode
3.#make install-init
- This installs the init script in /etc/rc.d/init.d

Теперь можно будет добавить nagious в соответствующий runlevel, 5-ый или какой там по дефолту...
3.#gpasswd -a <имя_пользователя> nagious
4. Читать документацию
Remember, these are *SAMPLE* config files. You'll need to read
the documentation for more information on how to actually define
services, hosts, etc. to fit your particular needs.

If you have questions about configuring Nagios properly, please:
- Look at the sample config files
- Read the HTML documentation
- Read the FAQs online at http://www.nagios.org/faqs
*BEFORE* you post a question to one of the mailing lists.

То есть nagios.cfg придётся создавать самому, основываясь на sample и документации.
Я ничего про nagious не знаю, следовательно помочь не смогу.
Спасибо сказали:
Аватара пользователя
Quicksand
Сообщения: 575
Статус: Характер скверный. Не женат.
ОС: SUSE

Re: Устоновка монитора системы nagios-2.4

Сообщение Quicksand »

Vidoc писал(а):
09.06.2006 12:47
1. Всё-таки выучить английский :D
2.#make install-commandmode
3.#make install-init
- This installs the init script in /etc/rc.d/init.d

Теперь можно будет добавить nagious в соответствующий runlevel, 5-ый или какой там по дефолту...
3.#gpasswd -a <имя_пользователя> nagious
4. Читать документацию
Remember, these are *SAMPLE* config files. You'll need to read
the documentation for more information on how to actually define
services, hosts, etc. to fit your particular needs.

If you have questions about configuring Nagios properly, please:
- Look at the sample config files
- Read the HTML documentation
- Read the FAQs online at http://www.nagios.org/faqs
*BEFORE* you post a question to one of the mailing lists.

То есть nagios.cfg придётся создавать самому, основываясь на sample и документации.
Я ничего про nagious не знаю, следовательно помочь не смогу.

тогда я лучше так спрошу, ты можешь посоветовать монитор какой нить который хорошо работает - отсылает уведомления на смс почту а так же в вебе графики может показать
Характер скверный. Не женат.
Спасибо сказали:
Аватара пользователя
Vidoc
Сообщения: 231
ОС: Gentoo ~x86

Re: Устоновка монитора системы nagios-2.4

Сообщение Vidoc »

Про nagios:
Вот и ещё статьи.
Там же есть и про другие системы мониторинга
Для выполнения вышеописанной задачи мы будем использовать инструмент по имени Nagios. Кроме него в сети существует множество других бесплатных систем мониторинга. Наиболее известными являются Big Brother, Angel Network Monitor, HiWayS, MARS, Autostatus, NocMonitor, RITW.

Я уверен, есть и другие достаточно подробные источники инф-и. Вобщем, google.ru :)
Сам я никогда ничем этим не занимался, поэтому ничего постоветовать не могу.
________Добавлено__________
И ещё : http://samag.ru/img/uploaded/2003/12/e12.htm
Спасибо сказали: