Sehr geehrte Damen und Herren, 

in der Zeit vom 06.05.2016 bis einschließlich 22.05.2016 befinde ich mich nicht 
im Büro. 

Beachten Sie bitte, dass Ihre EMail nicht automatisch weitergeleitet wird. 
In dringenden Fällen wenden Sie sich bitte an unsere Hotline, 0203-378530, oder 
an Herrn Hesselmann (hesselm...@opm-computer.de).



Mit freundlichen Grüßen 

Ronny Bär
OPM EDV Service GmbH 


Send icinga-users mailing list submissions to
        icinga-users@lists.icinga.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.icinga.org/mailman/listinfo/icinga-users
or, via email, send a message with subject or body 'help' to
        icinga-users-requ...@lists.icinga.org

You can reach the person managing the list at
        icinga-users-ow...@lists.icinga.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of icinga-users digest..."


Today's Topics:

   1. CHECK_NRPE: Socket timeout after 10 seconds in    Icingaweb2
      (Tal Bar-Or)
   2. Re: Hostgroup macro is not expanding in notes_url (Safeer CM)


----------------------------------------------------------------------

Message: 1
Date: Thu, 5 May 2016 13:11:49 +0300
From: Tal Bar-Or <tba...@gmail.com>
To: "Icinga User's Corner" <icinga-users@lists.icinga.org>
Subject: [icinga-users] CHECK_NRPE: Socket timeout after 10 seconds in
        Icingaweb2
Message-ID:
        <CAM0M=j0cq81-wz-3wptwme3b79wfumje_np3lstw1-urdtj...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello All,
We have issues with some monitored hosts using Nsclient++ and Nrpe in
icinga2 server side , just to mention that it used to work across all site
correctly.

The issue is that we get under Icingaweb2 ui error for those some clients
some ok as follows "CHECK_NRPE: Socket timeout after 10 seconds" , on the
client monitored side all seems ok agent is up and running , when we try to
run manually from server console the  command to check problematic host
apear under icingaweb2 ui,  all seems to be OK.

running check_nrpe: /usr/lib/nagios/plugins/check_nrpe -H 192.10.10.158 -c
processmetrics -a "-n daletservice -w @75:80 -c @80: -a 192.10.10.161"
produce normal answer:
PROCESSLOAD OK - WorkingSet is 4.971e+04kB |'Availability'=1;;1;0;1
'ElapsedTime'=2766s;;;0;2147483647 'HandleCount'=512;;;0;16744434
'PageFaultsPersec'=0;;;0;2000000 'PercentPrivilegedTime'=0;;;0;100
'PercentProcessorTime'=0%;;0;0;100 'PercentUserTime'=0%;;0;0;100
'ThreadCount'=42;;;0;3200 'VirtualBytes'=170652;;;0;8000000
'WorkingSet'=49712kB;;0;0;4000000

Please advise
Thanks

System details:
Currently the Icingaweb2 version :2.1.2

icinga2 - The Icinga 2 network monitoring daemon (version: r2.4.1-1)

Copyright (c) 2012-2015 Icinga Development Team (https://www.icinga.org)
License GPLv2+: GNU GPL version 2 or later <
http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Application information:
  Installation root: /usr
  Sysconf directory: /etc
  Run directory: /run
  Local state directory: /var
  Package data directory: /usr/share/icinga2
  State path: /var/lib/icinga2/icinga2.state
  Modified attributes path: /var/lib/icinga2/modified-attributes.conf
  Objects path: /var/cache/icinga2/icinga2.debug
  Vars path: /var/cache/icinga2/icinga2.vars
  PID path: /run/icinga2/icinga2.pid

System information:
  Platform: _NAME="Ubuntu 14.04.3 LTS
  Platform version: ID="14.04
  Kernel: Linux
  Kernel version: 3.16.0-57-generic
  Architecture: x86_64

-- 
Tal Bar-or
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.icinga.org/pipermail/icinga-users/attachments/20160505/4a5ddb67/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 5 May 2016 16:11:26 +0530
From: Safeer CM <safee...@riva.co>
To: icinga-users@lists.icinga.org
Subject: Re: [icinga-users] Hostgroup macro is not expanding in
        notes_url
Message-ID:
        <CAGJpZfgWXka+F7J2O-wvZi9iSyjHFnk=amg6fqjjv9x_7d6...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Couldn't directly reply to  Joseph's response as I had subscribed for
digest email.

======Joseph's response===============
---------- Forwarded message ----------
From: "Joseph L. Casale" <jcas...@activenetwerx.com>
To: "icinga-users@lists.icinga.org" <icinga-users@lists.icinga.org>
Cc:
Date: Thu, 5 May 2016 00:37:53 +0000
Subject: Re: [icinga-users] Hostgroup macro is not expanding in notes_url
> To make it generic, I want to use icinga macros for service
name,hostname,hostgroupname as url parameters.

Given that a host and service is unique, does your documentation really
depend on the hostgroup?

================================================

==========================Reply==================

     While hostname + service is a unique combination, the number of hosts
having the same check can be too many.  Just like in configuration, we
associate service documentation to hostgroups, as associating it with
individual hosts is not practical.   So the documentation system identifies
only a map between hostgroups  and services.  If we have to settle for
hostname+service combo, we will need an intermediary system to find out the
associated hostgroups for that host and forward the request to the
corresponding documentation

Regards


~SAfeer
  SA by default

On Thu, May 5, 2016 at 1:25 AM, Safeer CM <safee...@riva.co> wrote:

> Greeting icinga users,
>
>      I am trying to create a notes_url for every check which will point
> back to my internal documentation site.   To make it generic, I want to use
> icinga macros for service name,hostname,hostgroupname as url parameters.
>
> Sample url with macros will be as follows:
> notes_url = "
> http://documents.tld?service=$SERVICEDESC$&host=$HOSTNAME$&hostgroup=$HOSTGROUPNAME$
> "
>
> While the service name and hostname macros get replaced with their
> respective value in the url, the hostgroup name is not.  Icingaweb2 shows:
> http://documents.tld?service=Replication Lag On
> MongoDB&host=mongo1.domain.tld&hostgroup=$HOSTGROUPNAME$"
>
> As per
> http://docs.icinga.org/latest/en/macrolist.html#macrolist-hostgroupname:
>
> $HOSTGROUPNAME$ - The short name of the hostgroup that this host belongs
> to. This value is taken from the hostgroup_name directive in the hostgroup
> definition. If the host belongs to more than one hostgroup this macro will
> contain the name of just one of them.
>
> What am I doing wrong here? I also tried with $HOSTGROUPNAMES$ (A comma
> separated list of the short names of all the hostgroups that this host
> belongs to.)
>
> Thanks
>
> Service Definition:
> /etc/icinga2/zones.d/global-zone/services.conf
>
> apply Service "Replication Lag On MongoDB" {
>   import "generic-service"
>   check_command = "mongodb"
>
>   vars.mongodb_address = host.address
>   vars.mongodb_user = "test"
>   vars.mondodb_passwd = "test123"
>   vars.mongodb_database = "aggrdb"
>   vars.mongodb_perfdata = true
>   vars.mongodb_action = "replication_lag"
>   vars.mongodb_critical = "1800"
>
>   assign where "mongo-db" in host.groups
>   notes_url = "
> http://documents.tld?service=$SERVICEDESC$&host=$HOSTNAME$&hostgroup=$HOSTGROUPNAME$
> "
> }
>
> Host group definition:
> /etc/icinga2/zones.d/global-zone/groups.conf
>
> object HostGroup "mongo-db" {
>   assign where regex("^mongo*", host.name)
> }
>
> ~SAfeer
>   SA by default
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.icinga.org/pipermail/icinga-users/attachments/20160505/b0fb8b72/attachment-0001.html>

------------------------------

Subject: Digest Footer

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


------------------------------

End of icinga-users Digest, Vol 29, Issue 8
*******************************************


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

Reply via email to