Hostgroup type is not showing in availability report

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Hostgroup type is not showing in availability report

Post 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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroup type is not showing in availability report

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Re: Hostgroup type is not showing in availability report

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroup type is not showing in availability report

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Re: Hostgroup type is not showing in availability report

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroup type is not showing in availability report

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Re: Hostgroup type is not showing in availability report

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Hostgroup type is not showing in availability report

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked