-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/15/2014 2:05 PM, Michael Friedrich wrote:
> On 15.01.2014 17:50, Mark Haney wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> I have a router that I want to keep an eye on, not so much that
>> it's up but that the ping latency gets to a certain threshold.
>> It's a router at our second office in WI whereas I'm in NC.
>> 
>> Is there a way to setup a threshold for that in Icinga2?  If so,
>> how? This particular thorn in my side is primarily why I setup
>> Icinga in the first place.  IIRC, Nagios had a method of doing
>> it, but the last time I played with Nagios was nearly a decade
>> ago.
> 
> If there's the need of integrating additional plugins, Icinga 2
> and Icinga 1.x share the same plugins. In your case you'll probably
> want check_ping or check_icmp.
> 
> Further details on integrating new plugins are found on the docs in
> the section " 2.3 Setting up Check Plugins" at (currently) 
> http://docs.icinga.org/icinga2/snapshot/
> 
> The Icinga Template Library (ITL) already provides a CheckCommand
> named "ping4" (details as well on the docs). The CheckCommand
> itsself already defines some default macros used as threshold if
> your service doesn't set any (like the sample localhost.conf
> does).
> 
> I know, there are some best practice docs missing, showcasing the
> ping use case.
> 
> Try the following
> 
> object Host "foo" inherits "generic-host" { ... services["ping4"] =
> { templates = [ "generic-service" ]. check_command = "ping4", 
> macros = { "wrta" = 200, "wpl" = 10, "crta" = 500, "cpl" = 20 
> "packets" = 3, } } }
> 
> You may of course use your own CheckCommand, and freely define the 
> macros and their names. The ITL just ships the basic templates
> everyone needs from our experience in the past years.
> 
> As already remarked in the other thread, the documentation requires
> your help. If you find anything useful and want to improve it, just
> do the following
> 
> - fork us on github, clone it locally - cd icinga2 && cd doc - vim
> file.md (markdown syntax is easy) - send a pull request - open a
> new issue at https://dev.icinga.org in the Icinga 2 section
> 
> That way everyone may contribute and speed up the way to the final 
> version :)
> 
>> 
>> Any help would be appreciated.  So far, I'm absolutely loving
>> Icinga2. It's just fantastic.
> 
> :-)
> 

I was hoping that this would be an option with the existing ping4
service.  Your config is exactly what I needed.

Now, I have two more questions.

Where is the services like ping4 defined?  I can't seem to find them.
 (But then it's probably under my nose.)

Also, I can't seem to get notifications setup correctly. I'm wondering
if there is an additional step that's not listed in the online docs;
sendmail configuration or something?

As far as contributing goes, I'll be happy too. I really need to get
much more familiar with it before I start offering changes.  I have
spent the last 5 years semi-retired (in my late 30s no less), having 6
surgeries to repair badly arthritic joints, and I've been back in full
time IT less than 6 months.  Pulling up all the old IT knowledge is
getting easier, but I'm not even close to being able to do what I
could back when I worked for NOAA.

But, I'm making plenty of notes, and hopefully they will be of some
use when I'm happy with them.



- -- 
Mark Haney
Network Administrator/IT Support
Practichem
W:919-714-8428
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS1uBLAAoJEDgEuzPE0JQv88gH/3+eZ84Hx9/Gueel9oJzs+eK
bVU7oIhFL6T0OJ5wzI6gP0aRFGLRSBfYKHB7D7xcLF8luwSvIFEDSJF6td1vqFz+
8w0FkabSIza7l9xCgPI3tdt4nxRmHKGf53R6HZrXz5By7eB/XWQKRnD8mi516U6Z
HzpPHhcjaWwsGnIObMP5GSIrf21JGGF1MqbD0Cf5uey5MFHomEXsNS5eHzxS/vLD
KC53cCqP+nkC947JHDE8xvpH3HCzYOI9B9kvIGj5QgvE1EFNbBscntJLZJkp9xPe
co1zjIm1I3UlFuTb8rGabUTGUezT9yRr2iagjiTTclHrnIoUvcyG1Q9FeV5BwEk=
=T7nw
-----END PGP SIGNATURE-----

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to