diff options
author | jim-p <jimp@pfsense.org> | 2013-03-21 09:06:25 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-03-21 09:09:32 -0400 |
commit | dadf8ebb488c6dbefc84cf1a104e1d34e41966bb (patch) | |
tree | a71d287b4def61f772e4bb6f04aa9a0c56f3618d | |
parent | 4c15d00660d6ed9a919676968d4b929068ed81c0 (diff) | |
download | pfsense-dadf8ebb488c6dbefc84cf1a104e1d34e41966bb.zip pfsense-dadf8ebb488c6dbefc84cf1a104e1d34e41966bb.tar.gz |
use a custom sysDescr for snmp similar to m0n0wall's format. Fixes #2893
-rw-r--r-- | etc/inc/services.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index c9c76a5..309a424 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1677,10 +1677,16 @@ trap := "{$config['snmpd']['trapstring']}" EOD; } + $version = trim(file_get_contents('/etc/version')); + $platform = trim(file_get_contents('/etc/platform')); + $sysDescr = "{$g['product_name']} " . php_uname("n") . + " {$version} {$platform} " . php_uname("s") . + " " . php_uname("r") . " " . php_uname("m"); $snmpdconf .= <<<EOD system := 1 # pfSense %snmpd +sysDescr = "{$sysDescr}" begemotSnmpdDebugDumpPdus = 2 begemotSnmpdDebugSyslogPri = 7 begemotSnmpdCommunityString.0.1 = $(read) |