cb.delete_row in table_array
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 it, print statements in it, everything. All of the other user defined callback functions (create_row, set_reservex, etc.) are being called. I have a sneaking suspicion that the snmp_agent is never actually calling the cb.delete_row function. My question is: where, specifically, in the netsnmp agent are these callback functions being called and could you provide me on any clues why the cb.delete_row is not being called. Furthermore, can someone point me in the right direction as to where the netsnmp_table_array_callback functions are defined (I can't find the prototype for UserRowMethod anywhere.) Thanks! Daniel -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: sending back PDU response to a SET?
On 24 May 2010 23:46, 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 processing the individual varbind assignments that are passed to this particular handler. The agent will take care of everything else. Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: containers
On 25 May 2010 04:35, John Fisher 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 -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 25 May 2010 07:38, Jatin Davey 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 deployed this script successfully in around 25 servers > but on one server i am getting an error as below: It's not entirely clear whether it's a client-side script, or the "extend" script that's failing here. What are the permissions on the extend scripts on the remote machine? What happens if you try to run this manually on that box? (i.e. not via snmpd) What happens if you issue a "snmpwalk" command on the extend tables? (from the Nagios server) Do you see the expected output or not? Can you see anything from the offending system? (e.g. walking system) What version(s) of the Net-SNMP agent do you have on each system? Are they all the same, or is the offending system different in some way? Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 5/25/2010 1:17 PM, Dave Shield wrote: > On 25 May 2010 07:38, Jatin Davey 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 deployed this script successfully in around 25 servers >> but on one server i am getting an error as below: >> > It's not entirely clear whether it's a client-side script, or the "extend" > script that's failing here. > [Jatin] The scripts are running on the client side. > 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. > What happens if you try to run this manually on that box? > (i.e. not via snmpd) > [Jatin] When i run manually on the remote box i get the correct output. > What happens if you issue a "snmpwalk" command on the extend tables? >(from the Nagios server) > Do you see the expected output or not? > [Jatin] When i run from the nagios server i get the error message "Permission denied" > Can you see anything from the offending system? (e.g. walking system) > [Jatin] I have the snmpd daemon configured for ifMIb and HOST-RESOURCES-MIB and the host returns correct values for them. I have also added the extended MIB in the snmpd.conf file so that i can query it. > What version(s) of the Net-SNMP agent do you have on each system? > Are they all the same, or is the offending system different in some way? > [Jatin] All systems use the same version , it is net-snmp-5.3.2.2-9.el5.i386 > Dave > > Thanks Dave , Please find my responses inline to your questions. Thanks Jatin -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: cb.delete_row in table_array
On 24 May 2010 22:45, 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 the final passes of SET processing (COMMIT, FREE and UNDO) There seem to be three main uses: - this helper holds two copies of the row being updated - "before" and "after" In all three passes, the 'delete_row()' call back is used to release the "before" copy once it's no longer required. (lines 706, 745 & 765 respectively) - when a row is being created (but the request fails - FREE or UNDO), then 'delete_row()' is called to release the new entry (lines 740 and 769) - when a row is being delete (e.g. via RowStatus destroy(6)) successfully (COMMIT), then 'delete_row()' is called to release the relevant entry (line 728) > Furthermore, can someone point me in the right direction as to where the > netsnmp_table_array_callback functions are defined The callback functions are defined as part of the code generated by mib2c. The structure listing the various callbacks is defined in the header file > (I can't find the prototype for UserRowMethod anywhere.) This is also defined in that header file - lines 89-90: typedef netsnmp_index *(UserRowMethod) (netsnmp_index *); Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 25 May 2010 09:08, Jatin Davey 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 -rwxr-xr-x . /home/proc_threads/xxx_script Correct? >> What happens if you try to run this manually on that box? >> (i.e. not via snmpd) > > [Jatin] When i run manually on the remote box i get the correct output. Good. Is this running as root, or as a non-privileged user? If as root, what happens if you run as a normal user? In particular, what happens if you run as the user that snmpd is running as? >> What happens if you issue a "snmpwalk" command on the extend tables? >> (from the Nagios server) >> Do you see the expected output or not? > > [Jatin] When i run from the nagios server i get the error message > "Permission denied" So "snmpwalk -v 2c -c NET-SNMP-EXTEND-MIB::nsExtendObjects" gives "Permission denied" - nothing else? What happens if you issue this command from the remote system itself? What about from another system on the network? What are the full access control settings in the snmpd.conf file on the offending system? >> Can you see anything from the offending system? (e.g. walking system) > > [Jatin] I have the snmpd daemon configured for ifMIb and HOST-RESOURCES-MIB > and the host returns correct values for them. I have also added the extended > MIB in the snmpd.conf file so that i can query it. It would definitely be worth seeing the snmpd.conf file, so we can confirm there's nothing wrong there. Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 5/25/2010 1:53 PM, Dave Shield wrote: > On 25 May 2010 09:08, Jatin Davey 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 > > -rwxr-xr-x . /home/proc_threads/xxx_script > > Correct? > [Jatin] correct. > > > >>> What happens if you try to run this manually on that box? >>> (i.e. not via snmpd) >>> >> [Jatin] When i run manually on the remote box i get the correct output. >> > Good. > > Is this running as root, or as a non-privileged user? > [Jatin] When i ran this command on the remote host i ran it by logging into the system as root. > If as root, what happens if you run as a normal user? > In particular, what happens if you run as the user that snmpd is running as? > [Jatin] To both the above questions i have no clue , Could you tell me how to find out the user being used by the snmpd daemon and how do i run the same command by logging into the sytstem with that user. > > > >>> What happens if you issue a "snmpwalk" command on the extend tables? >>>(from the Nagios server) >>> Do you see the expected output or not? >>> >> [Jatin] When i run from the nagios server i get the error message >> "Permission denied" >> > > So > "snmpwalk -v 2c -c NET-SNMP-EXTEND-MIB::nsExtendObjects" > > gives "Permission denied" - nothing else? > [Jatin] Output from the nagios server when i use the check_snmp plugin to retrieve the extended MIB data is : [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -C -o extOutput.1 SNMP OK - /home/xxx_xxx/: Permission denied | Output from the command mentioned above (snmpwalk command) when i execute from the Nagios server is : [r...@pc-fedora-1 libexec]# snmpwalk -v 2c -c public 171.69.37.175 NET-SNMP-EXTEND-MIB::nsExtendObjects NET-SNMP-EXTEND-MIB::nsExtendObjects = No more variables left in this MIB View (It is past the end of the MIB tree) > What happens if you issue this command from the remote system itself? > [Jatin] snmpwalk command is not found on the remote system. I have just installed the snmpd agent and nothing else on the remote box as it satisfies my monitoring requirments. > What about from another system on the network? > [Jatin] Getting same message as mentioned above (the second message) when executed from other systems in the network. > What are the full access control settings in the snmpd.conf file on > the offending system? > > > > >>> Can you see anything from the offending system? (e.g. walking system) >>> >> [Jatin] I have the snmpd daemon configured for ifMIb and HOST-RESOURCES-MIB >> and the host returns correct values for them. I have also added the extended >> MIB in the snmpd.conf file so that i can query it. >> > It would definitely be worth seeing the snmpd.conf file, > so we can confirm there's nothing wrong there. > [Jatin] I dont think there would be anything wrong here as i follow the same set of steps on all the boxes to deploy the script. Anyways i will paste them here: viewsystemviewincluded .1.3.6.1.2.1.1 viewsystemviewincluded .1.3.6.1.2.1.25 viewsystemviewincluded .1.3.6.1.2.1.2 viewsystemviewincluded .1.3.6.1.4.1.2021 I only use the view access control and no else configuration is done. > > > Dave > > Thanks Jatin -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 25 May 2010 09:39, Jatin Davey 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 NET-SNMP-EXTEND-MIB::nsExtendObjects" >> >> gives "Permission denied" - nothing else? >> > > [Jatin] Output from the nagios server when i use the check_snmp plugin to > retrieve the extended MIB data is : > [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -C -o extOutput.1 > SNMP OK - /home/xxx_xxx/: Permission denied | > > Output from the command mentioned above (snmpwalk command) when i execute > from the Nagios server is : > [r...@pc-fedora-1 libexec]# snmpwalk -v 2c -c public 171.69.37.175 > NET-SNMP-EXTEND-MIB::nsExtendObjects > NET-SNMP-EXTEND-MIB::nsExtendObjects = No more variables left in this MIB > View (It is past the end of the MIB tree) Right - so the "Permission denied" is an output of the nagios script. I suggest you forget about that until the 'snmpwalk' command works as expected. The fact that you are not seeing *anything* in this tree (not even nsExtendNumEntries) makes me suspect that this is an access control problem. >> It would definitely be worth seeing the snmpd.conf file, >> so we can confirm there's nothing wrong there. >> > > [Jatin] I dont think there would be anything wrong here as i follow the same > set of steps on all the boxes to deploy the script. Anyways i will paste > them here: > view systemview included .1.3.6.1.2.1.1 > view systemview included .1.3.6.1.2.1.25 > view systemview included .1.3.6.1.2.1.2 > view systemview included .1.3.6.1.4.1.2021 > > I only use the view access control and no else configuration is done. I do hope that is not true! "view" on it's own would not give you access to anything. At the very least, you'll need "com2sec", "group" and "access" lines. (or possible "rocommunity -V systemview public") Please post (as an attachment) the *whole* of your snmpd.conf file. I don't have time to waste guessing what might or might not be in the rest of the config. Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 5/25/2010 2:20 PM, Dave Shield wrote: On 25 May 2010 09:39, Jatin Davey 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 NET-SNMP-EXTEND-MIB::nsExtendObjects" gives "Permission denied" - nothing else? [Jatin] Output from the nagios server when i use the check_snmp plugin to retrieve the extended MIB data is : [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -C -o extOutput.1 SNMP OK - /home/xxx_xxx/: Permission denied | Output from the command mentioned above (snmpwalk command) when i execute from the Nagios server is : [r...@pc-fedora-1 libexec]# snmpwalk -v 2c -c public 171.69.37.175 NET-SNMP-EXTEND-MIB::nsExtendObjects NET-SNMP-EXTEND-MIB::nsExtendObjects = No more variables left in this MIB View (It is past the end of the MIB tree) Right - so the "Permission denied" is an output of the nagios script. I suggest you forget about that until the 'snmpwalk' command works as expected. The fact that you are not seeing *anything* in this tree (not even nsExtendNumEntries) makes me suspect that this is an access control problem. It would definitely be worth seeing the snmpd.conf file, so we can confirm there's nothing wrong there. [Jatin] I dont think there would be anything wrong here as i follow the same set of steps on all the boxes to deploy the script. Anyways i will paste them here: viewsystemviewincluded .1.3.6.1.2.1.1 viewsystemviewincluded .1.3.6.1.2.1.25 viewsystemviewincluded .1.3.6.1.2.1.2 viewsystemviewincluded .1.3.6.1.4.1.2021 I only use the view access control and no else configuration is done. I do hope that is not true! "view" on it's own would not give you access to anything. At the very least, you'll need "com2sec", "group" and "access" lines. (or possible "rocommunity -V systemview public") Please post (as an attachment) the *whole* of your snmpd.conf file. I don't have time to waste guessing what might or might not be in the rest of the config. Dave Please find the attached snmpd.conf file. Thanks Jatin ### # # snmpd.conf: # An example configuration file for configuring the ucd-snmp snmpd agent. # ### # # This file is intended to only be as a starting point. Many more # configuration directives exist than are mentioned in this file. For # full details, see the snmpd.conf(5) manual page. # # All lines beginning with a '#' are comments and are intended for you # to read. All other lines are configuration commands for the agent. ### # Access Control ### # As shipped, the snmpd demon will only respond to queries on the # system mib group until this file is replaced or modified for # security purposes. Examples are shown below about how to increase the # level of access. # By far, the most common question I get about the agent is "why won't # it work?", when really it should be "how do I configure the agent to # allow me to access it?" # # By default, the agent responds to the "public" community for read # only access, if run out of the box without any configuration file in # place. The following examples show you other ways of configuring # the agent so that you can change the community names, and give # yourself write access to the mib tree as well. # # For more information, read the FAQ as well as the snmpd.conf(5) # manual page. # First, map the community name "public" into a "security name" # sec.name source community com2sec notConfigUser default public # Second, map the security name into a group name: # groupName securityModel securityName group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser # Third, create a view for us to let the group have rights to: # Make at least snmpwalk -v 1 localhost -c public system fast again. # name incl/excl subtree mask(optional) viewsystemviewincluded .1.3.6.1.2.1.1 viewsystemviewincluded .1.3.6.1.2.1.25 viewsystemviewincluded .1.3.6.1.2.1.2 viewsystemviewincluded .1.3.6.1.4.1.2021 # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif access notConfigGroup "" any noauthexact systemview none none # - # Here is a commented out example configuration that allows less # restrictive a
Re: Querying extended MIB , Permission denied
On 25 May 2010 09:57, Jatin Davey wrote: > Please find the attached snmpd.conf file. 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 extTable (from the Nagios server) It would probably be worth running this against a working system as well as the offending one. Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
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 UCD-SNMP-MIB::extNames.2 = STRING: threadscspc UCD-SNMP-MIB::extNames.3 = STRING: threadsmysqld UCD-SNMP-MIB::extCommand.1 = STRING: /home/proc_threads/javathreads UCD-SNMP-MIB::extCommand.2 = STRING: /home/proc_threads/cspc_server_threads UCD-SNMP-MIB::extCommand.3 = STRING: /home/proc_threads/mysqldthreads UCD-SNMP-MIB::extResult.1 = INTEGER: 1 UCD-SNMP-MIB::extResult.2 = INTEGER: 1 UCD-SNMP-MIB::extResult.3 = INTEGER: 1 UCD-SNMP-MIB::extOutput.1 = STRING: /home/proc_threads/javathreads: Permission denied UCD-SNMP-MIB::extOutput.2 = STRING: /home/proc_threads/cspc_server_threads: Permission denied UCD-SNMP-MIB::extOutput.3 = STRING: /home/proc_threads/mysqldthreads: Permission denied UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFix.2 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFix.3 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFixCmd.1 = STRING: UCD-SNMP-MIB::extErrFixCmd.2 = STRING: UCD-SNMP-MIB::extErrFixCmd.3 = STRING: Output from a working 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 UCD-SNMP-MIB::extNames.2 = STRING: threadscspc UCD-SNMP-MIB::extNames.3 = STRING: threadsmysqld UCD-SNMP-MIB::extCommand.1 = STRING: /home/proc_threads/javathreads UCD-SNMP-MIB::extCommand.2 = STRING: /home/proc_threads/cspc_server_threads UCD-SNMP-MIB::extCommand.3 = STRING: /home/proc_threads/mysqldthreads UCD-SNMP-MIB::extResult.1 = INTEGER: 0 UCD-SNMP-MIB::extResult.2 = INTEGER: 35 UCD-SNMP-MIB::extResult.3 = INTEGER: 0 UCD-SNMP-MIB::extOutput.1 = STRING: 68 UCD-SNMP-MIB::extOutput.2 = STRING: 141 UCD-SNMP-MIB::extOutput.3 = STRING: 23 UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFix.2 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFix.3 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFixCmd.1 = STRING: UCD-SNMP-MIB::extErrFixCmd.2 = STRING: UCD-SNMP-MIB::extErrFixCmd.3 = STRING: Thanks Jatin -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: net-snmp win32 compile issues
On Mon, May 24, 2010 at 3:17 PM, John Stacey 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: > > #define PACKAGE_VERSION "5.5" ln 19 > > #define HAVE_WIN32_PLATFORM_SDK 1 ln 28 > > > > #define _WIN32_WINNT 0x501 /*_WIN32_WINNT_WINXP*/ ln 37 > > #define NTDDI_VERSION 0x05010300 /* NTDDI_WINXPSP3 */ ln 38 > > > > #define NETSNMP_USE_OPENSSL 1 ln 1368 > > #define NETSNMP_USE_DLL 1 ln 1594 > > > > Microsoft Visual C++ - Workspace - Building the DLL – Compiles and Builds > > > > This is as far as I have been able to get attempting a dynamic build using > win32sdk.dsw (build.bat fails as well) > > > > Error Buffer: > [ ... ] > > > Error 39 error LNK2019: unresolved external symbol > _init_var_route referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 40 error LNK2019: unresolved external symbol > _init_udpTable referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 41 error LNK2019: unresolved external symbol _init_udp > referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 42 error LNK2019: unresolved external symbol _init_ip > referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 43 error LNK2019: unresolved external symbol _init_icmp > referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 44 error LNK2019: unresolved external symbol > _init_tcpTable referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 45 error LNK2019: unresolved external symbol _init_tcp > referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 46 error LNK2019: unresolved external symbol > _init_interfaces referenced in function _init_mib_modules > netsnmpmibs.lib > > Error 47 error LNK2019: unresolved external symbol _init_at > referenced in function _init_mib_modulesnetsnmpmibs.lib > > Error 48 fatal error LNK1120: 9 unresolved externals > ../bin/release/snmpd.exe > All these compilation errors have been fixed on the 5.5 branch after version 5.5 was released (svn co https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/branches/V5-5-patches ). Bart. -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
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 > UCD-SNMP-MIB::extNames.1 = STRING: threadsjava > UCD-SNMP-MIB::extNames.2 = STRING: threadscspc > UCD-SNMP-MIB::extNames.3 = STRING: threadsmysqld > UCD-SNMP-MIB::extCommand.1 = STRING: /home/proc_threads/javathreads > UCD-SNMP-MIB::extCommand.2 = STRING: /home/proc_threads/cspc_server_threads > UCD-SNMP-MIB::extCommand.3 = STRING: /home/proc_threads/mysqldthreads > UCD-SNMP-MIB::extResult.1 = INTEGER: 1 > UCD-SNMP-MIB::extResult.2 = INTEGER: 1 > UCD-SNMP-MIB::extResult.3 = INTEGER: 1 > UCD-SNMP-MIB::extOutput.1 = STRING: /home/proc_threads/javathreads: > Permission denied > UCD-SNMP-MIB::extOutput.2 = STRING: > /home/proc_threads/cspc_server_threads: Permission denied > UCD-SNMP-MIB::extOutput.3 = STRING: /home/proc_threads/mysqldthreads: > Permission denied > UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFix.2 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFix.3 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFixCmd.1 = STRING: > UCD-SNMP-MIB::extErrFixCmd.2 = STRING: > UCD-SNMP-MIB::extErrFixCmd.3 = STRING: > > > Output from a working 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 > UCD-SNMP-MIB::extNames.2 = STRING: threadscspc > UCD-SNMP-MIB::extNames.3 = STRING: threadsmysqld > UCD-SNMP-MIB::extCommand.1 = STRING: /home/proc_threads/javathreads > UCD-SNMP-MIB::extCommand.2 = STRING: /home/proc_threads/cspc_server_threads > UCD-SNMP-MIB::extCommand.3 = STRING: /home/proc_threads/mysqldthreads > UCD-SNMP-MIB::extResult.1 = INTEGER: 0 > UCD-SNMP-MIB::extResult.2 = INTEGER: 35 > UCD-SNMP-MIB::extResult.3 = INTEGER: 0 > UCD-SNMP-MIB::extOutput.1 = STRING: 68 > UCD-SNMP-MIB::extOutput.2 = STRING: 141 > UCD-SNMP-MIB::extOutput.3 = STRING: 23 > UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFix.2 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFix.3 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFixCmd.1 = STRING: > UCD-SNMP-MIB::extErrFixCmd.2 = STRING: > UCD-SNMP-MIB::extErrFixCmd.3 = STRING: > > > Thanks > Jatin > > -- > > ___ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > I also turned off the iptables service to rule out if it is causing some issues but even then it is showing the permission denied error. Please let me know if there is something that i am missing. Thanks Jatin -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
SNMP-Traps for CPU/disk-usage/host resources etc (net-snmp)
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-boots etc. So why do I need to do this? Part of my set-up includes a uni-directional communications links with snmptrapd sitting the other side of this comms link. As traps are uni-directional, they seem to fit quite nicely. This is also the reason I can't use get requests. I'm using ubuntu and net-snmp if that helps. Hopefully someone out there can help. Thanks -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 25 May 2010 11:43, Jatin Davey 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 showing that the agent is failing to invoke the monitoring scripts. > Please let me know if there is something that i am missing. I'd still like you to try running these scripts directly on the remote system as yourself (or any non-root user). Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: help
On 24 May 2010 23:36, jihed lazid 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 implement this MIB, and provide the necessary information. See the FAQ entry How do I add a MIB to the agent? (http://www.net-snmp.org/wiki/index.php/FAQ:Agent_06) and related entries for more information. Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: SNMP-Traps for CPU/disk-usage/host resources etc (net-snmp)
On 25 May 2010 11:53, JONES KRISTIAN 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). Both of these are covered in the snmpd.conf(5) man page. Note that you will also need to configure an SNMPv3 user (with suitable access permissions) and register this as "iquerySecName". Again, see snmpd.conf(5) for details. Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 5/25/2010 4:57 PM, Dave Shield wrote: > On 25 May 2010 11:43, Jatin Davey 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 showing that the agent is failing to invoke the > monitoring scripts. > > > >> Please let me know if there is something that i am missing. >> > I'd still like you to try running these scripts directly on the remote > system as yourself (or any non-root user). > > Dave > Thanks Dave for your response , I created a new user in my linux box using the useradd and passwd commands. Then issued the su test command to log into the test user account. Then scrolled into the directory where these script files were present and tried executing them and i get the following error: ./javathreads: line 2: /home/proc_threads/tempfile: Permission denied awk: cmd. line:1: fatal: cannot open file `/home/proc_threads/tempfile' for read ing (Permission denied) This shows that i am unable to execute the scripts locally on the system using a non-root account. Could you let me know me know what more needs to be done. Thanks Jatin -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
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 Davey 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 showing that the agent is failing to invoke the >> monitoring scripts. >> >> >> >> >>> Please let me know if there is something that i am missing. >>> >>> >> I'd still like you to try running these scripts directly on the remote >> system as yourself (or any non-root user). >> >> Dave >> >> > Thanks Dave for your response , I created a new user in my linux box > using the useradd and passwd commands. Then issued the su test command > to log into the test user account. Then scrolled into the directory > where these script files were present and tried executing them and i get > the following error: > > ./javathreads: line 2: /home/proc_threads/tempfile: Permission denied > awk: cmd. line:1: fatal: cannot open file `/home/proc_threads/tempfile' > for read ing (Permission denied) > > This shows that i am unable to execute the scripts locally on the system > using a non-root account. > Could you let me know me know what more needs to be done. > > Thanks > Jatin > > -- > > ___ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > Ok , i finally managed to make sure that a non-root user is able to execute the scripts. Then i restarted the snmpd daemon on the target host. But even now when i run a snmpget from the Nagios server to the snmpd daemon i am still getting as permission denied. The snmpwalk also does not seem to work as shown below: 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 UCD-SNMP-MIB::extNames.2 = STRING: threadscspc UCD-SNMP-MIB::extNames.3 = STRING: threadsmysqld UCD-SNMP-MIB::extCommand.1 = STRING: /home/proc_threads/javathreads UCD-SNMP-MIB::extCommand.2 = STRING: /home/proc_threads/cspc_server_threads UCD-SNMP-MIB::extCommand.3 = STRING: /home/proc_threads/mysqldthreads UCD-SNMP-MIB::extResult.1 = INTEGER: 1 UCD-SNMP-MIB::extResult.2 = INTEGER: 1 UCD-SNMP-MIB::extResult.3 = INTEGER: 1 UCD-SNMP-MIB::extOutput.1 = STRING: /home/proc_threads/javathreads: Permission denied UCD-SNMP-MIB::extOutput.2 = STRING: /home/proc_threads/cspc_server_threads: Permission denied UCD-SNMP-MIB::extOutput.3 = STRING: /home/proc_threads/mysqldthreads: Permission denied UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFix.2 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFix.3 = INTEGER: noError(0) UCD-SNMP-MIB::extErrFixCmd.1 = STRING: UCD-SNMP-MIB::extErrFixCmd.2 = STRING: UCD-SNMP-MIB::extErrFixCmd.3 = STRING: Please let me know what else needs to be done. Thanks Jatin -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Bad string length
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, iso.3.6.1.6.3.1.1.4.1.0 = OID: iso.3.6.1.4.1.6889.1.8.1.0.12, iso.3.6.1.4.1.6889.2.8.2.1.1.1.4 = STRING: "VR-S8720-A", iso.3.6.1.4.1.6889.2.8.1.4.6.1.18 = STRING: "1000165620", iso.3.6.1.4.1.6889.2.8.1.4.6.1.17 = STRING: "FPA:0:00:0429074936::N", iso.3.6.1.4.1.6889.2.8.1.4.6.1.1 = STRING: "A:\"2010-04-29 07:49:36 172.30.3.56(via 172.30.3.56) TRAP, SNMP v1, community public cmgTrapTypes Enterprise Specific Trap (109) Uptime: 7 days, 21:59:22.03 cmgTrapSubsystem.0 = STRING: \"Net\" cmgTrapOnBoard.0 = STRING: \"no\" cmgTrapLocation.0 = STRING: \"001V\" cmgMgpFaultMask.0 = Hex-STRING: 00 00 \"", iso.3.6.1.4.1.6889.2.8.1.4.6.1.3 = STRING: "CMG", iso.3.6.1.4.1.6889.2.8.1.4.6.1.4 = STRING: "26", iso.3.6.1.4.1.6889.2.8.1.4.6.1.6 = "", iso.3.6.1.4.1.6889.2.8.1.4.6.1.26 = STRING: "172.30.3.4", iso.3.6.1.4.1.6889.2.8.1.4.6.1.27 = "", iso.3.6.1.4.1.6889.2.8.1.4.6.1. I've simplified the trap and am trying to send it using snmptrap #!/bin/sh snmptrap -v 2c -c public 10.0.5.22 '' iso.3.6.1.4.1.6889.1.8.1.0.3 \ iso.3.6.1.4.1.6889.2.8.2.1.1.1.5 s 'VR-S8720-A' \ iso.3.6.1.4.1.6889.2.8.1.4.6.1.18 s '1000165620' \ iso.3.6.1.4.1.6889.2.8.1.4.6.1.17 s 'FPA:0:0428073807:00::N' \ iso.3.6.1.4.1.6889.2.8.1.4.6.1.1 s "A:\"2010-04-28 07:38:07 172.30.3.56(via 172.30.3.56) TRAP, SNMP v1, community public cmgTrapTypes Enterprise Specific Trap (30) Uptime: 6 days, 21:47:55.05 cmgTrapSubsystem.2 = STRING: \"HW\" cmgTrapOnBoard.2 = STRING: \"no\" cmgTrapLocation.2 = STRING: \"001V2\" cmgHardwareFaultMask.2 = Hex-STRING: 00 00 80 cmgPrimaryClockSource.2 = STRING: \"v2\" cmgSecondaryClockSource.2 = \"\" cmgActiveClockSource.2 = INTEGER: primary(1) \"" \ iso.3.6.1.4.1.6889.2.8.1.4.6.1.3 s 'CMG' When I try to send that trap I get: iso.3.6.1.4.1.6889.2.8.1.4.6.1.1: Value out of range (Bad string length) I thought an octet string could be from 0-65536 octets in length? Do I need to specify a an option on the CLI? It seems the Avaya PBX "forwards" a trap from a device as a string argument to its trap. Ugly... Thanks, Chris -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
help
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 'MIB Installer SDK 1.10'. in installing this SDK, it add the 15 MIB files and their .h files. this MIBs are organised with this architecture : http://img413.imageshack.us/img413/3773/mibxfs.jpg the SDK generate 15 MIB Files: - xfsGeneral - xfsalm -xfsApplication - xfscam - xfscdm - xfsceu - xfsceu - xfscim - xfsdep - xfsidc - xfspin - xfsptr - xfssiu - xfsttu - xfsvdm as it clear, the xfsGeneral is in the head of my MIB. but this file has this head declaration : XFSMIB DEFINITIONS ::= BEGIN IMPORTS enterprises, Integer32, OBJECT-TYPE, OBJECT-IDENTITY, NOTIFICATION-TYPE FROM SNMPv2-SMI DisplayString FROM SNMPv2-TC; -- -- General #defines -- IxfsMIBDeviceStatus ::= INTEGER { xfsDevOnline(1), xfsDevOffline(2), xfsDevPowerOff(3), xfsDevNoDevice(4), xfsDevHWError(5), xfsDevUserError(6), xfsDevBusy(7) } xfsMIBRoot OBJECT IDENTIFIER ::= { enterprises 16213 } xfsGeneral OBJECT IDENTIFIER ::= { xfsMIBRoot 1 } -- -- -- The XFS (1.3.6.1.4.1.16213) -- General Group (1.3.6.1.4.1.16213.1) -- -- Implementation of the general group is mandatory for all agents -- supporting the XFS MIB. -- -- xfsMIBV1 OBJECT IDENTIFIER ::= { xfsGeneral 1 } xfsMIBRelease OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "The XFS MIB release supported by the agent." ::= { xfsMIBV1 1 } xfsXFSRelease OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "The XFS documentation release that the MIB corresponds to." ::= { xfsMIBV1 2 } xfsJXFSRelease OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "The J/XFS documentation release that the MIB corresponds to." ::= { xfsMIBV1 3 } ... 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 but snmptranslate can't see my MIBs and mib2c too when i try the commande : mib2c -c mib2c.int_watch.conf XFSMIB or mib2c -c mib2c.int_watch.conf xfsGeneral what is the problem here ? Please help me Note: I used ubuntu 9.10 -- Jihed LAZID - Elève ingénieur à l'Ecole Supérieure des Communications de Tunis (SUPCOM) - Tel : +216 21 789 187 http://jihed.lazid.netcv.com/ -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: help
On 25 May 2010 23:12, jihed lazid 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) that should be loaded. This operates in the same way as the -m option - see snmpcmd(1) for details. Note that this list can be overridden by the >>>MIBS<<< environment variable, and the -m option. Please note the name of the environmental variable. (You may also need to "export" this value) > but snmptranslate can't see my MIBs and mib2c too when i try the commande : > mib2c -c mib2c.int_watch.conf XFSMIB That won't work - mib2c wants the name of a MIB object, not a MIB module. > or > mib2c -c mib2c.int_watch.conf xfsGeneral That should work if you set the environment correctly. Or you could try mib2c -c mib2c.int_watch.conf XFSMIB::xfsGeneral Dave -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: help
2010/5/26 Dave Shield > On 25 May 2010 23:12, jihed lazid 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) that should > be > loaded. This operates in the same way as the -m option - > see > snmpcmd(1) for details. Note that this list can be > overridden > by the >>>MIBS<<< environment variable, and the -m option. > > Please note the name of the environmental variable. > (You may also need to "export" this value) > > > but snmptranslate can't see my MIBs and mib2c too when i try the commande > : > > mib2c -c mib2c.int_watch.conf XFSMIB > > That won't work - mib2c wants the name of a MIB object, not a MIB module. > > > or > > mib2c -c mib2c.int_watch.conf xfsGeneral > > That should work if you set the environment correctly. > > Or you could try > > mib2c -c mib2c.int_watch.conf XFSMIB::xfsGeneral > > > Dave > but how i can generate the MIB module needed by mib2c than i have just the MIB files ( xfsGeneral.mib , xfsalm.mib . ) ? Note : mib2c -c mib2c.int_watch.conf XFSMIB::xfsGeneral ; dosn't work -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: Querying extended MIB , Permission denied
On 5/25/2010 7:02 PM, Jatin Davey wrote: > 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 Daveywrote: >>> >>> >>> 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 showing that the agent is failing to invoke the >>> monitoring scripts. >>> >>> >>> >>> >>> Please let me know if there is something that i am missing. >>> I'd still like you to try running these scripts directly on the remote >>> system as yourself (or any non-root user). >>> >>> Dave >>> >>> >>> >> Thanks Dave for your response , I created a new user in my linux box >> using the useradd and passwd commands. Then issued the su test command >> to log into the test user account. Then scrolled into the directory >> where these script files were present and tried executing them and i get >> the following error: >> >> ./javathreads: line 2: /home/proc_threads/tempfile: Permission denied >> awk: cmd. line:1: fatal: cannot open file `/home/proc_threads/tempfile' >> for read ing (Permission denied) >> >> This shows that i am unable to execute the scripts locally on the system >> using a non-root account. >> Could you let me know me know what more needs to be done. >> >> Thanks >> Jatin >> >> -- >> >> ___ >> Net-snmp-users mailing list >> Net-snmp-users@lists.sourceforge.net >> Please see the following page to unsubscribe or change other options: >> https://lists.sourceforge.net/lists/listinfo/net-snmp-users >> >> >> > Ok , i finally managed to make sure that a non-root user is able to > execute the scripts. Then i restarted the snmpd daemon on the target > host. But even now when i run a snmpget from the Nagios server to the > snmpd daemon i am still getting as permission denied. The snmpwalk also > does not seem to work as shown below: > > 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 > UCD-SNMP-MIB::extNames.2 = STRING: threadscspc > UCD-SNMP-MIB::extNames.3 = STRING: threadsmysqld > UCD-SNMP-MIB::extCommand.1 = STRING: /home/proc_threads/javathreads > UCD-SNMP-MIB::extCommand.2 = STRING: /home/proc_threads/cspc_server_threads > UCD-SNMP-MIB::extCommand.3 = STRING: /home/proc_threads/mysqldthreads > UCD-SNMP-MIB::extResult.1 = INTEGER: 1 > UCD-SNMP-MIB::extResult.2 = INTEGER: 1 > UCD-SNMP-MIB::extResult.3 = INTEGER: 1 > UCD-SNMP-MIB::extOutput.1 = STRING: /home/proc_threads/javathreads: > Permission denied > UCD-SNMP-MIB::extOutput.2 = STRING: > /home/proc_threads/cspc_server_threads: Permission denied > UCD-SNMP-MIB::extOutput.3 = STRING: /home/proc_threads/mysqldthreads: > Permission denied > UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFix.2 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFix.3 = INTEGER: noError(0) > UCD-SNMP-MIB::extErrFixCmd.1 = STRING: > UCD-SNMP-MIB::extErrFixCmd.2 = STRING: > UCD-SNMP-MIB::extErrFixCmd.3 = STRING: > > Please let me know what else needs to be done. > > Thanks > Jatin > > -- > > ___ > Net-snmp-users mailing list > Net-snmp-users@lists.sourceforge.net > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > Ok , I finally figured it out from the CentOS support mailing list. The real issues was that SElinux was running in "Enforcing" mode and hence external commands were denied execution of scripts locally. Here is the snippet of the support that i received from them. If you want to turn off completely (not recommended on internet facing/production/sensitive servers) you should edit /etc/selinux/config and change SELINUX=permissive/enforcing to SELINUX=disabled. However, after this the server should be restarted, in order to turn off SElinux completely. Thought it might be useful for people facing the same issue. Thanks everyone for providing support and directions. Thanks Jatin -- ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users