LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2012, 04:24 AM   #1
kodena
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
snmp and extend option


Hi mates!

I'm configuring external script in net-snmp (5.3.2.2 under fedora 16) and it not works like I expect.

First I create the script that contains something like this:
SCRIPT: /procnum.sh
CONTENT:
#!/bin/bash
ps -ef | wc -l

Then I modified the snmpd.conf and add this at the end:
extend procnum /procnum.sh

Restart snmpd and check though snmpwalk
snmpwalk -v1 -cpublic localhost | grep -i procnum
and it doesn't show my extension command

All is installed by default, selinux disabled...any idea about what I missing?

Thanks!
 
Old 05-19-2012, 11:35 AM   #2
kodena
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Finaly, following the net-snmp FAQ, I made two things:
1.- added this line in the snmp.conf
view*** systemview*** included** .1.3.6.1.4.1.8072
2.-snmpwalk -v1 -cpublic localhost .1.3.6.1.4.1.8072 (by default it not "walks" in the enterprise tree)

Thanks!
 
  


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 extend genderbender Linux - Software 0 03-22-2011 11:09 AM
Net-SNMP - Run a command as root with "extend" feature gimpy530 Linux - Software 0 07-13-2010 09:03 PM
SNMP Extend MIB on Ubuntu snmpd 5.4.1 lpse2000 Linux - Software 1 10-01-2009 04:55 PM
Net-Snmp: Cannot extend agent to run script from configuration file skatersam0 Linux - Networking 2 06-30-2009 11:11 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 PM.

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