SNMP MIBs MIB could not be installed - directory permission

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

SNMP MIBs MIB could not be installed - directory permission

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

Re: SNMP MIBs MIB could not be installed - directory permis

Post by rentsys »

Yes this is happening on the manage mibs page. I am currently running Nagios XI 2012R2.5.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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.
Former Nagios employee
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rentsys
Posts: 98
Joined: Wed Oct 16, 2013 11:57 am

Re: SNMP MIBs MIB could not be installed - directory permis

Post 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) "
Locked