[solved] Icinga2 / NagVis / hostgroups do not work

  • Hello,


    has someone monitoring of hostgroups in NagVis with Icinga 2 got to work?


    In successfully tried this in an old Icinga 1.x environment bot in Icinga 2.


    The mklivestatus works fine, i see the hostgroups when i use ncat -U /var/run/icinga2/cmd/livestatus


    I am using the 1.9beta11 as I had problems with 1.8.x with unknown array exceptions.


    Many thanks,

  • same problem! any workround??


    nagvis 1.9b11 servicegroup/hostgroup output error after refresh (host and service is good)



    when i create it, it's ok; after refreshed, one is contain all hosts stats and others show "problem the object does not exist(servicegroup)" or "problem the object does not exist(hostgroup)"



    ##check_mk 1.2.8 output is ok!


    root@icinga2:/usr/local# echo -e "GET hostgroups\nFilter:alias = hp_unix\n" | nc -U /var/run/icinga2/cmd/livestatus


    action_url;alias;members;members_with_state;name;notes;notes_url;num_hosts;num_hosts_down;num_hosts_pending;num_hosts_unreach;num_hosts_up;num_services;num_services_crit;num_services_hard_crit;num_services_hard_ok;num_services_hard_unknown;num_services_hard_warn;num_services_ok;num_services_pending;num_services_unknown;num_services_warn;worst_host_state;worst_service_hard_state;worst_services_state


    ;hp_unix;192.168.1.16,192.168.7.22,192.168.1.24,192.168.7.21,192.168.1.12,192.168.1.23,192.168.1.50,192.168.7.11,192.168.1.13,192.168.1.21,192.168.1.14,192.168.1.11,192.168.1.22,192.168.1.51;192.168.1.16|0,192.168.7.22|0,192.168.1.24|0,192.168.7.21|0,192.168.1.12|0,192.168.1.23|0,192.168.1.50|0,192.168.7.11|0,192.168.1.13|0,192.168.1.21|0,192.168.1.14|0,192.168.1.11|0,192.168.1.22|0,192.168.1.51|0;hp_unix;;;14;0;0;0;14;30;0;0;27;0;3;27;0;0;3;0;1;1


    root@icinga2:/usr/local# echo -e "GET hostgroups\nFilter:alias = linux\n" | nc -U /var/run/icinga2/cmd/livestatus


    action_url;alias;members;members_with_state;name;notes;notes_url;num_hosts;num_hosts_down;num_hosts_pending;num_hosts_unreach;num_hosts_up;num_services;num_services_crit;num_services_hard_crit;num_services_hard_ok;num_services_hard_unknown;num_services_hard_warn;num_services_ok;num_services_pending;num_services_unknown;num_services_warn;worst_host_state;worst_service_hard_state;worst_services_state


    ;linux;192.168.33.64-VeeamProxy,192.168.33.63-VeeamBackup,192.168.8.126-loganalyzer,192.168.8.125-icinga,vSphere Data Protection 5.5,VMware vCenter Server Appliance,Veeam One 2,192.168.33.125-icinga2;192.168.33.64-VeeamProxy|0,192.168.33.63-VeeamBackup|0,192.168.8.126-loganalyzer|0,192.168.8.125-icinga|0,vSphere Data Protection 5.5|0,VMware vCenter Server Appliance|0,Veeam One 2|0,192.168.33.125-icinga2|0;linux;;;8;0;0;0;8;20;0;0;20;0;0;20;0;0;0;0;0;0


    #version#


    #Linux icinga2 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


    #nagvis 1.9b11


    #check_mk 1.2.8


    #root@icinga2:/usr/local# dpkg -l | grep -i icinga


    ii icinga2 2.6.0-2~ppa1~xenial1 amd64 host and network monitoring system


    ii icinga2-bin 2.6.0-2~ppa1~xenial1 amd64 host and network monitoring system - daemon


    ii icinga2-common 2.6.0-2~ppa1~xenial1 all host and network monitoring system - common files


    ii icinga2-doc 2.6.0-2~ppa1~xenial1 all host and network monitoring system - documentation


    ii icinga2-ido-mysql 2.6.0-2~ppa1~xenial1 amd64 host and network monitoring system - MySQL support


    ii icingacli 2.4.0-1~ppa1604+1 all simple CLI tool for Icingaweb2 and its modules


    ii icingaweb2 2.4.0-1~ppa1604+1 all simple and responsive web interface for Icinga


    ii icingaweb2-common 2.4.0-1~ppa1604+1 all simple and responsive web interface for Icinga - common files


    ii icingaweb2-module-doc 2.4.0-1~ppa1604+1 all simple and responsive web interface for Icinga - documentation module


    ii icingaweb2-module-monitoring 2.4.0-1~ppa1604+1 all simple and responsive web interface for Icinga - monitoring module


    ii libicinga2 2.6.0-2~ppa1~xenial1 amd64 host and network monitoring system - internal libraries


    ii php-icinga 2.4.0-1~ppa1604+1 all PHP library to communicate with and use Icinga


    ii vim-icinga2 2.6.0-2~ppa1~xenial1 all syntax highlighting for Icinga 2 config files in VIM


    # VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.tar.gz

  • Not that it helps any, but I'm seeing the same behavior with NagVis 1.8.5 (the latest non-beta version). Interestingly, if I individually select one and choose "Refresh Status" manually, it will turn green (or whatever appropriate for the members of the group), but it only lasts until the next automatic update, when it goes back to "the object does not exist", which is patently false.

  • Also having this problem!


    What's strange is that I don't even get an output when I run your command ncat -U /var/run/icinga2/cmd/livestatus.


    Currently using mk-livestatus-1.4.0i3p1 and NagVis 1.9b12.