Portaal Portaal Pingviini veeb foorumi pealeht
  Viki  |  IRC  |  Otsing  |  Küsimused ja vastused  |  Profiil  |  Privaatsõnumite vaatamiseks logi sisse  | Logi sisse või Registreeru
<empty>
Vaata järgmist teemat
Vaata eelmist teemat

Postita uus teemaVasta teemale
Autor Sõnum
insippo
Pingviini aktivist
Pingviini aktivist


Vanus: 55
Liitunud: 07.06.2009
Postitused: 181


estonia.gif
postituspostitatud: 11.02.2011, 11:30  postituse pealkiri:  Nagios3 hostide lisamine  

et kuidas lisada Nagios3-e lannis olevaid arvuteid


obundra
Vana Pingviin
Vana Pingviin


Vanus: 50
Liitunud: 04.08.2005
Postitused: 1213
Asukoht: 127.0.0.1
Distributsioon: RHEL, Solaris, Debian, Gentoo
estonia.gif
postituspostitatud: 11.02.2011, 13:47  postituse pealkiri:  (teema puudub)  

Lisa arvutid hosts.cfg faili, võid ka iga masina kohta eraldi konfi faili teha, nagios.cfg failis määrad, milliseid konfifaile/katalooge kasutatakse, sisu umbes selline:
Kood:

###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:       2011-02-03 13:29:26
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define host {
        host_name                       nimi
        alias                           nimi.domeen.ee
        address                         192.168.48.86
        use                             unix_servers
        contact_groups                  netadmins
        register                        1
        }

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################


See konfifail on mul küll naiosql poolt tehtud, aga käsitsi teed täpselt sama loogika järgi.Pärast kontrollid süntaksi üle:
Kood:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.2.2
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-01-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/usr/local/nagios/commands.cfg'...
Processing object config file '/usr/local/nagios/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/contacts.cfg'...
Processing object config file '/usr/local/nagios/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/serviceextinfo.cfg'...
Processing object config file '/usr/local/nagios/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/hostgroups.cfg'...
Processing object config directory '/usr/local/nagios/hosts'...
Processing object config file '/usr/local/nagios/hosts/muhv.cfg'...
Processing object config file '/usr/local/nagios/hosts/wan.cfg'...
Processing object config file '/usr/local/nagios/hosts/tuuslar.cfg'...
Processing object config file '/usr/local/nagios/hosts/tiktak.cfg'...
Processing object config file '/usr/local/nagios/hosts/uusbirch.cfg'...
Processing object config file '/usr/local/nagios/hosts/saruman.cfg'...
Processing object config file '/usr/local/nagios/etc/misccommands.cfg'...
Processing object config file '/usr/local/nagios/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/services/services.cfg'...
Processing object config file '/usr/local/nagios/timeperiods.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
        Checked 1086 services.
Checking hosts...
        Checked 376 hosts.
Checking host groups...
        Checked 18 host groups.
Checking contacts...
        Checked 14 contacts.
Checking contact groups...
        Checked 14 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking host group escalations...
        Checked 0 host group escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 56 commands.
Checking time periods...
        Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular service execution dependencies...
Checking global event handlers...
Checking obsessive compulsive service processor command...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check




ja kui vigu ei anta, siis nagiosele restart.
Abiks on ka http://www.nagios.org/documentation või http://sinu.nagiose.masin/nagios/docs/toc.html

_________________
IT teenused

Näita (aja järgi):      
Postita uus teemaVasta teemale


Vaata järgmist teemat
Vaata eelmist teemat
Powered by phpBB2 Plus based on phpBB © 2001/7 phpBB Group