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

  • apachectl -v
    Server version: Apache/2.4.18 (Ubuntu)
    Server built: 2016-07-14T12:32:26


    PHP Version => 7.0.13-0ubuntu0.16.04.1



    System => Linux icinga2 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64
    Server API => Command Line Interface
    Virtual Directory Support => disabled

  • apachectl -v
    Server version: Apache/2.4.18 (Ubuntu)
    Server built: 2016-07-14T12:32:26


    1) when install nagivs the "Apache mod_php" is misssing is occur.

    2) Add this line in apache2.conf

    IncludeOptional /etc/httpd/conf.d/*.conf

  • now , im try to downgrade check_mk & nagvis

    #dpkg -puge

    reinstall

    #apt-get install check-mk-livestatus

    #apt-get install nagvis

    root@icinga2:/run/icinga2/cmd# dpkg -l check-mk-livestatus
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    +++-=====================================================-===============================-===============================-===============================================================================================================
    ii check-mk-livestatus 1.2.6p12-1 amd64 general purpose nagios-plugin for retrieving data
    root@icinga2:/run/icinga2/cmd# dpkg -l nagvis
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    +++-=====================================================-===============================-===============================-===============================================================================================================
    ii nagvis 1:1.7.10+dfsg1-3ubuntu1 all visualization addon for Nagios or Icinga