kyang wrote:Thanks, could you also tell me the time on XI?
Timezone settings.
http://yourXIipAddress/nagiosxi/admin/globalconfig.php
Strange recheck timing issue
-
askewdread
- Posts: 69
- Joined: Wed Nov 16, 2016 4:54 pm
Re: Strange recheck timing issue
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Strange recheck timing issue
Let's try checking your Core GUI.
http://ipaddress/nagios
Does it also show the wrong date format here on your checks or is it correct? (Screenshots would be nice)
If you wait 3 minutes, does the check actual work or no?
Could you send a screen of this page?
Admin > System Settings --> Defaults tab
Thanks.
http://ipaddress/nagios
Does it also show the wrong date format here on your checks or is it correct? (Screenshots would be nice)
You mentioned this, and your check_interval is every 3 minutes.if you force a check it will then go and run it properly and schedule the next one correctly
If you wait 3 minutes, does the check actual work or no?
Could you send a screen of this page?
Admin > System Settings --> Defaults tab
Thanks.
-
askewdread
- Posts: 69
- Joined: Wed Nov 16, 2016 4:54 pm
Re: Strange recheck timing issue
core shows the same, these ones are 3 minutes correct, but no, they never recheck, as you can see in the screenshots last check was days ago, and next check isn't going to be for months.kyang wrote:Let's try checking your Core GUI.
http://ipaddress/nagios
Does it also show the wrong date format here on your checks or is it correct? (Screenshots would be nice)
You mentioned this, and your check_interval is every 3 minutes.if you force a check it will then go and run it properly and schedule the next one correctly
If you wait 3 minutes, does the check actual work or no?
Could you send a screen of this page?
Admin > System Settings --> Defaults tab
Thanks.
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Strange recheck timing issue
Could you PM or post your status.dat
After you retrieve the status.dat file, you can then run the repair_databases script on your db server.
Let us know if that fixes the issue or not.
Code: Select all
/usr/local/nagios/var/status.dat
Code: Select all
cd /usr/local/nagiosxi/scripts
./repair_databases.sh-
askewdread
- Posts: 69
- Joined: Wed Nov 16, 2016 4:54 pm
Re: Strange recheck timing issue
have pm'd the status.dat file, we have it in a ramdisk so path was slightly differentkyang wrote:Could you PM or post your status.datAfter you retrieve the status.dat file, you can then run the repair_databases script on your db server.Code: Select all
/usr/local/nagios/var/status.datLet us know if that fixes the issue or not.Code: Select all
cd /usr/local/nagiosxi/scripts ./repair_databases.sh
that has fixed those ones....that's odd
-
kyang
Re: Strange recheck timing issue
Ah ok! Thanks.
So there are no check timing issues anymore?
So there are no check timing issues anymore?
Last edited by kyang on Wed Feb 07, 2018 11:53 am, edited 1 time in total.
Reason: dat file shared with techs!
Reason: dat file shared with techs!
-
askewdread
- Posts: 69
- Joined: Wed Nov 16, 2016 4:54 pm
Re: Strange recheck timing issue
not currently no.... but from what I can see all the db repair did was restart the engine as none were corrupt... and restarting cant be an acceptable solution as 16 checks hadn't checked in 4 days.... which is what we rely on to know our business is working....kyang wrote:Ah ok! Thanks.
So there are no check timing issues anymore?
-
askewdread
- Posts: 69
- Joined: Wed Nov 16, 2016 4:54 pm
Re: Strange recheck timing issue
havejust found 3 new services and 1 host doing the same as yesterdaykyang wrote:Ah ok! Thanks.
So there are no check timing issues anymore?
this one hasn't checked in nearly 12 hours and clearly shows in the screenshot that last check and next check are months apart
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Strange recheck timing issue
Let's truncate some tables in your db.
Run these 3 commands.
Then re-run the repair_databases.sh script.
Let us know how the recheck timing is after that.
Run these 3 commands.
Code: Select all
mysql -u ndoutils -pn@gweb nagiosxi -e 'TRUNCATE TABLE xi_meta'
mysql -u ndoutils -pn@gweb nagiosxi -e 'TRUNCATE TABLE xi_events'
mysql -u ndoutils -pn@gweb nagiosxi -e 'TRUNCATE TABLE xi_eventqueue'Code: Select all
cd /usr/local/nagiosxi/scripts
./repair_databases.sh-
askewdread
- Posts: 69
- Joined: Wed Nov 16, 2016 4:54 pm
Re: Strange recheck timing issue
it had fixed all the ones at the time but again the issue has returned this morningkyang wrote:Let's truncate some tables in your db.
Run these 3 commands.Then re-run the repair_databases.sh script.Code: Select all
mysql -u ndoutils -pn@gweb nagiosxi -e 'TRUNCATE TABLE xi_meta' mysql -u ndoutils -pn@gweb nagiosxi -e 'TRUNCATE TABLE xi_events' mysql -u ndoutils -pn@gweb nagiosxi -e 'TRUNCATE TABLE xi_eventqueue'Let us know how the recheck timing is after that.Code: Select all
cd /usr/local/nagiosxi/scripts ./repair_databases.sh
You do not have the required permissions to view the files attached to this post.