2010-01-12 Pablo de la Concepcipón <pablo.concepcion@artica.es>

* unix/Linux/pandora_agent.conf, unix/AIX/pandora_agent.conf,
	unix/HP-UX/pandora_agent.conf, unix/pandora_agent,
	unix/SunOS/pandora_agent.conf: Updated unix agent to send 
	GIS information (altitude, latitude, longitude, and timezone_offset)

 


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2263 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
pabloconcepcion 2010-01-12 17:29:03 +00:00
parent 2b660b4862
commit e636b5c887
6 changed files with 66 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2010-01-12 Pablo de la Concepcipón <pablo.concepcion@artica.es>
* unix/Linux/pandora_agent.conf, unix/AIX/pandora_agent.conf,
unix/HP-UX/pandora_agent.conf, unix/pandora_agent,
unix/SunOS/pandora_agent.conf: Updated unix agent to send
GIS information (altitude, latitude, longitude, and timezone_offset)
2009-12-29 Sancho Lerena <slerena@artica.es> 2009-12-29 Sancho Lerena <slerena@artica.es>
* linux/pandora_agent_daemon: Some ugly warnings are fixed. * linux/pandora_agent_daemon: Some ugly warnings are fixed.

View File

@ -33,6 +33,19 @@ debug 0
# this feature # this feature
# autotime 1 # autotime 1
# Timezone offset: Difference with the server timezone
#timezone_offset 0
# Agent position paramters
# Those parameters define the geographical position of the agent
# latitude
#latitude 0
# longitude
#longitude 0
# altitude
#altitude 0
# By default agent try to take default encoding defined in host. # By default agent try to take default encoding defined in host.
# encoding iso-8859-15 # encoding iso-8859-15

View File

@ -33,6 +33,19 @@ debug 0
# this feature # this feature
# autotime 1 # autotime 1
# Timezone offset: Difference with the server timezone
#timezone_offset 0
# Agent position paramters
# Those parameters define the geographical position of the agent
# latitude
#latitude 0
# longitude
#longitude 0
# altitude
#altitude 0
# By default agent try to take default encoding defined in host. # By default agent try to take default encoding defined in host.
# encoding iso-8859-15 # encoding iso-8859-15

View File

@ -33,6 +33,19 @@ debug 0
# this feature # this feature
# autotime 1 # autotime 1
# Timezone offset: Difference with the server timezone
#timezone_offset 0
# Agent position paramters
# Those parameters define the geographical position of the agent
# latitude
#latitude 0
# longitude
#longitude 0
# altitude
#altitude 0
# By default agent try to take default encoding defined in host. # By default agent try to take default encoding defined in host.
# encoding iso-8859-15 # encoding iso-8859-15

View File

@ -33,6 +33,19 @@ debug 0
# this feature # this feature
# autotime 1 # autotime 1
# Timezone offset: Difference with the server timezone
#timezone_offset 0
# Agent position paramters
# Those parameters define the geographical position of the agent
# latitude
#latitude 0
# longitude
#longitude 0
# altitude
#altitude 0
# By default agent try to take default encoding defined in host. # By default agent try to take default encoding defined in host.
# encoding iso-8859-15 # encoding iso-8859-15

View File

@ -59,7 +59,11 @@ my %Conf = (
'secondary_server_pwd' => 'mypassword', 'secondary_server_pwd' => 'mypassword',
'secondary_server_ssl' => 'no', 'secondary_server_ssl' => 'no',
'secondary_server_opts' => '', 'secondary_server_opts' => '',
'autotime' => 0 'autotime' => 0,
'timezone_offset' => 0,
'latitude' => 0,
'longitude' => 0,
'altitude' => 0
# Missing: group, # Missing: group,
); );
@ -536,7 +540,8 @@ while (1) {
"<agent_data description='" . $Conf{'description'} ."' group='" . $Conf{'group'} . "<agent_data description='" . $Conf{'description'} ."' group='" . $Conf{'group'} .
"' os_name='$OS' os_version='$OS_VERSION' interval='" . $Conf{'interval'} . "' os_name='$OS' os_version='$OS_VERSION' interval='" . $Conf{'interval'} .
"' version='" . AGENT_VERSION . ($Conf{'autotime'} eq '1' ? '' : "' timestamp='" . strftime ('%Y/%m/%d %H:%M:%S', localtime ())) . "' version='" . AGENT_VERSION . ($Conf{'autotime'} eq '1' ? '' : "' timestamp='" . strftime ('%Y/%m/%d %H:%M:%S', localtime ())) .
"' agent_name='" . $Conf{'agent_name'} . "'>\n"; "' agent_name='" . $Conf{'agent_name'} . "' timezone_offset='". $Conf{'timezone_offset'}. "' longitude='" .$Conf{'longitude'} .
"' latitude='" .$Conf{'latitude'} ."' altitude='" .$Conf{'altitude'}."'>\n";
# Execute modules # Execute modules
foreach my $module (@Modules) { foreach my $module (@Modules) {