diff --git a/application/controllers/SettingsController.php b/application/controllers/SettingsController.php index 25b3e15..8213117 100644 --- a/application/controllers/SettingsController.php +++ b/application/controllers/SettingsController.php @@ -422,7 +422,12 @@ private function checkSnmpTrapd() { $psOutput=array(); // First check is someone is listening to port 162. As not root, we can't have pid... - $sspath = '/usr/sbin/ss'; + $sspath = exec('which ss 2>/dev/null'); + if(empty($sspath)) + { + // RHEL based systems + $sspath = '/usr/sbin/ss'; + } if(!is_executable("$sspath")) { return array(1,"Can not execute $sspath");