Hi there, Icinga2 doc says:
:: Command Timeouts :: :: In Icinga 1.x there were two global options defining a host and service check timeout. This was essentially bad when there only was a couple of check plugins requiring some command timeouts to be extended. :: :: Icinga 2 allows you to specify the command timeout directly on the command. So if your VMVware check plugin takes 15 minutes, increase the timeout accordingly. I am trying to run by_ssh checks with vars.by_ssh_quiet = true vars.by_ssh_timeout = 120 . However the commands will be killed after a timeout of 60secs: warning/Process: Killing process 24170 ('/opt/icinga2/libexec/check_by_ssh' '-C' '/opt/icinga2/libexec/check_ipmi.py -H x.x.x.x -U xx' '-H' 'y.y.y.y' '-q' '-t' '120') after timeout of 60 seconds Maybe this is due to a hardcoded default of 60 secs ? Regards, Konstantin -----Ursprüngliche Nachricht----- Von: icinga-users [mailto:icinga-users-boun...@lists.icinga.org] Im Auftrag von Joseph L. Casale Gesendet: Montag, 29. Dezember 2014 22:22 An: Icinga User's Corner Betreff: Re: [icinga-users] ICINGA2 Switch monitoring Best practice >> The docs have an example for this very use case. >> Check out the apply rules and what you can do with dictionaries and arrays. > Thanks for the answer , can you point me please to that example i must > missed that ,it would be very helpful Well, open a browser to http://docs.icinga.org/icinga2/latest then type Ctrl-f and type "apply" without quotes, you will find the first section that deals with "apply" rules. The example is in the "Using Apply For Rules" heading. The functionality provided by the configuration abilities in Icinga 2 are quite elaborate compared to the original code from Nagios, the docs cover a lot but you will still need to put the time in to discover all you can do with dictionaries and arrays and how these can dynamically manipulate service naming and configuration. jlc _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users Diese Nachricht einschliesslich etwa beigefuegter Anhaenge ist vertraulich und kann dem Bank- und Datengeheimnis unterliegen oder sonst rechtlich geschuetzte Daten und Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender über die Antwortfunktion. Anschliessend moechten Sie bitte diese Nachricht einschliesslich etwa beigefuegter Anhaenge unverzueglich vollstaendig loeschen. Das unerlaubte Kopieren oder Speichern dieser Nachricht und/oder der ihr etwa beigefuegten Anhaenge sowie die unbefugte Weitergabe der darin enthaltenen Daten und Informationen sind nicht gestattet. Wir weisen darauf hin, dass rechtsverbindliche Erklaerungen namens unseres Hauses grundsaetzlich der Unterschriften zweier ausreichend bevollmaechtigter Vertreter unseres Hauses beduerfen. Wir verschicken daher keine rechtsverbindlichen Erklaerungen per E-Mail an Dritte. Demgemaess nehmen wir per E-Mail auch keine rechtsverbindlichen Erklaerungen oder Auftraege von Dritten entgegen. Sollten Sie Schwierigkeiten beim Oeffnen dieser E-Mail haben, wenden Sie sich bitte an den Absender oder an i...@berenberg.de. Please refer to http://www.berenberg.de/my_berenberg/disclaimer_e.html for our confidentiality notice. _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users