Welcome to Pandora FMS Community › Forums › Community support › Issues after moving from 2.0n Beta to 2.0
-
Issues after moving from 2.0n Beta to 2.0
Posted by godzone on November 6, 2008 at 03:13I have downloaded and am now running 2.0 against the database I had converted from 1.3 to 2.0 beta.
A number of the monitors are not working, or at least are not recording the result correctly.
TCP Monitors with id_tipo_modulo = 9 appear to be operating correctly and are getting valid results but the result remains as 0 and the monitor stays in a failing state.
All of the pandora servers are working but their status is ‘RED’, so something isn’t quite right here eiher.
godzone replied 16 years, 3 months ago 2 Members · 10 Replies -
10 Replies
-
-
-
-
-
-
::
Ok, I have just done that and there are no errors.
I put a print_r after the get_db_all_rows( tserver ) in godmode/servers/modificar_server, to see what the web ui thought was in the database. It shows
[0] => 4 [id_server] => 4 [1] => agree-22_Data [name] => agree-22_Data [2] => [ip_address] => [3] => 0 [status] => 0 [4] => 2008-11-08 03:04:44 [laststart] => 2008-11-08 03:04:44 [5] => 2008-11-08 03:04:54 [keepalive] => 2008-11-08 03:04:54 [6] => 0 [snmp_server] => 0 [7] => 0 [network_server] => 0 [8] => 1 [data_server] => 1 [9] => 1 [master] => 1 [10] => 0 [checksum] => 0 [11] => Autocreated at startup [description] => Autocreated at startup [12] => 0 [recon_server] => 0 [13] => 2.0 (P) PS081029 [version] => 2.0 (P) PS081029 [14] => 0 [plugin_server] => 0 [15] => 0 [prediction_server] => 0 [16] => 0 [wmi_server] => 0 [17] => 0 [export_server] => 0 ) Array ( [0] => 5 [id_server] => 5
If I use phpmyAdmin to look at the same database and same table I get,
Edit Delete 4 agree-22_Data 1 2008-11-08 03:04:57 2008-11-08 03:08:28 0 0 1 1 0 Autocreated at startup 0 2.0 (P) PS081029 0 0 0 0I am no mysql expert but I don’t understand how pandora_console does a slect and get status=0 and phpmyadmin does a select and gets a status=1
-
::
OK, I have finally tracked down the issue. With a bunch of test not working. Simply speaking, the config parsing code for all the timeouts is broken. It only allows a single digit. e.g.
elsif ($parametro =~ m/^tcp_timeouts([0-9])/i) {
$pa_config->{“tcp_timeout”} = clean_blank($1);
}The RE needs to be ([0-9]+) or better (d+)
I had changed the timeout from the default 30 to 15, which actually resulted in it being just 1!! which isn’t long enough. I’ll post to the developers list as well.
-
-
-