parcival
19th March 2009, 18:02
Hi all,
If I try to start "External Command" get i this error message in centcore.log.
"Ip address not defined for poller"
I defined two Poller, once as local host and on the other hand as external host (Satellite).
In centcore i found this. Where is the problem here?
###snipp###
my $server_info = getServerConfig($id);
# check if ip address is defined
if (defined($server_info->{'ns_ip_address'})){
my $cmd = "$ssh -q ".$server_info->{'ns_ip_address'}." echo \"".$cmd."\" >> $command_file\n";
my $stdout = `$cmd`;
writeLogFile("External command : poller $id : \"".$cmd."\"\n");
if (defined($stdout) && $stdout){
writeLogFile("Result : $stdout\n");
}
# Free
undef($stdout);
} else {
writeLogFile("Ip address not defined for poller $id \n");
}
####snapp###
Also in the Debugmodus there is no information in the log file.
Thank you for each assistance.
Stefan
If I try to start "External Command" get i this error message in centcore.log.
"Ip address not defined for poller"
I defined two Poller, once as local host and on the other hand as external host (Satellite).
In centcore i found this. Where is the problem here?
###snipp###
my $server_info = getServerConfig($id);
# check if ip address is defined
if (defined($server_info->{'ns_ip_address'})){
my $cmd = "$ssh -q ".$server_info->{'ns_ip_address'}." echo \"".$cmd."\" >> $command_file\n";
my $stdout = `$cmd`;
writeLogFile("External command : poller $id : \"".$cmd."\"\n");
if (defined($stdout) && $stdout){
writeLogFile("Result : $stdout\n");
}
# Free
undef($stdout);
} else {
writeLogFile("Ip address not defined for poller $id \n");
}
####snapp###
Also in the Debugmodus there is no information in the log file.
Thank you for each assistance.
Stefan