LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-18-2005, 09:35 PM   #1
lewkh
Member
 
Registered: Oct 2004
Posts: 69

Rep: Reputation: 15
SNMP Request Problem!!!


Hi Everybody,
I am running the net-snmp on my Fedora Core 3 and I configure the /etc/snmp/snmp.conf as follows: (portion of snmp.conf)

proc cupsd
enterprises.ucdavis.procTable.prEntry.prIndex.1 = 1
enterprises.ucdavis.procTable.prEntry.prNames.1 = "cupsd"
enterprises.ucdavis.procTable.prEntry.prMin.1 = 0
enterprises.ucdavis.procTable.prEntry.prMax.1 = 0
enterprises.ucdavis.procTable.prEntry.prCount.1 = 0
enterprises.ucdavis.procTable.prEntry.prErrorFlag.1 = 1
enterprises.ucdavis.procTable.prEntry.prErrMessage.1 = "No mountd process running."
enterprises.ucdavis.procTable.prEntry.prErrFix.1 = 0

---AND the cupsd process running---
#ps ax|grep cupsd
2193 ? Ss 0:00 cupsd
13307 pts/1 S+ 0:00 grep cupsd

but once I run the snmp query like snmpwalk -v 2c -c bubble localhost .1.3.6.1.4.1.2021.2 ,it return that result in no process running!! I would like to know what is the problem here?
---RETURN of snmp-----
UCD-SNMP-MIB:rIndex.1 = INTEGER: 1
UCD-SNMP-MIB:rNames.1 = STRING: cupsd
UCD-SNMP-MIB:rMin.1 = INTEGER: 0
UCD-SNMP-MIB:rMax.1 = INTEGER: 0
UCD-SNMP-MIB:rCount.1 = INTEGER: 0
UCD-SNMP-MIB:rErrorFlag.1 = INTEGER: 1
UCD-SNMP-MIB:rErrMessage.1 = STRING: No cupsd process running.
UCD-SNMP-MIB:rErrFix.1 = INTEGER: 0
UCD-SNMP-MIB:rErrFixCmd.1 = STRING:

Furthermore I also got the problem of using snmp to call a shell script, as like
snmp -v 2c -c bubble localhost .1.3.6.1.4.1.2021.88
---RETURN of snmp----
UCD-SNMP-MIB::ucdavis.88.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.88.2.1 = STRING: "Helloworld"
UCD-SNMP-MIB::ucdavis.88.3.1 = STRING: "/bin/sh /root/hello.sh"
UCD-SNMP-MIB::ucdavis.88.100.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.88.101.1 = STRING: "/bin/sh: Permission denied"
UCD-SNMP-MIB::ucdavis.88.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.88.103.1 = ""
>>The simple shell script is showing "Hello World" when I run on console, and I am sure that the permission I have set it as 777, but still got the problem???

Please advise me.....
 
  


Reply



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
SNMP problem ValidiusMaximus Linux - Networking 1 09-15-2005 12:54 PM
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
snmp :- No response, request timedout Pranesh Linux - Software 0 09-08-2003 08:51 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration