Page 1 of 2
SNMP MIBs MIB could not be installed - directory permission
Posted: Mon Nov 04, 2013 1:02 pm
by rentsys
I have gone through and done all the steps in this thread
http://support.nagios.com/forum/viewtop ... d&start=10 but the mib file powernet409.mib from APC still wouldn't work. So while I was troubleshooting I tried editing the file size by removing things out of the file and when the file was 2,048 KB and under it would upload but when it was 2,049 KB and over it wouldn't. I thought that was pretty weird so I tested this same thing with a text while were the only thing in it was the letter d. The same thing happened the file would upload if it was 2,048 and under, but wouldn't if it was 2,049 and over.
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 04, 2013 4:27 pm
by sreinhardt
Very interesting, so this was happening on the manage mibs page, while trying to upload mibs to the nagios server? What version of XI are you presently running?
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 04, 2013 4:38 pm
by rentsys
Yes this is happening on the manage mibs page. I am currently running Nagios XI 2012R2.5.
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 04, 2013 5:27 pm
by sreinhardt
I was able to confirm this as a bug. I will create an internal bug report for this and let you know as soon as we have a patch to apply!
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 04, 2013 5:39 pm
by rentsys
It's good to hear it wasn't something I was doing wrong, so I guess this situation is resolved. We are just going to have to wait until the next patch. How often are patches done?
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 04, 2013 5:55 pm
by tmcdonald
Patches can take anywhere from a day to a month depending on their severity and number of reports, among other things. In the meantime you should be able to manually scp the MIB over.
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Tue Nov 05, 2013 10:34 am
by sreinhardt
This one, actually is not a bug with nagios, but something we will be including in the faq or other documentation. You need to change /etc/php.ini:
Code: Select all
upload_max_filesize = 4M (or something larger if needed)
Then restart apache. This should resolve the issue.
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 11, 2013 1:12 pm
by rentsys
That solved the problem, but now I have a different one. I use
Code: Select all
snmpwalk -mPowerNet-MIB -v2c -cRentsys 10.160.1.38 atsStatus
and it outputs
Code: Select all
PowerNet-MIB::atsOutputMaxPower.1.phase1.1 = INTEGER: -1
PowerNet-MIB::atsOutputMinPower.1.phase1.1 = INTEGER: -1
PowerNet-MIB::atsOutputPercentPower.1.phase1.1 = INTEGER: -12
PowerNet-MIB::atsOutputMaxPercentPower.1.phase1.1 = INTEGER: -1
PowerNet-MIB::atsOutputMinPercentPower.1.phase1.1 = INTEGER: -1
PowerNet-MIB::atsOutputPhaseState.1.phase1.1 = INTEGER: normal(1)
PowerNet-MIB::atsOutputBankTableSize.0 = INTEGER: 0
but when I use
Code: Select all
snmpwalk -mPowerNet-MIB -v2c -cRentsys 10.160.1.38
It outputs this
Code: Select all
RFC1213-MIB::snmpOutGetRequests.0 = Counter32: 0
RFC1213-MIB::snmpOutGetNexts.0 = Counter32: 0
RFC1213-MIB::snmpOutSetRequests.0 = Counter32: 0
RFC1213-MIB::snmpOutGetResponses.0 = Counter32: 24613
RFC1213-MIB::snmpOutTraps.0 = Counter32: 504
RFC1213-MIB::snmpEnableAuthenTraps.0 = INTEGER: enabled(1)
RFC1213-MIB::snmp.31.0 = Counter32: 0
RFC1213-MIB::snmp.32.0 = Counter32: 0
It doesn't give me any oid's from the PowerNet-MIB.
How do I get it to output all the oid's it finds from PowerNet-MIB?
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 11, 2013 1:39 pm
by sreinhardt
I think what you are seeing, is that the snmpwalk is starting from oid 0 or 1, and walking the entire tree with the second example. The first example that additional atsstatus is telling snmpwalk, what oid you want to start at. What happens if you try:
Code: Select all
snmpwalk -mPowerNet-MIB -v2c -cRentsys 10.160.1.38 | grep PowerNet-MIB
OR
snmpwalk -mPowerNet-MIB -v2c -cRentsys 10.160.1.38 | grep ats
Re: SNMP MIBs MIB could not be installed - directory permis
Posted: Mon Nov 11, 2013 1:48 pm
by rentsys
Here is what I got.
Code: Select all
[root@Juno ~]# snmpwalk -mPowerNet-MIB -v2c -cRentsys 10.160.1.38 | grep PowerNet-MIB
RFC1213-MIB::sysObjectID.0 = OID: PowerNet-MIB::automaticXferSwitch
[root@Juno ~]# snmpwalk -mPowerNet-MIB -v2c -cRentsys 10.160.1.38 | grep ats
RFC1213-MIB::sysDescr.0 = STRING: "APC Web/SNMP Management Card (MB:v3.9.2 PF:v3.7.4 PN:apc_hw02_aos_374.bin AF1:v3.7.0 AN1:apc_hw02_g2ats_370.bin MN:AP7721 HR:01 SN: 5A1219T10371 MD:05/12/2012) "