Code: Select all
api_plugin_register_hook('thold', 'poller_bottom', 'thold_poller_bottom', 'includes/polling.php');
An example might be something like:
Code: Select all
exec_background("/usr/bin/php", " -q help_me.php -A -B -C");
Moderators: Developers, Moderators
Code: Select all
api_plugin_register_hook('thold', 'poller_bottom', 'thold_poller_bottom', 'includes/polling.php');
Code: Select all
exec_background("/usr/bin/php", " -q help_me.php -A -B -C");
Bullseye! -- thanks it is up and running perfectly now.spiffydudex wrote:For whatever reason, it seems like you have a degree symbol in the latitude coordinate. That's probably breaking the function.
Code: Select all
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/html/plugins/gpsmap/includes/processregion.php on line 43
Warning: Missing argument 18 for host::host(), called in /var/www/html/plugins/gpsmap/includes/processregion.php on line 46 and defined in /var/www/html/plugins/gpsmap/class/hosts_class.php on line 23
Notice: Undefined variable: group in /var/www/html/plugins/gpsmap/class/hosts_class.php on line 45
Make sure the group number is not left blank in the device properties. By default it is 0.skareb wrote:Hi all !
I 'm stuck trying to troubleshoot why my hosts don't show up on the map.
Below, the error message:The gpsXML.xml file is populated, but with the group empty.Code: Select all
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/html/plugins/gpsmap/includes/processregion.php on line 43 Warning: Missing argument 18 for host::host(), called in /var/www/html/plugins/gpsmap/includes/processregion.php on line 46 and defined in /var/www/html/plugins/gpsmap/class/hosts_class.php on line 23 Notice: Undefined variable: group in /var/www/html/plugins/gpsmap/class/hosts_class.php on line 45
I'm using the 1.63 release.
Did I miss something in the config ?
Thank you in adavance for you help !
Br,
Skareb
Make sure you copy the whole code. Usually just double clicking the code and copy/paste will only select 2/3rds of the code. Also check that you are activating for the correct domain address. If you are visiting the site via FooDomain.com then get a code for FooDomain.com.Atreides wrote:Hello, I've installed GPS Maps, but its not working properly, maybe someone can give me some hints. I've made an API key from code.google.com, but when I try to access the map it keeps saying :
Google has disabled use of the Maps API, invalid key, etc,etc. If I login with my account, and check the key, everything looks ok.
Hi spiffydudex,Make sure the group number is not left blank in the device properties. By default it is 0.
If someone have an idea$config['url_path'] = '/cacti/';
define('URL_PATH', $config['url_path']);
spiffydudex wrote:Make sure you copy the whole code. Usually just double clicking the code and copy/paste will only select 2/3rds of the code. Also check that you are activating for the correct domain address. If you are visiting the site via FooDomain.com then get a code for FooDomain.com.Atreides wrote:Hello, I've installed GPS Maps, but its not working properly, maybe someone can give me some hints. I've made an API key from code.google.com, but when I try to access the map it keeps saying :
Google has disabled use of the Maps API, invalid key, etc,etc. If I login with my account, and check the key, everything looks ok.
Yes, the KML generation for 1.63, it shouldn't have any effect on the actual map presented in the browser. If you are going to use KMLs for google earth, then to fix it replace the URL generation line is iconskml.php:tosage wrote:Hello i Have the same issue with a fresh installation of GpsMap 1.63.
I don't see any point in the map, however I saw something strange in the file gpsKML.kml :
http://cacti.mydomain.fr/site/plugins/g ... DrkRed.png
When i go to this URL, my web browser sho me an 404 Not Found
In my include/global.php i have set the
If someone have an idea$config['url_path'] = '/cacti/';
define('URL_PATH', $config['url_path']);
Thanks !
Code: Select all
$iconlist .= "<href>http://".$server."/site/plugins/gpsmap/images/icons/".$icon.".".$tail."</href>";
Code: Select all
$iconlist .= "<href>http://".$server.$config['url_path']."plugins/gpsmap/images/icons/".$icon.".".$tail."</href>";
Code: Select all
function iconskml(){
global $config;
I'm not sure why your version of the download did not include this. Hmm..very odd. Anyways...skareb wrote:Hi spiffydudex,Make sure the group number is not left blank in the device properties. By default it is 0.
Thank you for your reply.
The device group number is filled in the device properties. Do you have any ideas how I can troubleshoot my issue ?
Br,
Skareb,
Code: Select all
$group = $row['groupnum'];
if($hostOnly){
if($row['host_template_id']==$hostId){
$hostArray[] = new host($row['id'],$row['host_template_id'],$row['latitude'],$row['longitude'],$first.$second.$third.$fourth,$row['description'],$row['hostname'],0,$row['availability'],$status,$row['cur_time'],$row['GPScoverage'],$upimage,$downimage,$recoverimage,0,360,$group);
}
}else{
if(in_array($row['host_template_id'],$towerIds)){
$towerArray[] = new host($row['id'],$row['host_template_id'],$row['latitude'],$row['longitude'],$first.$second.$third.$fourth,$row['description'],$row['hostname'],0,$row['availability'],$status,$row['cur_time'],$row['GPScoverage'],$upimage,$downimage,$recoverimage,$start,$stop,$group);
}else{
$hostArray[] = new host($row['id'],$row['host_template_id'],$row['latitude'],$row['longitude'],$first.$second.$third.$fourth,$row['description'],$row['hostname'],0,$row['availability'],$status,$row['cur_time'],$row['GPScoverage'],$upimage,$downimage,$recoverimage,0,360,$group);
}
}
Users browsing this forum: No registered users and 1 guest