Quantcast
Channel: Monitoring-Portal Feed
Viewing all 1338 articles
Browse latest View live

(gelöst) check_mk_agent nimmt cfg-Datei nicht

$
0
0
Hi,
ich habe unter Linux den check_mk_agent 1.2.4p5 laufen und heute morgen habe ich festgestellt dass er die Infos aus der fileinfo.cfg nicht mehr nimmt. Gibt es eine Art Debug- oder Verbose-Modus um das Problem zu lokalisieren? Laut den Graphen und den Archivdaten des Check_MK-Server klappte das die letzten Wochen problemlos...
Ausgabe aus dem Agent:

Quellcode

1
2
3
4
5
6
7
<<<check_mk>>>
Version: 1.2.4p5
AgentOS: linux
PluginsDirectory: /usr/lib/check_mk_agent/plugins
LocalDirectory: /usr/lib/check_mk_agent/local
SpoolDirectory: /etc/check_mk/spool
AgentDirectory: /etc/check_mk

Quellcode

1
2
3
4
5
6
7
:~ # find / | grep check_mk
/etc/check_mk
/etc/check_mk/cache
/etc/check_mk/cache/ntp.cache
/etc/check_mk/spool
/etc/check_mk/plugins
/etc/check_mk/fileinfo.cfg

Quellcode

1
2
:~ # ls -la /etc/check_mk/fileinfo.cfg
-rw-r--r--    1 root     root          194 Jul  6 11:18 /etc/check_mk/fileinfo.cfg

(gelöst) Hintergrundbild in der Check_MK-Website entfernen

$
0
0
Hi,

ich habe teilweise sehr dünne WAN-Verbindungen und mittels Terminalserver tritt immer das Problem auf dass das Hintergrundbild "gezeichnet" werden muss. Gibt es eine Möglichkeit dies abzuschalten? Es geht um das Hintergrundbild mit den vielen Kreisen sowohl beim Login als auch im Dashboard...

Manipulate service.perfdata

$
0
0
Hi everyone,
is it possibile to manipulate the service.perfdata results in the service or host declaration?
I have a device that reports temperature in this format: 184 is 18,4°. I would like to divide the output valors by 10

Thank you all
Erwin

Admin>Groups>Hostgroup>Restriction

$
0
0
Hallo,

kurze Frage zu Rollen: ich möchte eine Restriction auf Hostgruppen eintragen:
[attach]7361[/attach]
Das Problem: mit Icinga-web, LConf und Icinga2 sucht das "Loading" ewig und lässt sich nur durch den User abbrechen. Ein Ergebnis wird keines gefunden.

Daher die Frage: welche Stelle im PHP Code auch nach was in welcher Datenbank? Diese Info würde helfen, die Ursache zu finden.

Ich habe im http Track nur den Aufruf einer URI .../api/json gesehen, kann aber nicht nachvollziehen, wo das im Code verarbeitet wird. Das Agavi Framework ist mit Linux Hausmitteln (find, grep, less) leider nicht sonderlich zugänglich.

Danke
Volker

Falsche Werte "disk-windows"

$
0
0
Hi,

Ich betreue ein kleines System, welches aus Windowsservern besteht. Die Server sollen bzgl. der Partitionen überwacht werden, so dass diese nicht unbemerkt volllaufen (dieses Problem hatten wir vor kurzem erst sehr konkret). Auf den Win 08R2 und 12R2 Servern ist Icinga 2.3.6 installiert. Nun ist es so, dass zunächst mal die Werte im icingaweb2 seltsam sind. Hier mal ein Beispiel von einem unserer Server:

Zitat

DISK OK - free space:Total 7623GB (36%): C:\ 58 GB (40%): G:\ 27 GB (135%): S:\ 410 GB (10%): T:\ 184 GB (66%): V:\ 17 GB (94%): X:\ 1607 GB (11%): Y:\ 5320 GB (260%):
Zum Vergleich die Ausgabe des Befehls .\check_disk.exe -w 15% -c 10% -u "gb" auf der entsprechenden Maschine:

Zitat

DISK CRITICAL - free space:Total 7623GB (16%); C:\ 58 GB (40%); G:\ 27 GB (3%); S:\ 410 GB (10%); T:\ 184 GB (66%); V:\ 17 GB (94%); X:\ 1607 GB (11%); Y:\ 5320 GB (19%); | C:\=58GB;21.899999999999999;14.600000000000001;0;146 G:\=27GB;123;82;0;820 S:\=410GB;601.79999999999995;401.20000000000005;0;4012 T:\=184GB;41.850000000000001;27.900000000000002;0;279 V:\=17GB;2.6999999999999997;1.8;0;18 X:\=1607GB;2192.6999999999998;1461.8000000000002;0;14618 Y:\=5320GB;4191.75;2794.5;0;27945
Die eingetlichen Werte bzgl. des Speichers, der noch frei ist, sind identisch. Jedoch werden wohl unterschiedliche Werte für die Größe der Partition angenommen. Hier noch kurz die Konfiguration des Dienstes:

Quellcode

1
2
3
4
5
6
7
8
9
10
apply Service for (disk => config in host.vars.disks) {
  import "generic-service"

  check_command = "disk-windows"

  vars += config
  /*vars.disk_win_warn = "15%"*/
  vars.disk_win_crit = "5%"
  vars.disk_win_unit = "gb"
}


Die 15% für die Warnung wurden deaktiviert, da zunächst nur die Warnung und nicht der kritische Fehler ausgegeben wurde, den jedoch die Plate G: hervorrufen soll. Es ist für mich nicht von Bedeutung, dass die Werte im icingaweb2 richtig angezeigt werden, jedoch sollte die Angabe Warung oder kritisch stimmen. Ich habe die Vermutung, dass Icinga nicht nur die Werte mit über 100% anzeigt, sondern auch mit Ihnen arbeitet und deshalb den gesetzten Wert für den kritischen Fehler nicht erreicht.

Da anscheinend das Abrufen der Daten korrekt ist, komme ich hier nicht weiter. Mir fehlt es leider gänzlich an der Idee, woran es liegen könnte. Falls es ein offensichtlich trivialer Fehler ist, möchte ich mich schonmal hier dafür entschuldigen...

Vielen Dank

icinga2 hostgroups empty + database error

$
0
0
Hi. I have Icinga2 installed with icingaweb2. Everything seems to work except for the hostgroups. That page just says "No host groups matching the filter."


I have one Linux remote host, but it is not being picked up and assigned the corresponding "Linux" hostgroup even though it has vars.os="Linux" set.

Also, I get the following errors in my /var/logs/icinga2/icinga2.log:


(0) Executing check for object 'localhost!disk /boot'

[2015-07-12 14:18:21 -0700] critical/IdoPgsqlConnection: Error "ERROR: duplicate key value violates unique constraint "uq_endpointstatus"
DETAIL: Key (endpoint_object_id)=(118927) already exists.
" when executing query "INSERT INTO icinga_endpointstatus (endpoint_object_id, identity, instance_id, is_connected, node, status_update_time) VALUES (118927, E'icinga.example.com', 1, E'1', E'icinga.example.com', TO_TIMESTAMP(1436731908))"
[2015-07-12 14:18:21 -0700] warning/IdoPgsqlConnection: Exception during database operation: Verify that your database is operational!
[2015-07-12 14:18:21 -0700] information/IdoPgsqlConnection: pgSQL IDO instance id: 1 (schema version: '1.13.0')
[2015-07-12 14:18:23 -0700] critical/IdoMysqlConnection: Error "Duplicate entry '3-1-by_ssh_address' for key 'object_id_2'" when executing query "INSERT INTO icinga_customvariables (config_type, has_been_modified, instance_id, is_json, object_id, varname, varvalue) VALUES ('1', '0', 1, '0', 3, 'by_ssh_address', '$check_address$')"
[2015-07-12 14:18:23 -0700] critical/IdoMysqlConnection: Exception during database operation: Verify that your database is operational!
[2015-07-12 14:18:26 -0700] information/IdoMysqlConnection: MySQL IDO instance id: 1 (schema version: '1.13.0')

