Here are my changes:
Edit the file /usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php and in switch_configwizard_get_cfgmaker_cmd I added extra argument to use ifAlias.
Code: Select all
$args[] = "--ifdesc=alias";But checking the temp mrtg cfg file looks like it is still using the ifdesrc value. For example:
"GigabitEthernet1/1"
If you scroll down a bit, the <description> part has the alias as part of the description.
<td>GigabitEthernet1/1 HPC OBA1 </td>
This means that at some point, it grabbed the alias. Perhaps I am not looking at the right spot and looking for some guidance to see how we can use ifAlias instead of fiDescr for port names.
Here's the data to help:
snmpwalk
IF-MIB::ifDescr.1 = STRING: GigabitEthernet1/1
IF-MIB::ifAlias.1 = STRING: HPC OBA1