Re: net-snmp isn't running pass_persist script? how do i know?

"Ken Adey" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <009201c7a6d5$fc5237c0$6601a8c0@redvin>
I'm having seemingly the same issue, though I'm trying to use the "pass" 
mechanism with a Python script and a proprietary MIB.

Here's my MIB:

-- Prototype MIB for kwared

KWARED-MIB DEFINITIONS ::= BEGIN

IMPORTS
        OBJECT-TYPE, MODULE-IDENTITY, enterprises,
        Integer32
                FROM SNMPv2-SMI;

kwared MODULE-IDENTITY
        LAST-UPDATED "200706011107Z"
        ORGANIZATION
                ""
        CONTACT-INFO
                ""
        DESCRIPTION
                "kwared service"
::= { sendza 1 }


-- sendza ent node

sendza               OBJECT IDENTIFIER ::= { enterprises 111 }

kwared-cycle-int  OBJECT-TYPE
        SYNTAX     Integer32
        MAX-ACCESS read-write
        STATUS     current
        DESCRIPTION
                "kwared cycle interval"
        ::= { kwared 1 }
END


Here's the entry in my snmpd.conf file:

pass .1.3.6.1.4.1.111.1.1 /root/kwared/kwared-mib.py


Here's the output of an snmptranslate command:

[root@myserver ~]# snmptranslate -Tp -IR sendza
+--sendza(111)
   |
   +--kwared(1)
      +-- -RW- Integer32 kwared-cycle-int(1)


Here are the results of various combinations of local snmpwalk and snmpget 
commands:

[root@myserver ~]# snmpwalk -v 2c -c public myserver .1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No more variables left in this MIB View (It 
is past the end of the MIB tree)

[root@myserver ~]# snmpwalk -v 2c -c public myserver 1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No more variables left in this MIB View (It 
is past the end of the MIB tree)

[root@myserver ~]# snmpwalk -v 1 -c public myserver 1.3.6.1.4.1.111.1.1
End of MIB

[root@myserver ~]# snmpwalk -v 1 -c public myserver .1.3.6.1.4.1.111.1.1
End of MIB


[root@myserver ~]# snmpget -v 1 -c public myserver 1.3.6.1.4.1.111.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: KWARED-MIB::kwared-cycle-int

[root@myserver ~]# snmpget -v 1 -c public myserver .1.3.6.1.4.1.111.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: KWARED-MIB::kwared-cycle-int

[root@myserver ~]# snmpget -v 2c -c public myserver .1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No Such Object available on this agent at 
this OID

[root@myserver ~]# snmpget -v 2c -c public myserver 1.3.6.1.4.1.111.1.1
KWARED-MIB::kwared-cycle-int = No Such Object available on this agent at 
this OID


Any help would be appreciated.

Thanks.

Ken....

----- Original Message ----- 
From: "Abdul-Wahid Paterson" <[email protected]>
To: <[email protected]>
Sent: Monday, June 04, 2007 7:28 AM
Subject: net-snmp isn't running pass_persist script? how do i know?


>I setup a script for reading QoS/traffic shaping information from the
> output of the tc command. The idea being that when I run the script as
> a pass_persist extension for snmpd I can read the information remotely
> from my network monitoring machine so I can see the traffic on the
> different queues in all the router/firewalls on the network.
>
> I add a line to snmpd.conf like this....
> Code:
>
> pass_persist .1.3.6.1.4.1.2021.255 /usr/bin/snmp_persist.pl
>
>
> But when I try to browse it remotely I get this....
>
> Code:
>
> # snmpwalk -c yeahyeah -v 2c 10.0.0.1 .1.3.6.1.4.1.2021.255
> UCD-SNMP-MIB::ucdavis.255 = No Such Instance currently exists at this OID
>
>
> Any ideas why it might not be working or another step I have to
> perform? I am pretty sure the script itself (snmp_perist.pl) works but
> as far as I can see the script is not even being run by snmpd.
>
> Is there any way I can switch on debugging inside snmpd to let me see
> what is happening? All the options I have tried so far don't tell me
> anything.
>
> Regards,
>
> Abdul-Wahid
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.