Övervaka en FreeBSD server med Nagios: Difference between revisions

From Peters wiki
Jump to navigation Jump to search
plenty of soap and water Get medical attention if irritation develops, http://www.surveygizmo.com/s3/761194/cialis-price-per-pill cialis price compare, %[, http://www.surveygizmo.com/s3/761201/cial
mNo edit summary
 
(198 intermediate revisions by 51 users not shown)
Line 1: Line 1:
plenty of soap and water Get medical attention if irritation develops,  http://www.surveygizmo.com/s3/761194/cialis-price-per-pill cialis price compare,  %[, http://www.surveygizmo.com/s3/761201/cialis-information cialis forum,  593, http://www.surveygizmo.com/s3/761184/cialis-viagra-online levitra cialis viagra compare,  068, http://www.surveygizmo.com/s3/761198/cialis-online-canadian-pharmacy cialis online in canada,  9292, http://www.surveygizmo.com/s3/761182/discount-cialis-levitra-viagra cialis discounts,  odameo,  http://www.surveygizmo.com/s3/761170/online-pharmacy-cialis cialis online forum, :-[[, http://www.surveygizmo.com/s3/761200/cialis-levitra-and-viagra cialis levitra comparison,  btrk,  http://www.surveygizmo.com/s3/761232/buy-cialis-tadalafil buy cialis without prescription,  >:-DD,  http://www.surveygizmo.com/s3/761187/cialis-soft-tabs-online cialis soft tabs,  655375,  http://www.surveygizmo.com/s3/761199/cialis-low-cost daily cialis cost,  085,  http://www.surveygizmo.com/s3/761229/buying-cialis-without-prescription tadalafil 20mg,  8],  http://www.surveygizmo.com/s3/761174/generic-cialis-soft-tabs generic cialis 20mg,  555974,  http://www.surveygizmo.com/s3/761164/viagra-cialis-levitra-online viagra cialis levitra compare,  779342,  http://www.surveygizmo.com/s3/761188/cialis-soft-tabs cialis soft tabs, 296,  http://www.surveygizmo.com/s3/761230/buy-generic-cialis-online buy generic cialis uk,  78086,
'''Denna artikel är under utveckling'''
 
Lägg till raden:
 
nagios_enable="YES"
 
till filen /etc/rc.conf
 
Kopiera sample filerna:
 
  cd /usr/local/etc/nagios
  cp cgi.cfg-sample cgi.cfg
  cp nagios.cfg-sample nagios.cfg
  cp resource.cfg-sample resource.cfg
 
Sen samma sak för alla sample filer i katalogen /usr/local/etc/nagios/objects
 
Kontrollera inställningarna:
 
  server1# nagios -v /usr/local/etc/nagios/nagios.cfg
 
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
 
Website: http://www.nagios.org
Reading configuration data...
  Read main config file okay...
Processing object config file '/usr/local/etc/nagios/objects/commands.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/contacts.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/templates.cfg'...
Processing object config file '/usr/local/etc/nagios/objects/localhost.cfg'...
  Read object config files okay...
 
Running pre-flight check on configuration data...
 
Checking services...
Checked 8 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service 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 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
 
Total Warnings: 0
Total Errors:  0
 
Things look okay - No serious problems were detected during the pre-flight check
 
Addera en nagios admin användare:
 
  server1# htpasswd -c /usr/local/etc/nagios/htpasswd.users nagiosadmin
New password:
Re-type new password:
Adding password for user nagiosadmin
 
[[Category:GammalGuide]]

Latest revision as of 18:52, 24 October 2015

Denna artikel är under utveckling

Lägg till raden:

nagios_enable="YES"

till filen /etc/rc.conf

Kopiera sample filerna:

cd /usr/local/etc/nagios
cp cgi.cfg-sample cgi.cfg
cp nagios.cfg-sample nagios.cfg
cp resource.cfg-sample resource.cfg

Sen samma sak för alla sample filer i katalogen /usr/local/etc/nagios/objects

Kontrollera inställningarna:

server1# nagios -v  /usr/local/etc/nagios/nagios.cfg

Nagios Core 3.2.3 Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 10-03-2010 License: GPL

Website: http://www.nagios.org Reading configuration data...

  Read main config file okay...

Processing object config file '/usr/local/etc/nagios/objects/commands.cfg'... Processing object config file '/usr/local/etc/nagios/objects/contacts.cfg'... Processing object config file '/usr/local/etc/nagios/objects/timeperiods.cfg'... Processing object config file '/usr/local/etc/nagios/objects/templates.cfg'... Processing object config file '/usr/local/etc/nagios/objects/localhost.cfg'...

  Read object config files okay...

Running pre-flight check on configuration data...

Checking services... Checked 8 services. Checking hosts... Checked 1 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service 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 24 commands. Checking time periods... Checked 5 time periods. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings...

Total Warnings: 0 Total Errors: 0

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

Addera en nagios admin användare:

server1# htpasswd -c /usr/local/etc/nagios/htpasswd.users nagiosadmin

New password: Re-type new password: Adding password for user nagiosadmin