SNMP on a bridge interface
Hello, is it possible to set up a SNMP server on a bridge interface? I'm getting this error after some time the server start: error getting netmask for interface 1 error on subcontainer 'ia_addr' insert (-1) couldn't map value 0 for ipAddressAddrType error on subcontainer '' insert (-1) Then, the server drops out... This is a Gentoo box by the way. Thanks Mateus - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
Question regarding sending of snmp traps
Hello, this is probably a dumb question, but here it is anyway. I'm inside a network, made with NAT, so I have one external IP, let's call it 200.200.200.200, and lot's of internal ip, like 192.168.0.5. We have some servers, that are being watched with snmp, namely servers 192.168.0.1, 192.168.0.2 and 192.168.0.3, they all send snmptraps to an external snmp server, for instance 125.125.125.125. Now, when 125.125.125.125 recieves the traps, from any of the internal servers, it would put the external ip 200.200.200.200 on the trap signature, ok, that's what really happens now, but I want it to send the internal ip, so I can know which server sent the trap, is there any way? Thanks a lot. Mateus - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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
Host monitoring and trap sending
Hello I'm trying to monitor some hosts that are behind the switch, and send traps over the internet, in an external host. The SNMP daemon is ON the switch (it's a linux box with NET-SNMP 5.4). The question is: 1)Do I need a custom MIB for this? 2)If yes, then how do I make one? Do you guys have any pointers? 3)If not, what would be the monitor option on the snmpd.conf file? Saying that the host which I want to monitor is on 10.0.0.4 Thanks a lot Mateus - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Requests not passed to the handler
On Tue, 04 Sep 2007 15:48:39 +0200, Milan_Tvarozek wrote: > Hello all, > > I am experiencing a strange problem. I have written a simple common > handler for MOD_GET a MOD_GETNEXT. > > The handler seems to work fine but certain SNMP requests are not passed > to the handler. > > Example: > > snmpget -v 1 -c public localhost .1.3.6.1.2.1.1.1.1is passed. > > snmpget -v 1 -c public localhost .1.3.6.1.2.1.4.1.1is NOT passed. > > The handler is registered for 1.3.6. > > It does not matter if I run the agent as main agent or subagent, > behaviour is the same. > > Would somebody give me a hint what I am doing wrong? Obviously, I am > missing something. > > Thanks for your help. > > Milan > > > int agentx_subagent = 0; > > static oid root_oid[] = { 1, 3, 6 }; > > /* we're an agentx subagent? */ > if (agentx_subagent) { > /* make us a agentx client. */ > netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, > NETSNMP_DS_AGENT_ROLE, 1); > } > > /* initialize tcpip, if necessary */ > SOCK_STARTUP; > > /* initialize the agent library */ > init_agent("ippc_agent"); > > /* ippc agent will be used to read ippc_agent.conf files. */ > init_snmp("ippc_agent"); > > /* If we're going to be a snmp master agent, initial the ports */ if > (!agentx_subagent) { > init_master_agent(); /* open the port to listen on (defaults to > udp:161) */ > } > > netsnmp_mib_handler *handler = > netsnmp_create_handler("common_handler", &common_handler ); > > handler_reg = netsnmp_handler_registration_create( "common_handler", >handler, >root_oid, >OID_LENGTH(root_oid), >0); > > netsnmp_register_handler(handler_reg); > > > > > > > > > - > This SF.net email is sponsored by: Splunk Inc. Still grepping through > log files to find problems? Stop. Now Search log events and > configuration files using AJAX and a browser. Download your FREE copy of > Splunk now >> http://get.splunk.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 Argh, now that I've saw it, I downloaded the net-snmp from the yum repository (I'm using CentOS), since when I tryed to make the net-snmp, it gave me this error: mibgroup/utilities/iquery.c: In function `netsnmp_iquery_session': mibgroup/utilities/iquery.c:156: warning: passing arg 1 of `memdup' from incompatible pointer type snmp_perl.c: In function `xs_init': snmp_perl.c:20: warning: passing arg 3 of `Perl_newXS' from incompatible pointer type snmp_perl.c: In function `maybe_source_perl_startup': snmp_perl.c:50: warning: passing arg 2 of `perl_parse' from incompatible pointer type agent/extend.c: In function `_extend_find_entry': agent/extend.c:1239: warning: passing arg 2 of `snmp_set_var_value' from incompatible pointer type disman/event/mteObjects.c: In function `_init_default_mteObject': disman/event/mteObjects.c:50: warning: passing arg 2 of `mteObjects_addOID' discards qualifiers from pointer target type disman/event/mteObjects.c:50: warning: passing arg 4 of `mteObjects_addOID' discards qualifiers from pointer target type host/hr_device.c: In function `var_hrdevice': host/hr_device.c:246: warning: assignment discards qualifiers from pointer target type util_funcs.c: In function `restart_doit': util_funcs.c:698: warning: `sigsetmask' is deprecated (declared at /usr/ include/signal.h:184) if-mib/data_access/interface.c: In function `_free_interface_config': if-mib/data_access/interface.c:756: warning: passing arg 1 of `free' discards qualifiers from pointer target type snmpd.c: In function `main': snmpd.c:944: warning: assignment discards qualifiers from pointer target type if.c:52:1: warning: "__USE_XOPEN" redefined In file included from /usr/include/stdio.h:28, from ../../include/net-snmp/net-snmp-includes.h:14, from if.c:44: /usr/include/features.h:215:1: warning: this is the location of the previous definition if.c:53:1: warning: "__USE_XOPEN_EXTENDED" redefined /usr/include/features.h:217:1: warning: this is the location of the previous definition snmptrapd_log.c: In function `realloc_handle_ent_fmt': snmptrapd_log.c:876: warning: passing arg 5 of `sprint_realloc_objid' from incompatible pointer type Warning: -L../../snmplib/.libs changed to -L/root/programs/net-snmp-5.4.1/ perl/default_store/../../snmplib/.libs Warning: -L../../snmplib/ changed to -L/root/programs/net-snmp-5.4.1/perl/ default_store/../../snmplib/ Warning: -L../../snmplib/.libs changed to -L/root/programs/net-
Re: Disk Usage trap
On Tue, 04 Sep 2007 15:10:26 +0100, Dave Shield wrote: > On 04/09/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> Strangelly enough, if I walk the dskTable and dskErrorFlag, with these >> commands, here's what I recieve >> >> snmpwalk -v3 -u * -n "" -l authNoPriv -a MD5 -A >> *** localhost dskTable UCD-SNMP-MIB::dskTable = No Such >> Object available on this agent at this OID snmpget -v3 -u ** -n >> "" -l authNoPriv -a MD5 -A localhost dskErrorFlag >> UCD-SNMP-MIB::dskErrorFlag = No Such Instance currently exists at this >> OID > > > That would tend to explain why you're not receiving traps, then! > > >> And I'm using NET-SNMP 5.4 > > Did you compile this yourself, or are you using a pre-compiled binary? > If a binary distribution, where did you get it from? If compiled from > source - how did you run "configure"? It might be worth re-compiling, > and checking whether the ucd-snmp/disk module is being included. > > Dave > > - > This SF.net email is sponsored by: Splunk Inc. Still grepping through > log files to find problems? Stop. Now Search log events and > configuration files using AJAX and a browser. Download your FREE copy of > Splunk now >> http://get.splunk.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 Yes, I did compiled it by myself, and the ucd-snmp/disk module is enabled by default. And so is it being included right? Mateus - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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: Disk Usage trap
On Tue, 04 Sep 2007 14:55:28 +0100, Dave Shield wrote: > On 04/09/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> monitor -r 5 -o prNames -o prErrMessage "Process table" prErrorFlag != >> 0 monitor -r 5 -o dskPath -o dskErrMessage "Disk Usage" dskErrorFlag != >> 0 >> >> defaultMonitors yes > > You don't need both "defaultMonitors" and the two explicit "monitor" > lines. Just use one or the other. > > >> Am I doing something wrong? The monitor for the prNames is checking >> every 5 seconds, and it is sending traps, but dskPath not... > > What happens when you walk the dskTable? What do you see? > > In particular, what do the dskErrorFlag values look like? > > Which version of the agent are you using? > > Dave > > - > This SF.net email is sponsored by: Splunk Inc. Still grepping through > log files to find problems? Stop. Now Search log events and > configuration files using AJAX and a browser. Download your FREE copy of > Splunk now >> http://get.splunk.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 Strangelly enough, if I walk the dskTable and dskErrorFlag, with these commands, here's what I recieve snmpwalk -v3 -u * -n "" -l authNoPriv -a MD5 -A *** localhost dskTable UCD-SNMP-MIB::dskTable = No Such Object available on this agent at this OID snmpget -v3 -u ** -n "" -l authNoPriv -a MD5 -A localhost dskErrorFlag UCD-SNMP-MIB::dskErrorFlag = No Such Instance currently exists at this OID And I'm using NET-SNMP 5.4 Mateus - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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
Disk Usage trap
Hello, I have the traps correctly setted up for at least the proccess, I've put some basic monitoring, and they are being sent to the snmptrapd, and everything works fine, but I can't seem to be able to do this for the disk usage, here's how's my snmpd.conf file on this issue: (the /dev/sda3 treshold is just for testing) proc supervise 0 3 proc postgres 0 1 proc httpd 0 1 proc ipaudit 1 1 disk /dev/sda3 97064900 disk /dev/sda1 10% monitor -r 5 -o prNames -o prErrMessage "Process table" prErrorFlag != 0 monitor -r 5 -o dskPath -o dskErrMessage "Disk Usage" dskErrorFlag != 0 defaultMonitors yes Am I doing something wrong? The monitor for the prNames is checking every 5 seconds, and it is sending traps, but dskPath not... Thanks a lot. Mateus. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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: SNMP v3 user
I don't think I have the user, since this is the first time I tryed, and it gives me the same error with any user I select (even random leters) On 8/29/07, Mike Ayers <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of Mateus Interciso > > Sent: Wednesday, August 29, 2007 7:43 AM > > > Error in packet. > > Reason: inconsistentValue (The set value is illegal or unsupported in > > some way) > > Failed object: > > SNMP-USER-BASED-SM-MIB::usmUserStatus.".z.aH...F"."wes" > > Do you have and existing "wes" user? The usmUserStatus object is > MAX_ACCESS read-create, which means that you must delete the existing "wes" > user before attempting to create a new one. > > > HTH, > > Mike > -- -==Zarnick==- - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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
SNMP v3 user
Hello, I'm trying to create a valid rwuser, using V3 of course. I've read the manual on snmpd.conf, and it says I can use a tool named snmpusm, on that manual, it has an example, which I'm trying to make, but I always get an error. The example says to have this lines on the snmpd.conf file rwuser initial rwuser wes createUser initial MD5 setup_passphrase DES and then execute this command snmpusm -v3 -u initial -n "" -l authNoPriv -a MD5 -A setup_passphrase localhost create wes initial Well, I make all the changes on snmpd.conf, restart it and here's the output of the command: Error in packet. Reason: inconsistentValue (The set value is illegal or unsupported in some way) Failed object: SNMP-USER-BASED-SM-MIB::usmUserStatus.".z.aH...F"."wes" Am I doing something wrong? Thanks a lot. Mateus - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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 with snmptrap
On Mon, 30 Jul 2007 13:01:20 +0100, Dave Shield wrote: > On 30/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> >> But I also want it to execute the command /bin/sh /tmp/trapTst.sh >> On the host that is running the trap receiver. > > OK - what is the trap PDU that should trigger this command? > > Dave > > - > This SF.net email is sponsored by: Splunk Inc. Still grepping through > log files to find problems? Stop. Now Search log events and > configuration files using AJAX and a browser. Download your FREE copy of > Splunk now >> http://get.splunk.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 Isn't this on the snmptrapd.conf that issues the command? traphandle "default" "/bin/sh /tmp/trapTst.sh" Then, whenever he gets a trap(any), it would execute /tmp/tapTst.sh? Mateus - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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 with snmptrap
On Sat, 28 Jul 2007 20:55:08 +0100, Dave Shield wrote: > On 27/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> [the agent] sucessfully send the trap, as it shows on the snmptrapd.log > >[snip] > > >> But I also want it to execute the command /bin/sh /tmp/trapTst.sh > > On which system? > The host where the agent is running (10.0.0.1), or the host that is > running the trap receiver (10.0.0.4) ? > On the host that is running the trap receiver. > >> Here's my snmptrapd.conf file on 10.0.0.1 > > I thought you said that snmptrapd was running on 10.0.0.4? That's > certainly the address you seem to have in your snmpd.conf file. > Sorry, it really is on 10.0.0.4. > The snmptrapd.conf file will only be processed by snmptrapd, and hence > is only needed on the system where traps are received. It's not relevant > on the system where the agent is running, where traps are sent *from*. > (Unless these are both the same box, of course). > > > Instead of sending traps, have a look at the 'setEvent' directive, to > handle everything on the 10.0.0.1 system. > I actually really need to execute the traps on the trap server. > > Dave > > Thanks. Mateus - > This SF.net email is sponsored by: Splunk Inc. Still grepping through > log files to find problems? Stop. Now Search log events and > configuration files using AJAX and a browser. Download your FREE copy of > Splunk now >> http://get.splunk.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 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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 with snmptrap
On Fri, 27 Jul 2007 09:59:32 +0100, Dave Shield wrote: > On 26/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> Hello, I have this snmpd.conf configuration on one host >> >> trapsink 10.0.0.4 test >> trap2sink 10.0.0.4 test >> informsink 10.0.0.4 test > > Why do you want to send three copies of every notification to the same > trap receiver? > > > > >> Now, when I start the snmpd on 10.0.0.1 (the SNMP host), the >> snmptrapd.log shows this > [snip] >> Does this by any chance means that the snmptrap is working fine? > > It means that the agent and "snmptrapd" are working fine. The > command-line tool "snmptrap" is not relevant here - that is an > alternative mechanism for sending traps. >But the agent is generating traps quite happily - three at a time! > > > >> snmptrap -v 2c -c public localhost "" NOTIFICATION-TEST-MIB::demo-notif >> \ >> SNMPv2-MIB::sysLocation.0 s "just here" >> but nothing happens. > > Try with "localhost:162" instead of just "localhost". > > I presume you are running this on the same machine as the trap receiver > (10.0.0.4), rather than the system with the SNMP agent (10.0.0.1) > > > >> Also, let's say I have on the snmpd.conf file this: >> >> proc apache2 100 1 >> >> And let's say that apache2 has stopped, will this triger a trap to the >> trapserver? > > Not by itself, no. > Please see the snmpd.conf(5) man page - in particular, the section > headed ACTIVE MONITORING. > > Dave > > - > This SF.net email is sponsored by: Splunk Inc. Still grepping through > log files to find problems? Stop. Now Search log events and > configuration files using AJAX and a browser. Download your FREE copy of > Splunk now >> http://get.splunk.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 Ok, thanks a lot for the help. It worked :D(almost) This is what I've putted on the snmpd.conf file rouser test noauth agentSecName test monitor -r 5 -o prNames -o prErrMessage "process table" prErrorFlag != 0 And it sucessfully send the trap, as it shows on the snmptrapd.log 2007-07-27 19:05:58 [UDP: [10.0.0.1]:50031]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (118788) 0:19:47.88 SNMPv2-MIB::snmpTrapOID.0 = OID: DISMAN-EVENT-MIB::mteTriggerFiredDISMAN- EVENT-MIB::mteHotTrigger.0 = STRING: process tableDISMAN-EVENT- MIB::mteHotTargetName.0 = STRING: DISMAN-EVENT-MIB::mteHotContextName.0 = STRING:DISMAN-EVENT-MIB::mteHotOID.0 = OID: UCD-SNMP- MIB::prErrorFlag.1DISMAN-EVENT-MIB::mteHotValue.0 = INTEGER: 1 UCD-SNMP-MIB::prNames.1 = STRING: apache2 UCD-SNMP- MIB::prErrMessage.1 = STRING: Too few apache2 running (# = 0) But I also want it to execute the command /bin/sh /tmp/trapTst.sh, how to do it? Here's my snmptrapd.conf file on 10.0.0.1 traphandle prErrorFlag "/bin/sh /tmp/trapTst.sh" traphandle "default" "/bin/sh /tmp/trapTst.sh" donotlogtraps no printeventnumbers yes ignoreauthfailure yes authCommunity log,execute public snmpTrapdAddr 10.0.0.4 Thanks a lot for the help :D - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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 with snmptrap
On Fri, 27 Jul 2007 09:59:32 +0100, Dave Shield wrote: > On 26/07/07, Mateus Interciso <[EMAIL PROTECTED]> wrote: >> Hello, I have this snmpd.conf configuration on one host >> >> trapsink 10.0.0.4 test >> trap2sink 10.0.0.4 test >> informsink 10.0.0.4 test > > Why do you want to send three copies of every notification to the same > trap receiver? Isn't trapsink for SNMPv1 traps, trap2sink for SNMPv2 traps? > > > > >> Now, when I start the snmpd on 10.0.0.1 (the SNMP host), the >> snmptrapd.log shows this > [snip] >> Does this by any chance means that the snmptrap is working fine? > > It means that the agent and "snmptrapd" are working fine. The > command-line tool "snmptrap" is not relevant here - that is an > alternative mechanism for sending traps. >But the agent is generating traps quite happily - three at a time! > > > >> snmptrap -v 2c -c public localhost "" NOTIFICATION-TEST-MIB::demo-notif >> \ >> SNMPv2-MIB::sysLocation.0 s "just here" >> but nothing happens. > > Try with "localhost:162" instead of just "localhost". > > I presume you are running this on the same machine as the trap receiver > (10.0.0.4), rather than the system with the SNMP agent (10.0.0.1) > Yes, it is the same machine, (10.0.0.4), and it didn't worked with the :162 > > >> Also, let's say I have on the snmpd.conf file this: >> >> proc apache2 100 1 >> >> And let's say that apache2 has stopped, will this triger a trap to the >> trapserver? > > Not by itself, no. > Please see the snmpd.conf(5) man page - in particular, the section > headed ACTIVE MONITORING. > I'll take a look as soon as I have some time(little busy now), and will post back doubts, and stuff. > Dave > > Thanks a lot Dave. - > This SF.net email is sponsored by: Splunk Inc. Still grepping through > log files to find problems? Stop. Now Search log events and > configuration files using AJAX and a browser. Download your FREE copy of > Splunk now >> http://get.splunk.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 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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
Help with snmptrap
Hello, I have this snmpd.conf configuration on one host (a lot more, but this is the relevant part) trapsink 10.0.0.4 test trap2sink 10.0.0.4 test informsink 10.0.0.4 test authtrapenable 1 This for the snmptraps part. On host 10.0.0.4, I have this snmptrapd.conf file traphandle 1.3.6.1.2.1.2 "/bin/sh /tmp/trapTst.sh" traphandle 1.3.6.1.4.1.2021.2.1.100 "/bin/sh /tmp/trapTst.sh" traphandle NOTIFICATION-TEST-MIB::demo-notif /bin/sh /tmp/trapTst.sh traphandle default /bin/sh /tmp/trapTst.sh donotlogtraps no printeventnumbers yes ignoreauthfailure no authCommunity log,event test nmpTrapdAddr 10.0.0.4 Now, when I start the snmpd on 10.0.0.1 (the SNMP host), the snmptrapd.log shows this NET-SNMP version 5.4 2007-07-26 13:13:08 [***.***.***.***] (via UDP: [10.0.0.1]:49484) TRAP, SNMP v1, community ouvi NET-SNMP-MIB::netSnmpNotificationPrefix Enterprise Specific Trap (NET-SNMP-AGENT-MIB::nsNotifyShutdown) Uptime: 0:03:26.15 2007-07-26 13:13:08 [UDP: [10.0.0.1]:49485]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (20615) 0:03:26.15 SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-AGENT-MIB::nsNotifyShutdown 2007-07-26 13:13:08 [UDP: [10.0.0.1]:49487]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (20615) 0:03:26.15 SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-AGENT-MIB::nsNotifyShutdown 2007-07-26 13:13:08 [***.***.***.***] (via UDP: [10.0.0.1]:49491) TRAP, SNMP v1, community ouvi NET-SNMP-MIB::netSnmpAgentOIDs.10 Cold Start Trap (0) Uptime: 0:00:00.09 Does this by any chance means that the snmptrap is working fine? I've also tryed to make the snmptrap tutorial on the net-snmp wiki (http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap), I can execute the snmptrap -v 2c -c public localhost "" NOTIFICATION-TEST-MIB::demo-notif \ SNMPv2-MIB::sysLocation.0 s "just here" but nothing happens. I'm doing something wrong? Also, let's say I have on the snmpd.conf file this: proc apache2 100 1 And let's say that apache2 has stopped, will this triger a trap to the trapserver? Thanks a lot. Mateus - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.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
snmptraps
Hello, I'm trying to implement a simple snmptrap, that checks if a process is running, and if it's not, fire up an email telling the proccess crashed, stuff like this. Now, I've been reading the net-snmp tutorial on snmptraps, and as far as I've understood, I need a custom MIB file right? As well as configuring the snmptrapsd.conf accordingly. I'm pretty sure that for configuring the snmptrapsd.conf, I can use the Linux man command, but what about the MIBs? I'm failing to find usefull information about how to create a custom MIB. Thanks for the help. - 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 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