Hi,Can someone point me to a doc on the proper slave upgrade procedure
for CE 3.5? I can only find the initial slave setup docs. Should I run
through those again and if so do I need to move devices on the slave
back to the master before running the send2slave script?I just
upgraded the master yesterday and I am receiving a configuration
output error when reloading the config after an upgrade to CE 3.5.2
(64bit). All evidence points to the slave being out of sync.
The line of code in nagios.cfg is
# Opsera patch: synchronise state information between master and slaves
# Only applicable on slaves
*sync_retention_file=/usr/local/nagios/var/sync.dat*
The line of code for StatusLog.pm it refers to for line 481 is:
my $entry = '';
while ( my $line = <$log_fh> ) {
next if ( $line =~ /^\s*#/ );
$entry .= $line;
if ( $entry =~ m/$entry_re/ ) {
( my $type, my $text, $entry ) = ( $1, $2, $3 );
$text =~ s/[\r\n]+\s*/\n/g; # clean up whitespace and newlines
*my %item = map { split /\s*=\s*/, $_, 2 } split /\n/, $text;*
$handlers{$type}->( \%item );
}
}
close($log_fh);
1;
}
Configuration Output
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
7846.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
8929.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
10582.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
13375.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
46264.
Thu Feb 4 11:42:31 2010 Starting
Thu Feb 4 11:42:31 2010 --> Writing config files for SN Monitoring Server
Thu Feb 4 11:42:31 2010 Written node specific information
Thu Feb 4 11:42:31 2010 38 commands written to checkcommands.cfg
Thu Feb 4 11:42:32 2010 52 service definitions written to services.cfg
Thu Feb 4 11:42:33 2010 22 hosts written to hosts.cfg
Thu Feb 4 11:42:33 2010 3 hostgroups written to hostgroups.cfg
Thu Feb 4 11:42:35 2010 12 contacts written to contacts.cfg
Thu Feb 4 11:42:35 2010 12 contacts written to htpasswd.users
Thu Feb 4 11:42:35 2010 9 groups written to contactgroups.cfg
Written nagios.cfg
Written cgi.cfg
Written misccommands.cfg
Written timeperiods.cfg
Written snmptraps.cfg
Written nsca.cfg
Written send_nsca.cfg
Written ndo2db.cfg
Written ndomod.cfg
Thu Feb 4 11:42:36 2010 0 dependencies written to services.cfg
Nagios config re-generated in 5.929 seconds
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
55441.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
55954.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
57037.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
57493.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
57949.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
58405.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
58975.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
59431.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
59944.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
60400.
Odd number of elements in hash assignment at
/usr/local/nagios/perl/lib/Nagios/StatusLog.pm line 481, <GEN0> line
63535.
Error:
Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Error in configuration file
'/usr/local/nagios/tmp/nagios.1838/nagios.cfg' - Line 635 (UNKNOWN
VARIABLE)
Error processing main config file!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Thu Feb 4 11:42:30 2010 Starting
Thu Feb 4 11:42:30 2010 --> Writing config files for Master Monitoring Server
Thu Feb 4 11:42:32 2010 38 commands written to checkcommands.cfg
Thu Feb 4 11:42:40 2010 822 service definitions written to services.cfg
Thu Feb 4 11:42:41 2010 125 hosts written to hosts.cfg
Thu Feb 4 11:42:41 2010 11 hostgroups written to hostgroups.cfg
Thu Feb 4 11:42:42 2010 35 contacts written to contacts.cfg
Thu Feb 4 11:42:42 2010 35 contacts written to htpasswd.users
Thu Feb 4 11:42:42 2010 52 groups written to contactgroups.cfg
Written nagios.cfg
Written cgi.cfg
Written misccommands.cfg
Written timeperiods.cfg
Written snmptraps.cfg
Written nsca.cfg
Written send_nsca.cfg
Written ndo2db.cfg
Written ndomod.cfg
Thu Feb 4 11:42:43 2010 0 dependencies written to services.cfg
Nagios config re-generated in 13.536 seconds
Failed to generate configuration - see /admin/reload for errors
----
Environment: 64bit Centos:
Linux Version: 2.6.18-164.11.1.el5 ([email protected])
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 20
07:32:21 EST 2010
Thanks,
Rick
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users