Please advise..

Icinga 2 & SLA monitoring/reporting

$
0
0
We have been using Icinga 2 for monitoring customer hosts/os/applications/DB's etc for a few months which has been working well for us.

One thing we would like to do next is implement SLA monitoring/reporting for each customer. Ideally with a graph showing a monthly time period with a line across for target SLA and the achieved uptime also being displayed.

In an ideal world I would like to get this info in to a PDF that can be emailled to each customer at the end of every month.

Has anyone done this using Icinga 2? Or know how to implement this?

Any suggestions/ideas would be greatly appreciated.

check_sql nutzen, um Oracle zu überwachen

$
0
0
Hallo zusammen,

Ich bin mir nicht ganz sicher, ob ich hier richtig bin. Falls nicht, dann bitte Link zum richtigen Forum posten und ich werde mich dort nochmal melden ;-)

Ich habe über das WATO einen Active Check (Check SQL Database) eingerichtet, um auf unsere Oracle Datenbank zuzugreifen. Bis jetzt war das Ganze ziemlich kompliziert, aber ich habe alles nach der Anleitung hier einrichten können. In der Bash konnte ich durch sqlplus bereits eine Abfrage auf dem Server absetzen, daher denke ich, dass die Installation der meisten Dinge bereits funktioniert hat.

Nun erhalte ich aber die folgende Fehlermeldung (siehe auch Bild im Anhang):
UNKNOWN - Error while connecting to database: libclntsh.so.12.1: cannot open shared object file: No such file or directory

Wenn ich die Fehlermeldung selbst google, dann spuckt Google meist aus, dass der Fehler ist, dass $LD_LIBRARY_PATH nicht korrekt ist. Dies habe ich aber bereits X-Mal geprüft und neu eingetippt. Und da die Abfrage in der Bash funktioniert liegt der Fehler vermutlich nicht hier (denke ich zumindest)...

Hat jemand von euch eine Idee, wo das Problem sein könnte?

PS: Ich habe noch gelesen, dass die Environment-Variabeln auch mit dem Apache exportiert werden können. Muss ich eventuell das noch machen? Was ist dabei wichtig zu wissen?

Interface-Status: In der Ausgabe einzelne Interfaces ausblenden

$
0
0
Hallo,

gibt es die Möglichkeit beim Modus "interface-status" bei der Ausgabe einzelne Interfaces auszufiltern?
Im Speziellen geht es um das Interface "Adaptive Security Appliance '0' interface".
Hab es schon mit dem Parameter "blacklist" versucht. Leider ohne Erfolg. Auch ein negativer Regex in Verbindung mit dem Modus "name" hat nicht funktioniert
icinga@xxxxx01:~/contrib> ./check_nwc_health --hostname fw-xxx --mode interface-status

CRITICAL - fault condition is presumed to exist on Adaptive Security Appliance '0' interface, Adaptive Security Appliance 'GigabitEthernet0/2' interface is admin down, Adaptive Security Appliance 'int_aspisa_3458' interface is admin down, Adaptive Security Appliance 'int_aspisa_3461' interface is admin down, Adaptive Security Appliance 'int_aspisa_3872' interface is admin down, Adaptive Security Appliance 'int_aspisa_3879' interface is admin down, Adaptive Security Appliance 'int_aspisa_3880' interface is admin down, Adaptive Security Appliance 'int_aspisa_3882' interface is admin down, Adaptive Security Appliance 'int_aspisa_3883' interface is admin down, Adaptive Security Appliance 'Null0' interface is up/up, Adaptive Security Appliance '0' interface is down/up, Adaptive Security Appliance 'int_aspisa_602' interface is up/up, Adaptive Security Appliance 'int_aspisa_649' interface is up/up, Adaptive Security Appliance 'GigabitEthernet0/2' interface is down/down, Adaptive Security Appliance 'sync' interface is up/up, Adaptive Security Appliance 'int_aspisa_798' interface is up/up, Adaptive Security Appliance 'Internal-Data0/0' interface is up/up, Adaptive Security Appliance 'int_aspisa_732' interface is up/up, Adaptive Security Appliance 'int_aspisa_1956' interface is up/up, Adaptive Security Appliance 'int_aspisa_3885' interface is up/up, Adaptive Security Appliance 'Trunk-asp2-dmz' interface is up/up, Adaptive Security Appliance 'Internal-Data1/0' interface is up/up, Adaptive Security Appliance 'Virtual254' interface is up/up, Adaptive Security Appliance 'int_aspisa_3458' interface is down/down, Adaptive Security Appliance 'int_aspisa_3461' interface is down/down, Adaptive Security Appliance 'int_aspisa_3872' interface is down/down, Adaptive Security Appliance 'int_aspisa_3879' interface is down/down, Adaptive Security Appliance 'int_aspisa_3880' interface is down/down, Adaptive Security Appliance 'int_aspisa_3882' interface is down/down, Adaptive Security Appliance 'int_aspisa_3883' interface is down/down, Adaptive Security Appliance 'int_aspisa_3888' interface is up/up

