Page 1 of 1

How can i configure nagiosxi on virtual host?

Posted: Thu Oct 03, 2013 10:41 am
by bursatec
Hi!!

I have my nagiosxi installation working good.

I need to configure my nagiosxi installation on a virtual host, can anybody help me??

Thanks!!

Re: How can i configure nagiosxi on virtual host?

Posted: Thu Oct 03, 2013 10:49 am
by scottwilkerson
If you have XI on a physical host now, you can use the backup and restore function to move you configuration to the virtual server.
http://library.nagios.com/library/produ ... -nagios-xi

For deploying the XI on the Virtual Host you can use one of the pre-configured VM's on the download page, or do a source install on a CentOS or RHEL minimal install on the Virtual Host

Re: How can i configure nagiosxi on virtual host?

Posted: Thu Oct 03, 2013 12:20 pm
by niebais
There are utilities like VMWARE converter that you could use. I recommend stopping the database before doing the transfer and it might take up to 1 - 4 hours.

Re: How can i configure nagiosxi on virtual host?

Posted: Thu Oct 03, 2013 1:11 pm
by bursatec
I'm sorry!! I don't explain me...

I try to configure a virtual host in Apache, a vhost for nagios.

It is possible to configure??

Thanks!!

Re: How can i configure nagiosxi on virtual host?

Posted: Thu Oct 03, 2013 2:27 pm
by scottwilkerson
If you have Nagios XI installed as you describe, the apache config files are already created in /etc/httpd/conf.d

Re: How can i configure nagiosxi on virtual host?

Posted: Thu Oct 03, 2013 3:45 pm
by bursatec
Correct,


Actually my nagios.domain.com send me to /var/www/html

But i try to send nagios.domain.com to /var/www/html/nagiosxi/html directly.

Without change the principal DocumentRoot(/var/www/html), because i have a forum installed in /var/www/html/forum and i try to access through forum.domain.com

Thanks

Re: How can i configure nagiosxi on virtual host?

Posted: Fri Oct 04, 2013 9:50 am
by abrist
XI is not accessible at nagios.domain.tld by deault. The default web address is domain.tld/nagiosxi .

Re: How can i configure nagiosxi on virtual host?

Posted: Fri Oct 04, 2013 4:53 pm
by bursatec
Yeah!

Can i change the config of this?

Re: How can i configure nagiosxi on virtual host?

Posted: Mon Oct 07, 2013 9:29 am
by abrist
Yes, it would require altering the apache vhosts file to your liking. You could create a new alias, but be careful to not remove the old alias as some XI components expect the default aliasing.
See: http://httpd.apache.org/docs/2.2/vhosts/