[icinga-devel] Tried to install icinga2 it fails

john s. fireskyer at emailn.de
Mon Nov 12 13:53:35 CET 2012


Hello there

Here ist my state file from icinga2


icinga2.state:
#################
592:{"name":"localhost-current  
load","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456417912808e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456418203030e+09,"execution_start":1.352456418202360e+09,"output":"","performance_data_raw":"","schedule_end":1.352456418203087e+09,"schedule_start":1.352456417517926e+09,"state":3},"tx":1.352456417912808e+09,"type":4},"next_check":{"data":1352456477,"tx":1.352456417912808e+09,"type":4},"state":{"data":3,"tx":1.352456417912808e+09,"type":4}}}},593:{"name":"localhost-current  
users","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456474650184e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456475348655e+09,"execution_start":1.352456475347619e+09,"output":"","performance_data_raw":"","schedule_end":1.352456475348726e+09,"schedule_start":1.352456474650807e+09,"state":3},"tx":1.352456474650184e+09,"type":4},"next_check":{"data":1352456534,"tx":1.352456474650184e+09,"type":4},"state":{"data":3,"tx":1.352456474650184e+09,"type":4}}}},584:{"name":"localhost-demo","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456463630601e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456464317156e+09,"execution_start":1.352456464315529e+09,"output":"","performance_data_raw":"","schedule_end":1.352456464317251e+09,"schedule_start":1.352456463631382e+09,"state":3},"tx":1 
.352456463630601e+09,"type":4},"next_check":{"data":1352456523,"tx":1.352456463630601e+09,"type":4},"state":{"data":3,"tx":1.352456463630601e+09,"type":4}}}},590:{"name":"localhost-disk  
space","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456465635481e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456466324014e+09,"execution_start":1.352456466322957e+09,"output":"","performance_data_raw":"","schedule_end":1.352456466324087e+09,"schedule_start":1.352456465635739e+09,"state":3},"tx":1.352456465635481e+09,"type":4},"next_check":{"data":1352456525,"tx":1.352456465635481e+09,"type":4},"state":{"data":3,"tx":1.352456465635481e+09,"type":4}}}},584:{"name":"localhost-http","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456467913395e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456468331057e+09,"execution_start":1.352456468330388e+09,"output":"","performance_data_raw":"","schedule_end":1.352456468331114e+09,"schedule_start":1.352456467638256e+09,"state":3},"tx":1 
.352456467913395e+09,"type":4},"next_check":{"data":1352456527,"tx":1.352456467913395e+09,"type":4},"state":{"data":3,"tx":1.352456467913395e+09,"type":4}}}},585:{"name":"localhost-ping4","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456466324572e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456466324713e+09,"execution_start":1.352456466323587e+09,"output":"","performance_data_raw":"","schedule_end":1.352456466324746e+09,"schedule_start":1.352456465635945e+09,"state":3},"tx":1.352456466324572e+09,"type":4},"next_check":{"data":1352456525,"tx":1.352456466324572e+09,"type":4},"state":{"data":3,"tx":1.352456466324572e+09,"type":4}}}},585:{"name":"localhost-ping6","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456475349212e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456475 
349354e+09,"execution_start":1.352456475348231e+09,"output":"","performance_data_raw":"","schedule_end":1.352456475349388e+09,"schedule_start":1.352456474650989e+09,"state":3},"tx":1.352456475349212e+09,"type":4},"next_check":{"data":1352456534,"tx":1.352456475349212e+09,"type":4},"state":{"data":3,"tx":1.352456475349212e+09,"type":4}}}},583:{"name":"localhost-ssh","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456448596156e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456449279384e+09,"execution_start":1.352456449278648e+09,"output":"","performance_data_raw":"","schedule_end":1.352456449279445e+09,"schedule_start":1.352456448596489e+09,"state":3},"tx":1.352456448596156e+09,"type":4},"next_check":{"data":1352456508,"tx":1.352456448596156e+09,"type":4},"state":{"data":3,"tx":1.352456448596156e+09,"type":4}}}},595:{"name":"localhost-total  
processes","type":"Service","update":{"attrs":{"check_attempt":{"data":1,"tx":1.352456451601053e+09,"type":4},"checker":{"data":"local:checker","tx":1.352192575769976e+09,"type":4},"last_result":{"data":{"execution_end":1.352456452286729e+09,"execution_start":1.352456452286042e+09,"output":"","performance_data_raw":"","schedule_end":1.352456452286788e+09,"schedule_start":1.352456451601589e+09,"state":3},"tx":1.352456451601053e+09,"type":4},"next_check":{"data":1352456511,"tx":1.352456451601053e+09,"type":4},"state":{"data":3,"tx":1.352456451601053e+09,"type":4}}}},
#################################


and here is my config file:

#########
/**
* Icinga 2 configuration file
* - this is where you define settings for the Icinga application including
* which hosts/services to check.
*
* The docs/icinga2-config.txt file in the source tarball has a detailed
* description of what configuration options are available.
*/

/**
* Global configuration settings
*/
local object IcingaApplication "icinga" {
pid_path = "./var/run/icinga2.pid",
state_path = "./var/lib/icinga2/icinga2.state",

macros = {
plugindir = "/usr/local/icinga/libexec"
}
}

/**
* Advanced logging settings
*/
local object Logger "my-debug-log" {
type = "console",
severity = "debug"
}

/**
* The checker component takes care of executing service checks.
*/
local object Component "checker" {

}

/**
* The delegation component assigns services to checkers. You need to load
* this component even if your Icinga setup only consists of a single  
instance.
*/
local object Component "delegation" {

}

/**
* The compat component periodically updates the status.dat and  
objects.cache
* files. These are used by the Icinga 1.x CGIs to display the state of
* hosts and services.
*/
local object Component "compat" {
status_path = "./var/cache/icinga2/status.dat",
objects_path = "./var/cache/icinga2/objects.cache",
}

/**
* The compatido component works as idomod connector to a running ido2db
* daemon, connected via tcp socket only. It will dump config and status
* information periodically for now. By default, this remains disabled.
*/
/*
local object Component "compatido" {
socket_address = "127.0.0.1",
socket_port = "5668",
instance_name = "i2-default",
reconnect_interval = 15,
}
*/

/**
* This template defines some basic parameters for services that use
* external plugins for their checks.
*/
abstract object Service "icinga-service" {
methods = {
check = "native::PluginCheck"
}
}

/**
* The service templates for checks. In an Icinga 1.x environment
* this would be defined as a check command.
*/

/**
* ping
*/
abstract object Service "ping4" inherits "icinga-service" {
check_command = "$plugindir$/check_ping -H $address$ -w $wrta$,$wpl$% -c  
$crta$,$cpl$%",
macros += {
wrta = 50,
wpl = 5,
crta = 100,
cpl = 10
}
}

abstract object Service "ping6" inherits "icinga-service" {
check_command = "$plugindir$/check_ping -6 -H $address6$ -w $wrta$,$wpl$%  
-c $crta$,$cpl$%",
macros += {
wrta = 50,
wpl = 5,
crta = 100,
cpl = 10
}
}

/**
* http
*/
abstract object Service "http" inherits "icinga-service" {
check_command = "$plugindir$/check_http -H '$address$' -I '$address$'",
}

/**
* ssh
*/
abstract object Service "ssh" inherits "icinga-service" {
check_command = "$plugindir$/check_ssh '$address$'",
}

/**
* local checks
*/
abstract object Service "disk space" inherits "icinga-service" {
check_command = "$plugindir$/check_disk -w '$wfree$' -c '$cfree$'",
macros += {
wfree = "20%",
cfree = "10%",
}
}

abstract object Service "current users" inherits "icinga-service" {
check_command = "$plugindir$/check_users -w '$wgreater$' -c '$cgreater$'",
macros += {
wgreater = 20,
cgreater = 50,
}
}

abstract object Service "total processes" inherits "icinga-service" {
check_command = "$plugindir$/check_procs -w '$wgreater$' -c '$cgreater$'",
macros += {
wgreater = 250,
cgreater = 400,
}
}

abstract object Service "current load" inherits "icinga-service" {
check_command = "$plugindir$/check_load  
--warning='$wload1$,$wload5$,$wload15$'  
--critical='$cload1$,$cload5$,$cload15$'",
macros += {
wload1 = 5.0,
wload5 = 4.0,
wload15 = 3.0,
cload1 = 10.0,
cload5 = 6.0,
cload15 = 4.0,
}
}

/**
* demo check
*/
abstract object Service "demo" inherits "icinga-service" {
check_command = "$plugindir$/check_dummy 1 'strawberry. yummy! | i=2'",
}


/**
* And finally we define some host that should be checked.
*/
object Host "localhost" {
services = {
"ping4", "ping6",
"http", "ssh",
"current load", "total processes",
"current users", "disk space",
"demo",
},
macros = {
address = "127.0.0.1",
address6 = "::1",
},
check_interval = 1m
}
###########

I have nothing changed just follwed the manual on the homepage ...

The command is: sbin/icinga2 -c etc/icinga2/icinga2.conf

regards john s.


Am 06.11.2012, 19:24 Uhr, schrieb Michael Friedrich  
<michael.friedrich at gmail.com>:

> icinga2.state



-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-devel/attachments/20121112/a7beab30/attachment.html>


More information about the icinga-devel mailing list