Hi,
I know that you can't simply add mibs to observium :)
I just want to add mib, so I can use object names instead of OID in code.
I've added in include/definitions/os.inc.php: $os = "alteon-ad"; $config['os'][$os]['mibs'][] = "ALTEON-CHEETAH-NETWORK-MIB";
And try add ha status for this device using $alteon['hastatus'] = snmpwalk_cache_oid($device, 'vrrpInfoHAState', array(), 'ALTEON-CHEETAH-NETWORK-MIB');
In debug mode I can see errors /usr/bin/snmpbulkwalk -t '5' -r '3' -v2c -c 'something' -Pu -OQUs -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs 'udp':'myDevice':'161' vrrpInfoHAState
Cannot find module (ALTEON-CHEETAH-NETWORK-MIB)
But file exist in 2 locations: /opt/observium/mibs/nortel/ALTEON-CHEETAH-SWITCH-MIB /opt/observium/mibs/alteon/ALTEON-CHEETAH-SWITCH-MIB
How can I map this mib to alteon-ad os, so snmp commands would have options: -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs/alteon:/opt/observium/mibs/rfc Instead of: -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs ?
Best regards,
Tomasz Kwiecień
Nordea | Network Security Operations Visit me: Łuzycka 8C, Gdynia Tel: +48 586671348 E-mail: tomasz.kwiecien@nordea.commailto:tomasz.kwiecien@nordea.com Web: nordea.comhttp://http/www.nordea.com
Nordea Bank AB (publ). Company registration number/VAT number 516406-0120/SE663000019501. The board is domiciled in Stockholm, Sweden
This e-mail may contain confidential information. If you receive this e-mail by mistake, please inform the sender, delete the e-mail and do not share or copy it.
You can ignore last email :) I was missing:
$mib = 'ALTEON-CHEETAH-NETWORK-MIB'; $config['mibs'][$mib]['mib_dir'] = 'alteon';
Best regards,
Tomasz Kwiecień
Nordea | Network Security Operations Visit me: Łuzycka 8C, Gdynia Tel: +48 586671348 E-mail: tomasz.kwiecien@nordea.commailto:tomasz.kwiecien@nordea.com Web: nordea.comhttp://http/www.nordea.com
Nordea Bank AB (publ). Company registration number/VAT number 516406-0120/SE663000019501. The board is domiciled in Stockholm, Sweden
This e-mail may contain confidential information. If you receive this e-mail by mistake, please inform the sender, delete the e-mail and do not share or copy it.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tomasz.Kwiecien@nordea.com Sent: Thursday, August 31, 2017 2:47 PM To: observium@observium.org Subject: [Observium] mib folder
Hi,
I know that you can't simply add mibs to observium :)
I just want to add mib, so I can use object names instead of OID in code.
I've added in include/definitions/os.inc.php: $os = "alteon-ad"; $config['os'][$os]['mibs'][] = "ALTEON-CHEETAH-NETWORK-MIB";
And try add ha status for this device using $alteon['hastatus'] = snmpwalk_cache_oid($device, 'vrrpInfoHAState', array(), 'ALTEON-CHEETAH-NETWORK-MIB');
In debug mode I can see errors /usr/bin/snmpbulkwalk -t '5' -r '3' -v2c -c 'something' -Pu -OQUs -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs 'udp':'myDevice':'161' vrrpInfoHAState
Cannot find module (ALTEON-CHEETAH-NETWORK-MIB)
But file exist in 2 locations: /opt/observium/mibs/nortel/ALTEON-CHEETAH-SWITCH-MIB /opt/observium/mibs/alteon/ALTEON-CHEETAH-SWITCH-MIB
How can I map this mib to alteon-ad os, so snmp commands would have options: -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs/alteon:/opt/observium/mibs/rfc Instead of: -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs ?
Best regards,
Tomasz Kwiecień
Nordea | Network Security Operations Visit me: Łuzycka 8C, Gdynia Tel: +48 586671348 E-mail: tomasz.kwiecien@nordea.commailto:tomasz.kwiecien@nordea.com Web: nordea.comhttp://http/www.nordea.com
Nordea Bank AB (publ). Company registration number/VAT number 516406-0120/SE663000019501. The board is domiciled in Stockholm, Sweden
This e-mail may contain confidential information. If you receive this e-mail by mistake, please inform the sender, delete the e-mail and do not share or copy it.
You need to be careful about versions of mind and locations. Since there can only be one definition, it should be in the correct place and be the latest version.
Adam.
Sent from BlueMail
On 31 Aug 2017, 15:59, at 15:59, Tomasz.Kwiecien@nordea.com wrote:
You can ignore last email :) I was missing:
$mib = 'ALTEON-CHEETAH-NETWORK-MIB'; $config['mibs'][$mib]['mib_dir'] = 'alteon';
Best regards,
Tomasz Kwiecień
Nordea | Network Security Operations Visit me: Łuzycka 8C, Gdynia Tel: +48 586671348 E-mail: tomasz.kwiecien@nordea.commailto:tomasz.kwiecien@nordea.com Web: nordea.comhttp://http/www.nordea.com
Nordea Bank AB (publ). Company registration number/VAT number 516406-0120/SE663000019501. The board is domiciled in Stockholm, Sweden
This e-mail may contain confidential information. If you receive this e-mail by mistake, please inform the sender, delete the e-mail and do not share or copy it.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tomasz.Kwiecien@nordea.com Sent: Thursday, August 31, 2017 2:47 PM To: observium@observium.org Subject: [Observium] mib folder
Hi,
I know that you can't simply add mibs to observium :)
I just want to add mib, so I can use object names instead of OID in code.
I've added in include/definitions/os.inc.php: $os = "alteon-ad"; $config['os'][$os]['mibs'][] = "ALTEON-CHEETAH-NETWORK-MIB";
And try add ha status for this device using $alteon['hastatus'] = snmpwalk_cache_oid($device, 'vrrpInfoHAState', array(), 'ALTEON-CHEETAH-NETWORK-MIB');
In debug mode I can see errors /usr/bin/snmpbulkwalk -t '5' -r '3' -v2c -c 'something' -Pu -OQUs -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs 'udp':'myDevice':'161' vrrpInfoHAState
Cannot find module (ALTEON-CHEETAH-NETWORK-MIB)
But file exist in 2 locations: /opt/observium/mibs/nortel/ALTEON-CHEETAH-SWITCH-MIB /opt/observium/mibs/alteon/ALTEON-CHEETAH-SWITCH-MIB
How can I map this mib to alteon-ad os, so snmp commands would have options: -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs/alteon:/opt/observium/mibs/rfc Instead of: -m ALTEON-CHEETAH-NETWORK-MIB -M /opt/observium/mibs ?
Best regards,
Tomasz Kwiecień
Nordea | Network Security Operations Visit me: Łuzycka 8C, Gdynia Tel: +48 586671348 E-mail: tomasz.kwiecien@nordea.commailto:tomasz.kwiecien@nordea.com Web: nordea.comhttp://http/www.nordea.com
Nordea Bank AB (publ). Company registration number/VAT number 516406-0120/SE663000019501. The board is domiciled in Stockholm, Sweden
This e-mail may contain confidential information. If you receive this e-mail by mistake, please inform the sender, delete the e-mail and do not share or copy it.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
Tomasz.Kwiecien@nordea.com