mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
looks for new snmptrapd.conf file location
This commit is contained in:
parent
852c907457
commit
7423026878
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user