Thursday, May 23rd 2013, 5:59pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

melle

Beginner

Posts: 16

Gender: male

Occupation: SAP-Sysadmin

Number of monitoring servers: 1

Nagios Version: -

Icinga Version: Icinga 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~70

Number of services: ~500

OS: Debian Squeeze x86_64

Plugin Version: 1.4.13

IDO-Version: 1.6.1

1

Wednesday, April 25th 2012, 11:31am

IDO-Datenbank: icinga_services.icon_image zu kurz

Hallo zusammen,

wir setzen Icinga 1.6.1 + IDOUtils + Nagios_Grapher und nebenher Icinga-Web ein.

Grundsätzlich funktioniert alles wunderbar - nur ein Detail stört sehr: die im "alten" Icinga-Webinterface via etc/servicext/* durch den Nagios_Grapher eingebauten Graphen auf Icon-Größe (icon_image) sind im neuen Icinga-Web meistens "defekt". Meistens, weil bei kurzen Host/Servicenamen das Problem nicht auftritt.

Der Grund für das Problem ist simpel: da der Nagios_Grapher nicht nur Bild-URLs angibt, sondern auch einen Link einbaut, der die Graphen in voller Pracht zeigen soll, wird die Länge des Strings schnell größer als das Feld icon_image in der Tabelle icinga_services, welches auf 255 Zeichen begrenzt ist.

Reicht es, das Feld in der Datenbank aufzublasen, damit die IDOUtils die Daten korrekt einfüllen? Oder muss auch Coding geändert werden? Falls ja: ich wäre der erste Supporter dieses Requests :D

Tausend Dank!
Andreas

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

2

Wednesday, April 25th 2012, 11:42am

wie sieht denn eine insert/update query zu einem beispiel service aus? (debug log)
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

melle

Beginner

Posts: 16

Gender: male

Occupation: SAP-Sysadmin

Number of monitoring servers: 1

Nagios Version: -

Icinga Version: Icinga 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~70

Number of services: ~500

OS: Debian Squeeze x86_64

Plugin Version: 1.4.13

IDO-Version: 1.6.1

3

Wednesday, April 25th 2012, 11:55am

Hallo Michael,

so:

MySQL queries

1
INSERT INTO icinga_services (instance_id, config_type, host_object_id, service_object_id, display_name, check_command_object_id, check_command_args, eventhandler_command_object_id, eventhandler_command_args, check_timeperiod_object_id, notification_timeperiod_object_id, failure_prediction_options, check_interval, retry_interval, max_check_attempts, first_notification_delay, notification_interval, notify_on_warning, notify_on_unknown, notify_on_critical, notify_on_recovery, notify_on_flapping, notify_on_downtime, stalk_on_ok, stalk_on_warning, stalk_on_unknown, stalk_on_critical, is_volatile, flap_detection_enabled, flap_detection_on_ok, flap_detection_on_warning, flap_detection_on_unknown, flap_detection_on_critical, low_flap_threshold, high_flap_threshold, process_performance_data, freshness_checks_enabled, freshness_threshold, passive_checks_enabled, event_handler_enabled, active_checks_enabled, retain_status_information, retain_nonstatus_information, notifications_enabled, obsess_over_service, failure_prediction_enabled, notes, notes_url, action_url, icon_image, icon_image_alt) VALUES (1, 1, 133, 277, 'KN_CHECK_LOAD_SSH', 48, '3!3!3!6!6!6', 0, '', 95, 101, '', 10.000000, 2.000000, 3, 0.000000, 0.000000, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0.000000, 0.000000, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, '', '', '', 'dot\.png\' alt=\"\" border=\"0\"></a><A TARGET=\"_blank\" HREF=\"graphs\.cgi\?host=hambdfcpspdb&service=KN_CHECK_LOAD_SSH\"><img src=\"/icinga/cgi-bin/rrd2-system\.cgi\?host=hambdfcpspdb&service=KN_CHECK_LOAD_SSH&start=-5400&end=now&title=Actual&width=20&height=20&type=AVERAGE&only-graph=true\"', '') ON DUPLICATE KEY UPDATE host_object_id=133, display_name='KN_CHECK_LOAD_SSH', check_command_object_id=48, check_command_args='3!3!3!6!6!6', eventhandler_command_object_id=0, eventhandler_command_args='', check_timeperiod_object_id=95, notification_timeperiod_object_id=101, failure_prediction_options='', check_interval=10.000000, retry_interval=2.000000, max_check_attempts=3, first_notification_delay=0.000000, notification_interval=0.000000, notify_on_warning=0, notify_on_unknown=0, notify_on_critical=1, notify_on_recovery=1, notify_on_flapping=0, notify_on_downtime=0, stalk_on_ok=0, stalk_on_warning=0, stalk_on_unknown=0, stalk_on_critical=0, is_volatile=0, flap_detection_enabled=1, flap_detection_on_ok=1, flap_detection_on_warning=1, flap_detection_on_unknown=1, flap_detection_on_critical=1, low_flap_threshold=0.000000, high_flap_threshold=0.000000, process_performance_data=1, freshness_checks_enabled=0, freshness_threshold=0, passive_checks_enabled=1, event_handler_enabled=1, active_checks_enabled=1, retain_status_information=1, retain_nonstatus_information=1, notifications_enabled=1, obsess_over_service=1, failure_prediction_enabled=1, notes='', notes_url='', action_url='', icon_image='dot\.png\' alt=\"\" border=\"0\"></a><A TARGET=\"_blank\" HREF=\"graphs\.cgi\?host=hambdfcpspdb&service=KN_CHECK_LOAD_SSH\"><img src=\"/icinga/cgi-bin/rrd2-system\.cgi\?host=hambdfcpspdb&service=KN_CHECK_LOAD_SSH&start=-5400&end=now&title=Actual&width=20&height=20&type=AVERAGE&only-graph=true\"', icon_image_alt=''


Danke + Gruß,
Andreas

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

4

Wednesday, April 25th 2012, 12:48pm

achso, das teil verwendet den icon_image html hack der classic ui. das erklaert die laenge des strings.

soweit ich sehe, schneidet mysql das selbst ab. wenn du also den varchar selbst vergroesserst, sollte das eine loesung darstellen. wahlweise auch mit TEXT, niemand wird eine select query mit where und index auf icon_image machen - so bloed sollte keine gui sein.

Source code

1
2
alter table icinga_hosts modify icon_image TEXT;
alter table icinga_services modify icon_image TEXT;


https://dev.icinga.org/issues/2181 - gehoert diskutiert, inwieweit sich das auf performance auswirken kann.
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

melle

Beginner

Posts: 16

Gender: male

Occupation: SAP-Sysadmin

Number of monitoring servers: 1

Nagios Version: -

Icinga Version: Icinga 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~70

Number of services: ~500

OS: Debian Squeeze x86_64

Plugin Version: 1.4.13

IDO-Version: 1.6.1

5

Wednesday, April 25th 2012, 1:40pm

Ein Traum - passt! 8)

Könnte diese Änderung auch in den Standard-Entwicklungszweig übernommen werden? Wäre toll!

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

6

Wednesday, April 25th 2012, 3:26pm

es stellt sich die frage, ob das nur fuer icon_image sein soll, oder ob man andere varchars auch noch angreift. zb action_url oder notes_url ...
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

melle

Beginner

Posts: 16

Gender: male

Occupation: SAP-Sysadmin

Number of monitoring servers: 1

Nagios Version: -

Icinga Version: Icinga 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~70

Number of services: ~500

OS: Debian Squeeze x86_64

Plugin Version: 1.4.13

IDO-Version: 1.6.1

7

Wednesday, April 25th 2012, 4:15pm

Das stimmt. URLs können auch lang sein ;)

Solange die Spalten nicht aus anderen Gründen als VARCHAR definiert sein müssen, spricht m.E.n. nichts gegen ein generelles Verwenden von TEXT als Feldtyp. Macht vielleicht auch im Sinne zukünftiger Entwicklungen Sinn, Felder nicht unnötiger Weise zu beschränken.

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

8

Wednesday, April 25th 2012, 6:22pm

Das stimmt. URLs können auch lang sein ;)

Solange die Spalten nicht aus anderen Gründen als VARCHAR definiert sein müssen, spricht m.E.n. nichts gegen ein generelles Verwenden von TEXT als Feldtyp. Macht vielleicht auch im Sinne zukünftiger Entwicklungen Sinn, Felder nicht unnötiger Weise zu beschränken.


kannst du das hier bitte testen?
https://git.icinga.org/?p=icinga-core.git;a=commit;h=df4ef62

und dann hier reporten, wenns ok/notok ist?
https://dev.icinga.org/issues/2181

danke!
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

melle

Beginner

Posts: 16

Gender: male

Occupation: SAP-Sysadmin

Number of monitoring servers: 1

Nagios Version: -

Icinga Version: Icinga 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~70

Number of services: ~500

OS: Debian Squeeze x86_64

Plugin Version: 1.4.13

IDO-Version: 1.6.1

9

Thursday, April 26th 2012, 1:33pm

Erledigt :)

Sieht gut aus, keine Probleme bisher mit der aktuellen git-Revision und den Änderungen an der Datenbank. Super!

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

10

Thursday, April 26th 2012, 1:52pm

danke. den hinweis mit idomod changed muessen wir noch wohinpacken, wie geschrieben.

wenn du grade testest, kannst du mir einen gefallen tun und folgendes ebenfalls durchspielen?

https://dev.icinga.org/issues/2536

das ist ein last minute bug, der getestet gehoert.
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

melle

Beginner

Posts: 16

Gender: male

Occupation: SAP-Sysadmin

Number of monitoring servers: 1

Nagios Version: -

Icinga Version: Icinga 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~70

Number of services: ~500

OS: Debian Squeeze x86_64

Plugin Version: 1.4.13

IDO-Version: 1.6.1

11

Thursday, April 26th 2012, 3:10pm

Ich habe mal ein wenig mit den Downtimes rumgespielt, bin mir aber nicht sicher, ob ich alles richtig gemacht habe. Für mich sieht es aber gut aus, anders als tatsächlich erfolgt hätte ich das Verhalten auch nicht erwartet :)

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

12

Thursday, April 26th 2012, 3:32pm

danke. das im issue beschriebene verhalten mit flexible downtimes mit duration kleiner endzeit minus startzeit betrifft die bis dato releas'ten version. eigentlich sollte ja die flexible nach der der duration einfach aus sein. ists aber nicht, weil im code stupide geprueft wird, ob die downtime endtime schon erreicht ist. mit meinem fix, sowie der neuen trigger_time laesst sich diese detektierung speziell fuer flexible downtimes besser loesen.
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

Similar threads