Issue after upgrade to 5.7.2 version
Issue after upgrade to 5.7.2 version
Hi,
We recently upgraded Nagios to 5.7.2 from 5.6.12. We are facing issues after upgrading to 5.7.2, for example, when we create a new check and the check is showing pending status for a long time and the "force an immediate check" also didn't help and the Next check date showing some weird date i.e., 1970-xx-xx.
I tried to repair the database but no luck and I followed https://support.nagios.com/forum/viewto ... 16&t=59388 forum but no luck.
So, I want to know is it be possible to restore/rollback it from "configure snapshot" to the previous successfully day snapshot or we need to go step by step following https://support.nagios.com/forum/viewto ... 16&t=59202 this?
Below are the broken in GUI:
-----------------------------------
--> Last check and Next check contents are not updating
--> If I add a new host using CCM and apply configuration it's not showing up in GUI, and the same with configuring wizard as well.
--> When I click "force an immediate check." It showing command executed successfully but not turns to green/warning/critical, still showing pending in grey color.
--> And checks are showing some weird date example 1970-08-20 date instead of the current date.
Thanks,
We recently upgraded Nagios to 5.7.2 from 5.6.12. We are facing issues after upgrading to 5.7.2, for example, when we create a new check and the check is showing pending status for a long time and the "force an immediate check" also didn't help and the Next check date showing some weird date i.e., 1970-xx-xx.
I tried to repair the database but no luck and I followed https://support.nagios.com/forum/viewto ... 16&t=59388 forum but no luck.
So, I want to know is it be possible to restore/rollback it from "configure snapshot" to the previous successfully day snapshot or we need to go step by step following https://support.nagios.com/forum/viewto ... 16&t=59202 this?
Below are the broken in GUI:
-----------------------------------
--> Last check and Next check contents are not updating
--> If I add a new host using CCM and apply configuration it's not showing up in GUI, and the same with configuring wizard as well.
--> When I click "force an immediate check." It showing command executed successfully but not turns to green/warning/critical, still showing pending in grey color.
--> And checks are showing some weird date example 1970-08-20 date instead of the current date.
Thanks,
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Issue after upgrade to 5.7.2 version
Hi,
I would recommend downgrading to the previous version of ndoutils. Restart the services and if you're still having trouble, please send us your system profile.
Downgrade Instructons (Local Database)
Then edit your /usr/local/nagios/etc/nagios.cfg and make sure this line is uncommented:
Make sure this line is commented:
Then start the nagios service:
Thanks, Benajmin
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
I would recommend downgrading to the previous version of ndoutils. Restart the services and if you're still having trouble, please send us your system profile.
Downgrade Instructons (Local Database)
Code: Select all
systemctl stop nagios
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.14.tar.gz
tar zxf xi-5.6.14.tar.gz
cd /tmp/nagiosxi/subcomponents/ndoutils
./install
systemctl enable ndo2db
Code: Select all
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfgCode: Select all
#broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfgCode: Select all
systemctl start nagiosTo send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue after upgrade to 5.7.2 version
I followed the steps, no luck. Still, the new creation checks are showing weird date i.e., 1970-01-01. I sent you the system profile in a private message. Attached the screenshot for your reference.
Request you kindly provide us with the solution.
Request you kindly provide us with the solution.
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Issue after upgrade to 5.7.2 version
Hi,
Looking over the profile, it looks like ndo was not downgraded yet. It is still loading the newer ndo3 broker module.
And then restart the nagios service.
The time settings are correct, and the last check result is showing a recent date.
Recently, there was a similar case related to SNMP trap time calculations, is that happening across all checks and services or only passive check results such as SNMP traps. If so, can you send me the following configuration file. Thank you.
Looking over the profile, it looks like ndo was not downgraded yet. It is still loading the newer ndo3 broker module.
You'll want to comment out that line and uncomment the following.# Added by NDO 'make install-broker-line' on Thu Aug 27 03:28:51 EDT 2020
broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
Code: Select all
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
Code: Select all
systemctl start nagios
Code: Select all
[1598847714] SERVICE ALERT: batfs0802.mathworks.com;BaTFS REST API;CRITICAL;SOFT;1;connect to address 172.30.212.102 and port 8082: Connection refused
Code: Select all
/etc/snmp/snmptt.conf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue after upgrade to 5.7.2 version
Thanks, after downgrading the ndoutils to 5.6.14 now the Next check and Last check field is updating with the correct date.
But, I observer after the click on "Force an immediate check" it showing command executed successfully and it is taking some little bit long time to update the status.
Is this know issue in 5.7.2 version?
Thanks.
But, I observer after the click on "Force an immediate check" it showing command executed successfully and it is taking some little bit long time to update the status.
Is this know issue in 5.7.2 version?
Thanks.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Issue after upgrade to 5.7.2 version
HI,
Try refreshing the page shortly after you force an immediate check to see if it updates. Otherwise, force an immediate check and watch the following log for any errors.
Typically, downgrading would help that issue. The dashlet is only going to refresh at specific times depending on how the dashlet refresh rate settings; go to Admin > System Config > Performance Settings > Dashlets to check.But, I observer after the click on "Force an immediate check" it showing command executed successfully and it is taking some little bit long time to update the status.
Try refreshing the page shortly after you force an immediate check to see if it updates. Otherwise, force an immediate check and watch the following log for any errors.
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue after upgrade to 5.7.2 version
Hi,
I updated the Nagios XI from 5.7.2 to 5.7.3 version in our dev instance.
I am doing testing for failure modes which we observe in 5.7.2.
1. By using Bulk Host Cloning and Import option, I see still the Last check filed shows some wired date i.e., 1970-01-01. Attached the screenshot for your reference.
2. The force immediate check works fine in 5.7.3, and the last check and next check fields are updating.
3. When I create a new check by using CCM, I see the same the last check filed shows some wired date i.e., 1970-01-01 and when I ran/click on force immediate checks its updating the current date.
Please see the attached screenshot for your reference and help us to fix problem.
Thank You..
I updated the Nagios XI from 5.7.2 to 5.7.3 version in our dev instance.
I am doing testing for failure modes which we observe in 5.7.2.
1. By using Bulk Host Cloning and Import option, I see still the Last check filed shows some wired date i.e., 1970-01-01. Attached the screenshot for your reference.
2. The force immediate check works fine in 5.7.3, and the last check and next check fields are updating.
3. When I create a new check by using CCM, I see the same the last check filed shows some wired date i.e., 1970-01-01 and when I ran/click on force immediate checks its updating the current date.
Please see the attached screenshot for your reference and help us to fix problem.
Thank You..
You do not have the required permissions to view the files attached to this post.
Re: Issue after upgrade to 5.7.2 version
Any update on my query?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Issue after upgrade to 5.7.2 version
Hi,
Do you know if you are running ndo2db or ndo3 on the upgraded version (5.7.3)? If you're not sure, please send the lastest profile since upgrading.
Please try to re-start the nagios process and then let the system run for about 10-15 minutes and attach the full nagios log to the thread.
Do you know if you are running ndo2db or ndo3 on the upgraded version (5.7.3)? If you're not sure, please send the lastest profile since upgrading.
Please try to re-start the nagios process and then let the system run for about 10-15 minutes and attach the full nagios log to the thread.
Code: Select all
/usr/local/nagios/var/nagios.log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue after upgrade to 5.7.2 version
Hi,
I said in my previous message, I installed it in our dev instances.
Yes, it's ndo3 running in our dev instance.
I send you the profile in PM for your reference.
Thanks,
I said in my previous message, I installed it in our dev instances.
Yes, it's ndo3 running in our dev instance.
I send you the profile in PM for your reference.
Thanks,