Gruß

Torsten

Icinga2 Windows Doku

$
0
0
Hallo zusammen,

ich habe nach viel Suchererei und Probiererei ein lauffähiges Icinga2 mit der neuen Oberfläche.
(habe nach dieser Anleitung gehandelt http://igorshp.de/2015/05/icinga2-installation-unter-ubuntu/)

Nun stehe ich vor dem Problem, dass ich gerne meine Windows Server etc überwachen möchte, jedoch finde ich fast ausschließlich Hilfen für Icinga1 oder Nagios.
Hat jemand ne Anleitung oder ein Tutorial mit dem man hier wirklich arbeiten kann?

Habe auch was mitbekommen von einer Möglichkeit Windows Rechner mit einem Icinga Setup Wizard aufzunehmen, jedoch erhalte ich hiermit keine Ticketnummer

Quellcode

1
icinga pki ticket --cn PC-Name

bekomme hier entweder Ticket salt (--salt) must be specified, oder Error while parsing command-line options: unrecognised option -cn

Ich bin kein Programmierer und ich habs eigentlich weniger mit Linux zu tun.

Wäre sehr nett wenn mir jemand helfen könnte.

Vielen Dank

HostGroup assign regex

$
0
0
Hi there,

can someone tell me what regex commands are allowed.
I have a host with host.name = "s1234567xxx1"

I want to assign a HostGroup like this:
assign where regex("^s\d{7}wus[0-9]")

I could not find anything about in the documentation.

Thanks in advance

Aktualisierung auf der Oberfläche von Icinga2 | NSclient++

$
0
0
Hi ich habe ein kleines Problem.
Ich habe auf einem Windows host eine Logdatei wo sich der Pfad monatlich ändert. Das Programm welches diese erstellt ist von mir Programmiert wurden, ich habe zusätzlich eine datei unter C:\windows\temp erstellt in der der Pfad zu der Logdatei drinnen steht. Nun habe ich meinem NSClient++ ein commando in die ini hinzgefügt welches diese Datei ausliest und so den Pfad zu logsdatei bekommt Anschließend wird die Logdatei ausgelesen und per echo (type) an den NSClient gegeben

Quellcode

1
set /p log=<"C:\Windows\Temp\beispieldatei.txt" 
(hier steht der pfad zur logdatei drinen)

Quellcode

1
type %log%



. Allerdings sehe ich dann auf der Icinga weboberfläche immer nur die erste ausführung der bat Datei. Sprich das Logfile wird nur einmal ausgelesen dann angezeigt das wars dann aber auch. Ich wollte diese Logdatei aber in echtzeit auslesen und an die Icinga-Oberfäche senden. Wie kann ich der Icinga oberfläche sagen das sie das machen soll? Die logdatei verändert sich alle 10 sekunden. Wenn ich auf Jetzt Prüfen für den Service klicke sagt er er hätte es ausgeführt aber der Inhalt verändert sich nicht. Vielleicht mache ich ja auch was falsch bin komplett neu in Icinga... Würde halt gerne in Echtzeit den Log vom Windows Host auf der Weboberfläche von Icinga sehen und dies sollte zu 100% genau sein und keine abweicheungen haben. Es sind dort Zeitstempel hinterlegt und diese müssen sekundengenau auf der Weboberfläche erscheinen.

Command auf dem Icinga ist ein generic_service mit check_nrpe und als vars.remote check_tcp

die zeile in der nsclient++ ini sieht so aus:
check_tcp = scripts\get_tcp_log.bat


wenn ich die bat lokal ausführe ist der inhalt immer aktuell

weis irgendwie nicht weiter. ?(


Danke schonmal :) :] :] :]

