Page 1 of 1

Hostgroup type is not showing in availability report

Posted: Tue Nov 06, 2018 3:19 pm
by manimurugesan
Hello Team,

I have created some host group types in my nagiosxi server. But I am trying to pull the availability report for hostgroups but I am not able to see my hostgroup types.
In host group summary also I have checked it's not showing.

Could you please help me to resolve this issue ?

Re: Hostgroup type is not showing in availability report

Posted: Tue Nov 06, 2018 4:22 pm
by lmiltchev
Have you applied configuration after creating your hostgroups?

Do you see any config errors when you use the Config File Management component (Write Configs > Verify Files)?

What is the version of Nagios XI that you are currently using?

Do you see the hostgroups when you log in the Nagios Core interface?

Code: Select all

http://ip address/nagios
Try restarting services to see if this is going to fix your issue:

Code: Select all

service nagios stop
service ndo2db restart
service nagios start

Re: Hostgroup type is not showing in availability report

Posted: Wed Nov 07, 2018 5:14 am
by manimurugesan
Hello lmiltchev,

I have checked in Nagios Core interface also I am not able to see the host groups and I have tried below step's also but still issue is persist .

service nagios stop
service ndo2db restart
service nagios start

Re: Hostgroup type is not showing in availability report

Posted: Wed Nov 07, 2018 2:48 pm
by lmiltchev
Do you see the hostgroups under the "Host Groups Status" page (Home > Details > Hostgroup Summary)?

Do you see any errors in the apache error log when you access the availability reports page?

Code: Select all

tail -50 /var/log/httpd/error_log
Do you have any errors in the mysqld.log (mariadb.log)?

Code: Select all

tail -50 /var/log/mysqld.log
tail -50 /var/log/mariadb/mariadb.log

Re: Hostgroup type is not showing in availability report

Posted: Wed Nov 07, 2018 3:39 pm
by manimurugesan
Hello lmiltchev ,

I am not able to see the my hostgroups in host group summary also
The below log's are continuously showing in /var/log/httpd/error_log file


tail /var/log/httpd/error_log

Nov 06 /usr/local/nagiosxi/html/includes/components/ccm/classes/data.class.php on line 1610, referer: http://<ip>/nagiosxi/includes/components/ccm/?cmd=modify&type=hostgroup&id=6&page=1&returnUrl=index.php%3Fcmd%3Dview%26type%3Dhostgroup%26page%3D1

[Wed Nov 07 06:43:11.882782 2018] [:error] [pid ] [client ] PHP Notice: Undefined index: idMaster in /usr/local/nagiosxi/html/includes/components/ccm/classes/data.class.php on line 1611, referer: http://<ip>/nagiosxi/includes/components/ccm/index.php?cmd=view&type=hostgroup&page=1



Please find the mariadb.log

Re: Hostgroup type is not showing in availability report

Posted: Wed Nov 07, 2018 4:01 pm
by lmiltchev
You have a crashed table in the DB.
181030 13:53:39 [ERROR] mysqld: Table './nagios/nagios_commenthistory' is marked as crashed and last (automatic?) repair failed
Try running our db repair script to see if this is going to fix your issue:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh

Re: Hostgroup type is not showing in availability report

Posted: Thu Nov 08, 2018 6:59 am
by manimurugesan
The issue has been resolved .

Issue is In nagios .cfg file (/usr/local/nagios/etc/nagios.cfg ) /usr/local/nagios/etc/hostgroups.cfg is commented so now I have uncommented it's stared working

Re: Hostgroup type is not showing in availability report

Posted: Thu Nov 08, 2018 8:36 am
by scottwilkerson
manimurugesan wrote:The issue has been resolved .

Issue is In nagios .cfg file (/usr/local/nagios/etc/nagios.cfg ) /usr/local/nagios/etc/hostgroups.cfg is commented so now I have uncommented it's stared working
Great Glad to hear it is resolved!

Locking thread