09.06.2011, 03:15 UTC+2

Sie sind nicht angemeldet.

Migrate Nagiosadmin to new hardware

xn85turbo

Anfänger

Beiträge: 25

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.0.1

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 5

Anzahl Services: 20

Betriebssystem(e): Red Hat

Plugin-Version(en): nagios-plugins-1.4.11

1

27.03.2011, 03:56

Migrate Nagiosadmin to new hardware

I tried migrating my nagiosadmin and nagios configuration to new hardware. Is there a proper proceedure for migrating nagiosadmin to new hardware?
1: I basically TAR the nagiosadmin folder and copyed it over.
2: I backedup the mysql database "nagiosadmin" and copied it over.
3: I successfully migrated my nagios configuration over to the new hardware and verified it was working correctly.
4: I created and restored the nagiosadmin database.
I see the configuration but when I run "Generator" it shows changes without me making any. When I try to save the configuration I get this message "Error while saving configuration files. Be sure that there are no empty entrys in the generator view!"
Any idea how to do this properly? Or was I even close?

xn85turbo

Anfänger

Beiträge: 25

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.0.1

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 5

Anzahl Services: 20

Betriebssystem(e): Red Hat

Plugin-Version(en): nagios-plugins-1.4.11

2

28.03.2011, 02:10

I was able to successfully migrate nagiosadmin. I used this process;
1: tar cvvzf - -C /var/www/html nagiosadmin >| nagiosadmin.tar.gz
2: I also copied this file to the new server: /etc/httpd/conf.d/nagiosadmin.conf
3: I copied over my nagios file as well: /etc/httpd/conf.d/nagios.conf
This is what is contained in the file for nagiosadmin:
#Nagiosadmin
Alias /nagios/images/logos/nagiosimages /var/www/html/nagiosadmin/web/uploads/os_images
I am working on my my nagios migration works except for historical reporting. Which has nothing to do with nagiosadmin. I think it is a python error because I am on RHEL 6.0 x64.
You can check it by: vim /var/log/httpd/error_log
[Sun Mar 27 19:51:01 2011] [warn] child process 13272 still did not exit, sending a SIGTERM
[Sun Mar 27 19:51:01 2011] [error] Exception KeyError: KeyError(139692029769696,) in ignored
I will post up the solution soon as I figure it out.

xn85turbo

Anfänger

Beiträge: 25

Anzahl Nagios-Server: 1

Nagios-Version(en): 3.0.1

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 5

Anzahl Services: 20

Betriebssystem(e): Red Hat

Plugin-Version(en): nagios-plugins-1.4.11

3

28.03.2011, 03:38

I figured it out the error, my 3d map and all trend reporting was not working because nagios wanted gd*.i686 installed. Since I am on RHEL 6.0 x86_64 I have both now installed with all dependencies.
gd-2.0.35-10.el6.i686.rpm
gd-2.0.35-10.el6.x86_64.rpm
The steps listed above are what I did to migrate nagiosadmin and nagios from RHEL 5.1 to RHEL 6.0

Ähnliche Themen