Performance counter mit check_nt + Graphen mit pnp4nagios

$
0
0
Hallo zusammen,

ich stehe vor einem Problem, dass ich gerade nicht lösen kann.
  1. Ich möchte aus einer Windows-Umgebung performace counter auslesen z.B. die Anzahl der Prozesse.
  2. Die ermittelten performace daten sollen mit pnp4nagios graphisch aufbereitet werden.

Dazu habe ich auf dem Windows-Client den NSClient++ installiert und frage die performace counter mit dem check_nt plugin ab. Soweit so gut, das tut schon mal.

Nun zu der zweiten "Hürde" - die performance data sollten mit pnp4nagios aufbereitet werden. ... und das will nicht klappen ?(

commands.cfg

Zitat


define command{
command_name check_nt_processes
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v COUNTER -l "\System\Prozesse","Prozesse, c" -w $ARG1$ -c $ARG2$ -s $ARG3$
}

windows_server.cfg

Zitat


define service{
use MY-service,srv-pnp ; Name of service template to use
host_name windows_srv
service_description Prozesse
check_command check_nt_processes!150!190!<password>
}

Ausgabe perfdata.log

Zitat

2015-07-14 15:54:09 [5951] [1] process_perfdata.pl-0.6.24 starting in BULK Mode called by NPCD
2015-07-14 15:54:09 [5951] [2] searching for /usr/local/pnp4nagios/var/spool/service-perfdata.1436882047
2015-07-14 15:54:09 [5951] [2] renaming /usr/local/pnp4nagios/var/spool/service-perfdata.1436882047 to /usr/local/pnp4nagios/var/spool/service-perfdata.1436882047-PID-5951 for bulk update
2015-07-14 15:54:09 [5951] [2] reading /usr/local/pnp4nagios/var/spool/service-perfdata.1436882047-PID-5951 for bulk update
2015-07-14 15:54:09 [5951] [2] Processing Line 1
2015-07-14 15:54:09 [5951] [2] Datatype set to 'SERVICEPERFDATA'
2015-07-14 15:54:09 [5951] [1] Found Performance Data for windows_srv / Prozesse (Prozesse=140,000000 c;150,000000;190,000000;)
2015-07-14 15:54:09 [5951] [2] No pattern match in function _parse(c;150.000000;190.000000; )
2015-07-14 15:54:09 [5951] [1] Invalid Perfdata detected
2015-07-14 15:54:09 [5951] [1] 1 lines processed
2015-07-14 15:54:09 [5951] [1] /usr/local/pnp4nagios/var/spool/service-perfdata.1436882047-PID-5951 deleted
2015-07-14 15:54:09 [5950] [2] Default Timeout: 15 secs.
2015-07-14 15:54:09 [5950] [2] Config Timeout: 15 secs.
2015-07-14 15:54:09 [5950] [2] Actual Timeout: 15 secs.
2015-07-14 15:54:09 [5951] [2] data2rrd called
2015-07-14 15:54:09 [5950] [1] process_perfdata.pl-0.6.24 starting in BULK Mode called by NPCD
2015-07-14 15:54:09 [5951] [2] RRDs::update /usr/local/pnp4nagios/var/perfdata/.pnp-internal/runtime_runtime.rrd 1436882033:0.007208
2015-07-14 15:54:09 [5950] [2] searching for /usr/local/pnp4nagios/var/spool/host-perfdata.1436882046
2015-07-14 15:54:09 [5950] [2] renaming /usr/local/pnp4nagios/var/spool/host-perfdata.1436882046 to /usr/local/pnp4nagios/var/spool/host-perfdata.1436882046-PID-5950 for bulk update

Meine Vermutung ist, dass das Plugin check_nt die perforamance daten nicht so liefern kann wie es das pnp4nagios erwartet? ...oder liegt es an meiner Konfig/Aufruf??

Danke.
Gruß
navigato

Icinga 2 - Verbindung der verschiedenen Instanzen

$
0
0
Hallo,

mich würde nur mal interessieren,ob es sich bei den Verbindungen zwischen verschiedenen Icinga-Instanzen um eine dauerhafte Verbindung handelt oder die alle 5 Sekunden aufgebaut wird (Annahme aufgrund von Log-Meldungen, wenn nicht connected)? Welches Protokoll liegt der Übertragung zu Grunde? Habe bisher dazu nichts in der Doku oder sonstwo gefunden...nur halt, dass mit TLS verschlüsselt wird.

Im Vergleich dazu wäre gearman für mich auch noch interessant. da wird ja soweit ich weiß ein eigenes Protokoll benutzt. Die Verbindung dort ist dauerhaft? (vermute ich zumindest, Bestätigung oder Verneinung wäre nett :=D)

rrdcached and flushcache

$
0
0
Greetings!

I've implemented rrdcached, and it is working.
However, when browsing none of the graphs are flushed real time.

I've searched through the code and the config, and I could not find any reference to "flushcached".

I've done some searched and found that when rrdtool requests a graph is asked for a flush. That is not happening for me.

(http://www.monitoring-portal.org/wbb/ind…lush#post177720)


Understanding the data might be provided to the graph before the writes are complete, a simple refresh should resolve this.
But my graphs are shwowing blanks for many minutes. I've attached a graph that shows a blank space at the end.

If I manually run the "flushcached" from rrdtool the graph is filled.

I verified the graphs are being generated with the --daemon option.

RRDtool 1.5.3 Copyright by Tobias Oetiker <tobi@oetiker.ch>
Compiled May 21 2015 10:35:57

Any suggestions?

[Icinga2] Node configuration master and satellite

$
0
0
Hello everybody

I want monitoring 10 servers, and 10 services by server like disk, load, mysql.

To begin, I installed Icinga2 in all servers ( configuration satellite). I would like a clustering configuration (distributed configuration), I configured one server in node master, it wait results of satellites.

But, I have a lot of zones, and I would like a master node "local" by zone. By zone, a lot of node "clients" will be configured to give monitoring informations to Icinga node master "local".

The master "global" give its configuration to each master "local" and each node "client".

In my picture, Master/Master is the master "global", Master/Slave is a master "local" and each Slave is a node "client".


Thanks you for your help.

Nagios Notification sobald Performance Daten sich erhöhen

$
0
0
Hallo,

ich benutze Nagios zu Überwachung meiner Datenqualität und als Performancedaten wird mir die Anzahl der Fehlerfälle übermittelt.

Zurzeit bekomme ich jedesmal eine Notification sobald sich der Status ändert. Wie kann ich es einstellen das ich zusätzlich eine Meldung erhalte wenn sich die Performancedaten erhöhen (also bspw. ein oder mehrere Fehlerfälle hinzugekommen sind)?

Vielen Dank!

"No input file specified" beim PNP4Nagios über omd 1.20 Installation auf Ubuntu 14.04

$
0
0
Hallo,

hat jemand schon Erfahrung gemacht bei der Installation von OMD auf Ubuntu 14.04 LTS? Problem bei mir ist, das beim öffnen von PNP4Nagios die Fehlermeldung "No input file specified" erscheint. Ich habe das folgendes Paket verwendet: http://files.omdistro.org/releases/debia…rusty.amd64.deb
Das ungewöhnliche ist, dass auf einem frisch installiertem 14.04er Ubuntu der gleiche Fehler auftaucht. Rechtemäßig funktioniert ansonsten alles.

Ich nutze die PHP Version => 5.5.9-1ubuntu4.11. Habe schon gegoogelt, aber bis jetzt noch keine Lösung gefunden.

Long query time in a restricted dashboard

$
0
0
Hi,

We're using icingaweb2 + icinga2. I noticed that when i create a new role in icingaweb2 with two filters like "hostgroup_name=arcade_dashboard&servicegroup_name=arcade_dashboard" and add this role to a user that this dashboard is extremly slow, especially the service part. I can see some huge mysql querys like every 10 seconds when i'm just logged in.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Time: 150715  9:31:34
# User@Host: icinga2[icinga2] @ localhost []
# Thread_id: 607829  Schema: icinga2  QC_hit: No
# Query_time: 5.024781  Lock_time: 0.000461  Rows_sent: 1  Rows_examined: 2552
SET timestamp=1436945494;
SELECT COUNT(*) AS cnt FROM (SELECT DISTINCT ho.name1 AS host_name, h.display_name COLLATE latin1_general_ci AS host_display_name, h.notes AS host_notes, CASE WHEN hs.has_been_checked = 0 OR hs.has_been_checked IS NULL THEN 99 ELSE hs.current_state END AS host_state, hs.state_type AS host_state_type, UNIX_TIMESTAMP(hs.last_state_change) AS host_last_state_change, h.address AS host_address, CASE WHEN (hs.problem_has_been_acknowledged + hs.scheduled_downtime_depth) > 0 THEN 1 ELSE 0 END AS host_handled, so.name2 AS service_description, s.display_name COLLATE latin1_general_ci AS service_display_name, s.notes AS service_notes, CASE WHEN ss.has_been_checked = 0 OR ss.has_been_checked IS NULL THEN 99 ELSE ss.current_state END AS service_state, CASE WHEN (ss.scheduled_downtime_depth = 0 OR ss.scheduled_downtime_depth IS NULL) THEN 0 ELSE 1 END AS service_in_downtime, ss.problem_has_been_acknowledged AS service_acknowledged, CASE WHEN (ss.problem_has_been_acknowledged + ss.scheduled_downtime_depth + COALESCE(hs.current_state, 0)) > 0 THEN 1 ELSE 0 END AS service_handled, ss.output AS service_output, ss.perfdata AS service_perfdata, ss.current_check_attempt || '/' || ss.max_check_attempts AS service_attempt, UNIX_TIMESTAMP(ss.last_state_change) AS service_last_state_change, s.icon_image AS service_icon_image, s.icon_image_alt AS service_icon_image_alt, ss.is_flapping AS service_is_flapping, ss.state_type AS service_state_type, CASE WHEN ss.current_state = 0 THEN CASE WHEN ss.has_been_checked = 0 OR ss.has_been_checked IS NULL THEN 16 ELSE 0 END + CASE WHEN ss.problem_has_been_acknowledged = 1 THEN 2 ELSE CASE WHEN ss.scheduled_downtime_depth > 0 THEN 1 ELSE 4 END END ELSE CASE WHEN ss.has_been_checked = 0 OR ss.has_been_checked IS NULL THEN 16 WHEN ss.current_state = 1 THEN 32 WHEN ss.current_state = 2 THEN 128 WHEN ss.current_state = 3 THEN 64 ELSE 256 END + CASE WHEN hs.current_state > 0 THEN 1024 ELSE CASE WHEN ss.problem_has_been_acknowledged = 1 THEN 512 ELSE CASE WHEN ss.scheduled_downtime_depth > 0 THEN 256 ELSE 2048 END END END END + CASE WHEN ss.state_type = 1 THEN 8 ELSE 0 END AS service_severity, UNIX_TIMESTAMP(ss.last_check) AS service_last_check, ss.notifications_enabled AS service_notifications_enabled, s.action_url AS service_action_url, s.notes_url AS service_notes_url, slcg.last_comment_data AS service_last_comment, slca.last_ack_data AS service_last_ack, slcd.last_downtime_data AS service_last_downtime, ss.active_checks_enabled AS service_active_checks_enabled, ss.passive_checks_enabled AS service_passive_checks_enabled, ss.current_check_attempt, ss.max_check_attempts FROM icinga_objects AS ho
 INNER JOIN icinga_hoststatus AS hs ON ho.object_id = hs.host_object_id AND ho.is_active = 1 AND ho.objecttype_id = 1
 INNER JOIN icinga_hosts AS h ON hs.host_object_id = h.host_object_id
 INNER JOIN icinga_services AS s ON s.host_object_id = h.host_object_id
 INNER JOIN icinga_objects AS so ON so.object_id = s.service_object_id AND so.is_active = 1
 INNER JOIN icinga_servicestatus AS ss ON so.object_id = ss.service_object_id
 LEFT JOIN (SELECT c.object_id, '[' || c.author_name || '] ' || c.comment_data AS last_comment_data FROM icinga_comments c JOIN ( SELECT MAX(comment_id) AS comment_id, object_id FROM icinga_comments WHERE entry_type = 1 GROUP BY object_id ) lc ON c.comment_id = lc.comment_id) AS slcg ON slcg.object_id = ss.service_object_id
 LEFT JOIN (SELECT c.object_id, '[' || c.author_name || '] ' || c.comment_data AS last_ack_data FROM icinga_comments c JOIN ( SELECT MAX(comment_id) AS comment_id, object_id FROM icinga_comments WHERE entry_type = 4 GROUP BY object_id ) lc ON c.comment_id = lc.comment_id) AS slca ON slca.object_id = ss.service_object_id
 LEFT JOIN (SELECT c.object_id, '[' || c.author_name || '] ' || c.comment_data AS last_downtime_data FROM icinga_comments c JOIN ( SELECT MAX(comment_id) AS comment_id, object_id FROM icinga_comments WHERE entry_type = 2 GROUP BY object_id ) lc ON c.comment_id = lc.comment_id) AS slcd ON slcd.object_id = ss.service_object_id
 LEFT JOIN icinga_hostgroup_members AS hgm ON hgm.host_object_id = s.host_object_id
 LEFT JOIN icinga_hostgroups AS hg ON hgm.hostgroup_id = hg.hostgroup_id
 LEFT JOIN icinga_objects AS hgo ON hgo.object_id = hg.hostgroup_object_id AND hgo.is_active = 1
 LEFT JOIN icinga_servicegroup_members AS sgm ON sgm.service_object_id = s.service_object_id
 LEFT JOIN icinga_servicegroups AS sg ON sgm.servicegroup_id = sg.servicegroup_id
 LEFT JOIN icinga_objects AS sgo ON sgo.object_id = sg.servicegroup_object_id AND sgo.is_active = 1 WHERE ( (ss.current_state > 0 AND CASE WHEN (ss.problem_has_been_acknowledged + ss.scheduled_downtime_depth + COALESCE(hs.current_state, 0)) > 0 THEN 1 ELSE 0 END = '0' AND ss.state_type = '1')  AND  ( (hgo.name1 = 'arcade_dashboard' AND sgo.name1 = 'arcade_dashboard') ) )) AS t;



The problem is just with the services i.e when i click the service overview, it'll take up to 5 seconds till the services appear. On the other hand, the same with the host overview it gets displayed almost instantly. As you can imagine, when multiple users work with this role, the whole server gets laggy.

Does anyone have an input on this?

Regards
Reto

How to backup IcingaWeb2-Dashboards?

$
0
0
Hello everyone,

thanks a lot for this nice community and sharing your knowledge.

I am currently tinkering on a puppet script that automatically sets up 'our monitoring stack' which consists of icinga2 + icingaweb2 and an ELK that reports critical log entries to icinga2.

Right now I am struggeling to find out how to backup (my manually set up) dashboards in order to automatically 'restore' them within my puppet script.

Any help is highly appreciated. :)


Thanks a lot in advance!


BR


Max
Viewing all 1338 articles
Browse latest View live