Issues after migration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

Issues after migration

Post by s_dimzon »

Hello

I have some issues after migration,
Old Server: Centos 5_32bit
New Server: Centos 7_64bit
Centos Version 5.2.9
Same Name, Same IP. Iptables & Firewall Disabled. On the same network with other Servers.

I. I first followed the steps provided on this page
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
and it was successful, All Hosts and services are already connecting tho there few issues but I have created that particular issue at another post.

II. After the migration and installation of plugins, I then converted the RRD's for the Performance Graph and It's also working.

III. I am now testing the notifications / acknowledgements / email notifications to make sure it's working and these are the issues
These are all from the Webpage:
1. 'Acknowledge this problem' isn't working
:: I can click on the Acknowledge this problem, but there is no output, the Acknowledge Problem box appears but nothing changes when clicking the Submit

2. Email notifications are not working
:: Postfix is enabled and I tried sending an email via CMD line to my companyemail, im able to receive it, enable_notifications=1 is set on nagios.cfg file. I tried testing sending an email from the Webpage using the Manage Email Settings > Send a Test Email and it is Failed.
Email is working on the Old Server..

Thank you
kyang

Re: Issues after migration

Post by kyang »

I'd like to work on one problem at a time to make it less confusing. That way we aren't sending each other two different questions and answers. Or you could create another thread for the notification issue that way it is separate.

For the acknowledgment problem, could you try to acknowledge again through the UI a few times and then send us your profile so we could see the logs?

Nagios XI Profile --> On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me.

If you receive a PROFILE BUILD FAILED
Please follow this article,

https://support.nagios.com/kb/article.p ... ategory=44

After you PM the profile please update this thread, unless you post the profile on here. Thanks

Edit: PM received!
Last edited by kyang on Wed Dec 06, 2017 10:27 am, edited 1 time in total.
Reason: Profile shared
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

Re: Issues after migration

Post by s_dimzon »

Hi Kyang,

I sent you a private message, for the acknowledgement, I just noticed that it only happens on some servers, is there a way to remove the acknowledgement?
kyang

Re: Issues after migration

Post by kyang »

You can remove an acknowledgment by going to that host/service to get the status detail page--> click on the + sign that says advanced --> under commands you should see something that says "Remove Acknowledgement".

So acknowledgments work on some and do not work on others?

I do see a lot of these apache error_logs.

Code: Select all

[Wed Dec 06 16:30:25.992434 2017] [:error] [pid 24451] [client 172.26.61.30:57823] PHP Notice:  Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2474, referer: http://n4nagios01/nagiosxi/includes/components/xicore/status.php?show=services
[Wed Dec 06 16:30:25.992483 2017] [:error] [pid 24451] [client 172.26.61.30:57823] PHP Notice:  Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2474, referer: http://n4nagios01/nagiosxi/includes/components/xicore/status.php?show=services
[Wed Dec 06 16:30:25.992492 2017] [:error] [pid 24451] [client 172.26.61.30:57823] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 2474, referer: http://n4nagios01/nagiosxi/includes/components/xicore/status.php?show=services
Are you using HTTPS?

Make sure that you have your shortname and FQDN in your /etc/hosts file on your XI server as well.

Validate the URL in Admin > System Settings > Program URL and External URL.
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

Re: Issues after migration

Post by s_dimzon »

Hi Kyang,

Thank you for the response, I'm using http only.
Should the Program URL and External URL be the same? That's how it was set before on the old server so I'm assuming they would still work.

Yes, some work, and some not. like for this example, so I tried to remove the acknowledgement, and it was removed but, there is still an icon that it was acknowledged. I have added the shortname and FQDN on the /etc/hosts file..
You do not have the required permissions to view the files attached to this post.
kyang

Re: Issues after migration

Post by kyang »

I don't have it set up, but normally an external URL is listed as this.
The URL used to access Nagios XI from outside of your internal network
Were there any issues with having the same URL? Back to the acknowledgment issue,

When you tried to remove the acknowledgment, were there any different apache error logs?

Could you try it again, and then send us some logs?

Code: Select all

tail -50 /var/log/httpd/error_log
Additionally, could you send us the output of these commands also?

Code: Select all

grep check_external /usr/local/nagios/etc/nagios.cfg
ll /usr/local/nagios/var/rw/
ll /usr/local/nagios/var/rw/nagios.cmd
grep nag /etc/group
chage -l nagios
chage -l apache
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

Re: Issues after migration

Post by s_dimzon »

Hi Kyang,

Here you go for the last part:

[root tmp]# grep check_external /usr/local/nagios/etc/nagios.cfg
check_external_commands=1
[root tmp]# ll /usr/local/nagios/var/rw/
total 0
-rwxrwxrwx 1 nagios apache 0 Jul 30 2016 live.old
prw-rw---- 1 nagios nagcmd 0 Dec 8 16:23 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Dec 8 16:23 nagios.qh
[root tmp]# ll /usr/local/nagios/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 Dec 8 16:23 /usr/local/nagios/var/rw/nagios.cmd
[root@n4Nagios01 tmp]# grep nag /etc/group
nagios:x:1001:nagios,apache
nagcmd:x:1002:nagios,apache
[root tmp]# chage -l nagios
Last password change : Dec 01, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root tmp]# chage -l apache
Last password change : Dec 01, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : -1
Maximum number of days between password change : -1
Number of days of warning before password expires : -1
[root tmp]#


I sent you a private message
kyang

Re: Issues after migration

Post by kyang »

Thanks, I received the error_logs and shared with my team.

Could you try running each from the command and see if that fixes the acknowledgment issue?'

Code: Select all

service nagios stop
killall nagios
service nagios start
Once finished, try acknowledging and see if that works?

If not post the output of these.

Code: Select all

ps -ef --cols=300
ls -la /usr/local/nagios/var/rw/nagios.cmd

UPDATE: Logs received
Last edited by kyang on Wed Dec 13, 2017 2:41 pm, edited 2 times in total.
Reason: Added logs into teamshare
s_dimzon
Posts: 27
Joined: Wed Jul 26, 2017 4:22 am

Re: Issues after migration

Post by s_dimzon »

Hi Kyang,

I did try that, and even rebooted the server. I sent you a PM for the logs
kyang

Re: Issues after migration

Post by kyang »

Thanks for the logs,

When you try to acknowledge something now, what happens? Is it the same?

Try it again, and PM me your access_log and error_logs.

Code: Select all

tail -100 /var/log/httpd/access_log
tail -100 /var/log/httpd/error_log
I'd like to get updated apache logs to see what happens when you do it, as it should be logged.
Locked