mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Added posix-fifo to deliver alerts to the IRC-bot
This commit is contained in:
		@@ -21,4 +21,11 @@
 | 
			
		||||
 * @subpackage Alerts
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
return file_put_contents($config['install_dir']."/.ircbot.alert", json_encode($obj)."\n", FILE_APPEND);
 | 
			
		||||
$f = $config['install_dir']."/.ircbot.alert";
 | 
			
		||||
$f = fopen($f,"w+");
 | 
			
		||||
$f = fwrite($f,json_encode($obj)."\n");
 | 
			
		||||
if( $f === false ) {
 | 
			
		||||
	return false;
 | 
			
		||||
} else {
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user