2010-01-20 Ramon Novoa <rnovoa@artica.es>

* util/pandora_xml_stress.pl: Fixed the script. Was not working.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2289 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2010-01-20 13:34:13 +00:00
parent 6504b3cd54
commit c0a3782a05
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-01-20 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl: Fixed the script. Was not working.
2010-01-18 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm: Modified distance_moved function to calculate

View File

@ -89,8 +89,8 @@ sub generate_xml_files ($$$$$) {
my $os_name = get_conf_token ($conf, 'os_name', 'Linux');
my $os_version = get_conf_token ($conf, 'os_version', '2.6');
my $temporal = get_conf_token ($conf, 'temporal', '/tmp');
my $startup_delay = get_conf_token ($conf, 'startup_delay', '5')
my $ag_timezone_offset = get_conf_token ($conf, 'timezone_offset', '0')
my $startup_delay = get_conf_token ($conf, 'startup_delay', '5');
my $ag_timezone_offset = get_conf_token ($conf, 'timezone_offset', '0');
my $latitude_base = get_conf_token ($conf, 'latitude_base', '40.42056');
my $longitude_base = get_conf_token ($conf, 'longitude_base', '-3.708187');
my $altitude_base = get_conf_token ($conf, 'altitude_base', '0');
@ -123,7 +123,7 @@ sub generate_xml_files ($$$$$) {
# XML header
my $timestamp = strftime ("%Y-%m-%d %H:%M:%S", localtime ($utimestamp));
my $xml_data = "<?xml version='$xml_version' encoding='$encoding'?>\n";
$xml_data .= "<agent_data os_name='$os_name' os_version='$os_version' interval='$interval' version='$os_version' timestamp='$timestamp' agent_name='$agent_name' timezone_offset='$ag_timezone_offset' longitude='$ag_longitude' latitude='$ag_latitude' altitude='$ag_altitude' />\n";
$xml_data .= "<agent_data os_name='$os_name' os_version='$os_version' interval='$interval' version='$os_version' timestamp='$timestamp' agent_name='$agent_name' timezone_offset='$ag_timezone_offset' longitude='$ag_longitude' latitude='$ag_latitude' altitude='$ag_altitude'>\n";
foreach my $module (@{$modules}) {
# Skip unnamed modules