2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

looks for new snmptrapd.conf file location

This commit is contained in:
linggao 2015-06-26 11:50:40 -04:00
parent 852c907457
commit 7423026878

View File

@ -24,7 +24,11 @@ my $confdir;
if(xCAT::Utils->isAIX()){
$::snmpconfdir = "/opt/freeware/etc";
} else {
$::snmpconfdir = "/usr/share/snmp";
if (-f "/etc/snmp/snmpd.conf") {
$::snmpconfdir = "/etc/snmp";
} else {
$::snmpconfdir = "/usr/share/snmp";
}
}