PHP & SNMP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,
 Seem to have a bit of a problem I can't figure out. I'm trying to query
servers via SNMP with PHP's snmpget function. Everything seems to work
fine, no problems at all - except I'd like the web page to print the
string value instead of the numeric value (I.E. OK for the Compaq Drive
Array vs 1).

 Now I've configured everything as best I can tell, and I have the page
loading the appropriate MIB file (
snmp_read_mib("/usr/local/share/snmp/mibs/CPQIDA.MIB")). 

 Running it from the terminal via 'php mypage.php' returns all the
correct values, I see "Ok", instead of "1". But accessing it via the web
produces nothing - no output. It doesn't matter how I set the get, I've
tried varying it with "CPQIDA-MIB::cpqDaCntlrBoardStatus.0",
"cpqDaCntlrBoardStatus.0",
".iso.org.dod.internet.private.enterprises.compaq.cpqDriveArray.cpqDaCom
ponent.cpqDaCntlr.cpqDaCntlrTable.cpqDaCntlrEntry.cpqDaCntlrBoardStatus.
0" - all work fine running it via the terminal, but not via the web
page.

Does anyone have any ideas at all about this? Anything else I can check?
If I snmpget the numeric OID (.1.3.6.1.4.1.232.3.2.2.1.1.10.0) it does
work, but only returns the numeric value.

System Info:
PHP 5.0.5
Net-SNMP 5.1.1

Php compiled with --with-snmp and --enable-ucd-snmp-hack

Thanks.
 

Jeremy Pavleck 
Network Engineer  - Systems Management 
IT Networks and Infrastructure 
        
Direct Line: 612-977-5881 
Toll Free: 1-888-CAPELLA ext. 5881 
Fax: 612-977-5053 
E-mail: jeremy.pavleck@xxxxxxxxxxx <mailto:jeremy.pavleck@xxxxxxxxxxx>  
        
Capella University 
225 South 6th Street, 9th Floor 
Minneapolis, MN 55402 

www.capella.edu <http://www.capella.edu/>  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux