<?php
set_time_limit(0);

// Configuration
include 'config/config.php';

// Version Functions
include 'functions/getVersion.php';
include 'functions/checkVersion.php';

// Debugging Functions
include 'functions/debug.php';

echo "LinMon slave version ".getVersion("version")." started \n\n";
echo checkVersion();
debug_collctionInterval($config['debug'], $config['updateinterval']);

while (true){
	debug_collectionInfoStart($config['debug']);
	sleep($config['updateinterval']);
}
?>
<?php
set_time_limit(0);

// Configuration
include 'config/config.php';

// Version Functions
include 'functions/getVersion.php';
include 'functions/checkVersion.php';

// Debugging Functions
include 'functions/debug.php';

echo "LinMon slave version ".getVersion("version")." started \n\n";
echo checkVersion();
collctionInterval();

while (true){
	collectionInfoStart();
	sleep($config['updateinterval']);
}
?>
--- 
+++ 
@@ -13,10 +13,10 @@
 
 echo "LinMon slave version ".getVersion("version")." started \n\n";
 echo checkVersion();
-collctionInterval();
+debug_collctionInterval($config['debug'], $config['updateinterval']);
 
 while (true){
-	collectionInfoStart();
+	debug_collectionInfoStart($config['debug']);
 	sleep($config['updateinterval']);
 }
 ?>
Use new function names.  Pass required data rather than debug file reading values directly.
