LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-15-2004, 02:49 PM   #1
batatudo
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
SNMP from PHP


Hi

I installed NET-SNMP 5.0.8 on my mandrake linux server running apache 4.3.3.

Everything looks OK, but none of the snmp functions in PHP works.
I think I have to enable some module in PHP to activate the SNMP functions,
or maybe is in the Apache. I don't know.

I need help!!!
thanks

bye
 
Old 02-02-2004, 05:05 PM   #2
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
Is your php compiled as a apache module or CGI?
 
Old 03-19-2004, 10:11 PM   #3
rstory
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by batatudo
I installed NET-SNMP 5.0.8 on my mandrake linux server running apache 4.3.3.

Everything looks OK, but none of the snmp functions in PHP works.
Does snmp work from the command line? Try

snmpget -v 2c -c public localhost sysContact.0

If it doesn't work from the command line, you should get that working before you try php. If you didn't configure access control for net-snmp, adding 'rocommunity public' to your snmpd.conf file will probably get you going.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 06:08 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
snmp / php BaerRS Linux - Networking 2 04-21-2003 08:31 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration