Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
Hi I have written a script to capture the thread usage of a process using a script. I have added this script to the snmpd.conf file so that when i query the extOutput.x MIB variable i get the thread level data from the snmpd daemon. I deployed this script successfully in around 25 servers but

cb.delete_row in table_array

2010-05-25 Thread heinsend
Hi all, I have an interesting problem in my table_array helper mib. In my table.c file, I am setting the netsnmp_table_array_callback function pointer delete_row to a user defined method (created by mib2c.array_user). Yet, the cb.delete_row method is never called. I have put debug breaks on

Re: sending back PDU response to a SET?

2010-05-25 Thread Dave Shield
On 24 May 2010 23:46, chi.g...@l-3com.com wrote: I want send a PDU response of SET command in a sub-agent. The agent framework will already handling the task of creating and sending the response PDU. You don't need to worry about doing this within the module handler. Just concentrate on

Re: containers

2010-05-25 Thread Dave Shield
On 25 May 2010 04:35, John Fisher john.fis...@nec.com.au wrote: Is this a good idea and it hasn't been done because no-one has had the time That would be my guess, yes. Go for it. Dave --

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 07:38, Jatin Davey jasho...@cisco.com wrote: I have written a script to capture the thread usage of a process using a script. I have added this script to the snmpd.conf file so that when i query the extOutput.x MIB variable i get the thread level data from the snmpd daemon. I

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 1:17 PM, Dave Shield wrote: On 25 May 2010 07:38, Jatin Daveyjasho...@cisco.com wrote: I have written a script to capture the thread usage of a process using a script. I have added this script to the snmpd.conf file so that when i query the extOutput.x MIB variable i get the

Re: cb.delete_row in table_array

2010-05-25 Thread Dave Shield
On 24 May 2010 22:45, heins...@nkiconsulting.com wrote: where, specifically,  in the netsnmp agent are these callback functions being called I'm no expert on this particular helper, but from a quick look at the code, the 'delete_row' callback is invoked from 'process_set_group', as part of

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:08, Jatin Davey jasho...@cisco.com wrote: What are the permissions on the extend scripts on the remote machine? [Jatin] I have given all permissions to all types of users but still i am getting the same error. So ls -l /home/proc_threads/xxx_script shows

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 1:53 PM, Dave Shield wrote: On 25 May 2010 09:08, Jatin Daveyjasho...@cisco.com wrote: What are the permissions on the extend scripts on the remote machine? [Jatin] I have given all permissions to all types of users but still i am getting the same error. So

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:39, Jatin Davey jasho...@cisco.com wrote: how do i run the same command by logging into the system with that user. Try logging into that system as yourself, If you can run the command as you, then that's probably OK. So      snmpwalk -v 2c -c  

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 2:20 PM, Dave Shield wrote: On 25 May 2010 09:39, Jatin Daveyjasho...@cisco.com wrote: how do i run the same command by logging into the system with that user. Try logging into that system as yourself, If you can run the command as you, then that's probably OK.

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 09:57, Jatin Davey jasho...@cisco.com wrote: Please find the attached snmpd.conf file. Sigh Of course - you're using the old-style exec rather than the newer extend. Not surprising that you don't see anything under nsExtendObjects OK - please try snmpwalk -v 2c -c public

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 2:45 PM, Dave Shield wrote: snmpwalk -v 2c -c public extTable Output from the offending system: UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 UCD-SNMP-MIB::extIndex.2 = INTEGER: 2 UCD-SNMP-MIB::extIndex.3 = INTEGER: 3 UCD-SNMP-MIB::extNames.1 = STRING: threadsjava

Re: net-snmp win32 compile issues

2010-05-25 Thread Bart Van Assche
On Mon, May 24, 2010 at 3:17 PM, John Stacey john.sta...@ies-us.com wrote: Windows XP Pro SP3 MSVC 2005 v 8.0 Microsoft Windows Software Development Kit (SDK) for Windows 7 and .NET Framework 3.5 Service Pack 1. Net-snmp v 5.5 Active Perl v 5.10.1 OpenSSL 1.0.0 Net-snmp-config.h:

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 2:52 PM, Jatin Davey wrote: On 5/25/2010 2:45 PM, Dave Shield wrote: snmpwalk -v 2c -c public extTable Output from the offending system: UCD-SNMP-MIB::extIndex.1 = INTEGER: 1 UCD-SNMP-MIB::extIndex.2 = INTEGER: 2 UCD-SNMP-MIB::extIndex.3 = INTEGER: 3

SNMP-Traps for CPU/disk-usage/host resources etc (net-snmp)

2010-05-25 Thread JONES KRISTIAN
Hi All, I would like to configure a trap to alert an NMS that disk-usage has gone beyond a configured threshold. I've spent a lot of time researching this and have not found any material that explains how to do this. The examples I've seen are simple test notifications or single events such as

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Dave Shield
On 25 May 2010 11:43, Jatin Davey jasho...@cisco.com wrote: I also turned off the iptables service to rule out if it is causing some issues No - you are receiving information from the SNMP agent, so that much is working. but even then it is showing the permission denied error. This is

Re: help

2010-05-25 Thread Dave Shield
On 24 May 2010 23:36, jihed lazid jihed.la...@gmail.com wrote: if i add the MIB files in the MIB directory is sufficient or not ? Not. The MIB file simply describes what information is to be made available. It's essentially a design document. You still need to write some code to actually

Re: SNMP-Traps for CPU/disk-usage/host resources etc (net-snmp)

2010-05-25 Thread Dave Shield
On 25 May 2010 11:53, JONES KRISTIAN kristian.jo...@ntlworld.com wrote: I would like to configure a trap to alert an NMS that disk-usage has gone beyond a configured threshold. Have a look at the 'disk' directive (for monitoring disk usage) and 'defaultMonitors' (to have this trigger an alert).

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 4:57 PM, Dave Shield wrote: On 25 May 2010 11:43, Jatin Daveyjasho...@cisco.com wrote: I also turned off the iptables service to rule out if it is causing some issues No - you are receiving information from the SNMP agent, so that much is working. but even

Re: Querying extended MIB , Permission denied

2010-05-25 Thread Jatin Davey
On 5/25/2010 5:09 PM, Jatin Davey wrote: On 5/25/2010 4:57 PM, Dave Shield wrote: On 25 May 2010 11:43, Jatin Daveyjasho...@cisco.com wrote: I also turned off the iptables service to rule out if it is causing some issues No - you are receiving information from the

Bad string length

2010-05-25 Thread Chris Fowler
I'm testing snmptrapd because it appears to be crashing when receiving a trap from an Avaya PBX. Here is what was in the system log: Apr 29 07:49:48 ens4 snmptrapd[98]: s8720-b.vr.vanran.com [172.30.3.3]: Trap iso.3.6.1.2.1.1.3.0 = Timeticks: (23758427) 2 days, 17:59:44.27,

help

2010-05-25 Thread jihed lazid
Hi, I have to add a MIB files in the agent. I try to use mib2c to generate a template for my MIB. the MIB is private for the CEN/XFS that has the oid : 1.3.6.4.1.16213. I downlowded it for the site : http://www.cen.eu/cen/Sectors/Sectors/ISSS/Activity/Pages/xfs_cwas.aspx when I installer the

Re: help

2010-05-25 Thread Dave Shield
On 25 May 2010 23:12, jihed lazid jihed.la...@gmail.com wrote: I followed the tutorial in the web site when i add the MIB files to /usr/share/snmp/mibs then i use the command MIB=ALL $ man snmp.conf [snip] mibs MIBLIST specifies a list of MIB modules (not files)