XI reporting not working properly
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: XI reporting not working properly
Try:
http://---- Snip ---/nagios
http://---- Snip ---/nagios
-
anil_kumarv
- Posts: 50
- Joined: Thu Oct 17, 2013 2:00 am
Re: XI reporting not working properly
Okay, reports in Nagios Core seems to be working fine. I tested pulling Top Alert producers for the past 7 days and filtered them for hostgroup. Even the filtered reports are showing data matching the hosts/services in Non-Filtered report. So is it just an filtering issue within NDOUtils db ..?
Re: XI reporting not working properly
Try stopping/starting services in case you have some sync issues:
Can you filter the "Top Alert Producers" by a hostgroup now in Nagios XI?
Code: Select all
service nagios stop
killall nagios
service ndo2db stop
service ndo2db start
service nagios startBe sure to check out our Knowledgebase for helpful articles and solutions!
-
anil_kumarv
- Posts: 50
- Joined: Thu Oct 17, 2013 2:00 am
Re: XI reporting not working properly
Stopped/Started the services in order as given below, but still same issue. Nothing shows in Top Alert producers when filtered with any hostgroup for any time period.
Re: XI reporting not working properly
This is interesting as the reports work fine on my 2012r2.9 and 2014r1.1 test boxes.
Right click on the top alert producer link and open in a new tab. Choose your hostgroup from the dropdown and then click "update". Now copy the url and post it here (obfuscate if necessary).
Right click on the top alert producer link and open in a new tab. Choose your hostgroup from the dropdown and then click "update". Now copy the url and post it here (obfuscate if necessary).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
anil_kumarv
- Posts: 50
- Joined: Thu Oct 17, 2013 2:00 am
Re: XI reporting not working properly
Here are couple of URL's filtered for Class-Artemis & Raiden
http://---- Snip ---/nagiosxi/reports/topalertproducers.php?host=&service=&reportperiod=last24hours&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=class-artemis&servicegroup=&statetype=hard&page=1&records=25
http://---- Snip ---/nagiosxi/reports/topalertproducers.php?host=&service=&reportperiod=last24hours&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=class-raiden&servicegroup=&statetype=hard&page=1&records=25
http://---- Snip ---/nagiosxi/reports/topalertproducers.php?host=&service=&reportperiod=last24hours&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=class-artemis&servicegroup=&statetype=hard&page=1&records=25
http://---- Snip ---/nagiosxi/reports/topalertproducers.php?host=&service=&reportperiod=last24hours&startdate=&enddate=&reporttimesubmitbutton=Go&hostgroup=class-raiden&servicegroup=&statetype=hard&page=1&records=25
Last edited by scottwilkerson on Thu Jan 22, 2015 4:09 pm, edited 1 time in total.
Reason: security
Reason: security
-
anil_kumarv
- Posts: 50
- Joined: Thu Oct 17, 2013 2:00 am
Re: XI reporting not working properly
After that post we increased the values to 7 days for Max Log Entries Age, Max Notifications Age, Max State History Age. That's when we started getting Top Alert producers report. But when filtered to any hostgroup, we dont get anything showing 0 records.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI reporting not working properly
Sorry, I deleted my post after I was re-reading the thread and saw this to be the case...anil_kumarv wrote:After that post we increased the values to 7 days for Max Log Entries Age, Max Notifications Age, Max State History Age. That's when we started getting Top Alert producers report. But when filtered to any hostgroup, we dont get anything showing 0 records.
To make sure we are comparing apples to apples, can you post the corresponding URL's for the reports you saw in Core that worked?
I just want to make sure we have all the same settings, groups, timeframes, statetypes, etc.
Also, can you confirm that you do not have any database errors
Code: Select all
tail -200 /var/log/mysqld.log-
anil_kumarv
- Posts: 50
- Joined: Thu Oct 17, 2013 2:00 am
Re: XI reporting not working properly
In core, I go to Summary on the left-> Under Custom reports-> Top Alert Producers -> Last 7 days -> filter by Class-Artemis ->Create summary report. Takes me to the following URL :
[url]http://----%20Snip%20---/nagios/[/url]
But the URL contains all the report I need.
Attached mysqld logs
[url]http://----%20Snip%20---/nagios/[/url]
But the URL contains all the report I need.
Attached mysqld logs
Last edited by scottwilkerson on Thu Jan 22, 2015 4:10 pm, edited 1 time in total.
Reason: security
Reason: security
Re: XI reporting not working properly
You have some database errors...
Run the database repair scripts, and check the mysqld.log again to make sure the errors were fixed.
Code: Select all
130730 21:08:14 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './nagios/nagios_servicestatus.MYI'; try to repair itCode: Select all
cd /usr/local/nagiosxi/scripts
./repairmysql.sh nagios
./repairmysql.sh nagiosql
tail -50 /var/log/mysqld.logBe sure to check out our Knowledgebase for helpful articles and solutions!