summaryrefslogtreecommitdiffstats
path: root/usr.sbin/snmpd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* within Rs/Re reference blocks, use %U instead of %O (or any otherjmc2012-08-181-3/+3
| | | | | | | | | variants) for URLs, allowing mandoc -Thtml to properly generate links; (sendmail.8 changes are simply using Lk, which i somehow missed in previous) ingo reminded me to verify that gnu groff recognises %U: 1.20.1 does not, but 1.21 does;
* a -> an in a commentblambert2012-07-081-2/+2
| | | | ok phessler@
* Use calloc() instead of malloc() for allocating the disk stats.matthew2012-06-191-3/+4
| | | | Requested by deraadt.
* Add support for UCD-DISKIO-MIB.matthew2012-06-142-2/+128
| | | | ok sthen
* kr_init() now returns void so don't try to return 0jsg2012-06-101-3/+1
|
* Plug a couple more fd leaks. As part of the fix, make all the *initjoel2012-05-284-23/+16
| | | | | | functions return void. ok krw@
* Plug some leaks when certain error conditions are met.joel2012-05-262-19/+28
| | | | | | From Gerhard Roth via tech@ ok krw@ sthen@
* use the size of the struct not the size of the pointer for memsetjsg2012-05-141-2/+2
| | | | ok joel@
* take a stab at documenting when arguments need quoted, and valid macrojmc2012-04-241-4/+7
| | | | | | | | | characters; prompted by a diff from robert peichaer org thanks gilles and henning for feedback ok deraadt zinke
* delete excessive evtimer_pending; ok claudioderaadt2012-04-111-3/+2
|
* add the evtimout rate-limiting code for accept() here too.deraadt2012-04-082-11/+36
| | | | eyed a little by joel
* New OIDs hrSystemUptime, hrSystemDate, hrSystemProcesses andjoel2012-03-203-4/+108
| | | | | | hrSystemMaxProcesses. ok sthen@
* Use correct Counter32 type for following MIBs. They only return dummy datasthen2012-02-271-1/+2
| | | | | | | | | but we should use the correct type anyway. BRIDGE-MIB::dot1dBasePortDelayExceededDiscards BRIDGE-MIB::dot1dBasePortMtuExceededDiscards OK joel@
* Bring in PF-MIB to snmpd.joel2012-02-236-6/+1883
| | | | ok krw@, sthen@
* Variable bindings need instance identifiers, for scalars this is always .0.camield2012-02-013-6/+17
| | | | | | At least NetSNMP and HPOV now understand it. ok joel@
* Document relayd(8)'s use of the openBSD.3 OID; move the CARP MIB tojoel2012-01-311-1/+2
| | | | | | openBSD.6 to avoid a conflict with relayd. ok camield@
* Add the OPENBSD-CARP-MIB to snmpdjoel2012-01-312-6/+302
| | | | ok camield@, "start committing" deraadt@
* If a kernel sensor doesn't have a description, come up with somethingjoel2012-01-301-2/+9
| | | | | | | useful rather than leaving that field empty. ok sthen@ deraadt@
* reorder SENSOR_* in switch() and add missing cases.yuo2011-09-161-2/+3
| | | | ok deraadt@
* apply following changes to sensor framework:yuo2011-09-161-2/+2
| | | | | | | - change accuracy of SENSOR_FREQ from Hz to muHz - add SENSOR_VOLTS_AC entry to userland programs ok deraadt@
* LINK_STATE_IS_UP() cleanup userland part. There is no need to specialclaudio2011-07-041-6/+6
| | | | | | | | case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.
* Use a common text explaining how the various configuration parsers usingsthen2011-06-231-2/+6
| | | | | | | | | the standard OpenBSD-style parse.y handle continuing lines with backslashes, paying particular attention to how comments are handled (which can cause nasty side-effects if you're not expecting it). Most wording from jmc@, with suggestions from fgsch@, marc@, Richard Toohey, patrick keshishian and Florian Obser, ok jmc@.
* no need to escape `|';jmc2011-04-211-2/+2
|
* Add a "filter-routes" option; when set, snmpd asks the kernel not tosthen2011-04-214-7/+51
| | | | | | | send route updates. If you aren't interested in examining routing tables over SNMP (e.g. if you only use it for sensors or interface stats) this reduces cpu use during heavy route updates. Makes my full-table bgp routers happier when a major peer bounces. ok reyk@
* Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowguenther2011-04-101-11/+11
| | | | | | that we've got name we want for the API we want "ZAP!" deraadt@
* fix trap sending in snmpd by adjusting snmpctl to the imsg libutilreyk2011-03-161-6/+3
| | | | | | change and fixing the ber element handling in snmpd itself. tested by jsg@
* continguous -> contiguoushenning2011-03-071-2/+2
| | | | From: "Anthony J. Bentley" <anthonyjbentley at gmail dot com>
* Missing ; to appease yyextract, ok martinh@sthen2010-10-181-1/+2
|
* return numeric 0 rather than attempting to return a null string,sthen2010-10-151-2/+3
| | | | | | fixes a segfault when walking memiftable. seems sane to phessler, ok dlg@
* typo in commentsthen2010-10-151-2/+2
|
* tweak the mclgeti algorithm to behave better under load.dlg2010-09-231-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of letting hardware rings grow on every interrupt, restrict it so it can only grow once per softclock tick. we can only punish the rings on softclock ticks, so it make sense to only grow on softclock tick boundaries too. the rings are now punished after >1 lost softclock tick rather than >2. mclgeti is now more aggressive at detecting livelock. the rings get punished by an 8th, rather than by half. we now allow the rings to be punished again even if the system is already considered in livelock. without this diff a livelocked system will have its rx ring sizes scale up and down very rapidly, while holding the rings low for too long. this affected throughput significantly. discussed and tested heavily at j2k10. there are still some games with softnet we can play, but this is a good first step. "put it in" and ok deraadt@ ok claudio@ krw@ henning@ mcbride@ if we find out that it sucks we can pull it out again later. till then we'll run with it and see how it goes.
* fix-up the sysORTable by using the same name (sensorsMIBObjects) as usedsthen2010-09-202-6/+6
| | | | | | in the MIB, rather than a different spelling (sensorMIBObjects). ok martinh@
* Use strvis to encode octet strings in -DDEBUG mode.martinh2010-09-201-4/+10
| | | | Makes my terminal happier when debugging.
* Return error on GET requests without an instance identifier, both formartinh2010-09-203-15/+41
| | | | | | | | | | | | | | | | | | | | | tables and scalar values. Fixes system/6468 by not calling table get functions with an unexpectedly short OID. Also fixes system/6071. Scalar variables without an instance specified now returns a noSuchInstance error. GetNext requests correctly returns the .0 instance. This means you can no longer rely on $ snmpget -v2c -c public localhost SNMPv2-MIB::sysDescr returning the .0 instance. You need to specify it explicitly: $ snmpget -v2c -c public localhost SNMPv2-MIB::sysDescr.0 Also return proper SNMPv2 errors per varbind instead of a noSuchName error status, unless SNMPv1 was specified in the request. An earlier version of this diff tested by Remi Laurent, thanks.
* ber_scanf_elements "i" format expects a long long pointer.martinh2010-09-201-2/+3
|
* Allow output of null values with a context class. This is used in SNMPv2 tomartinh2010-09-201-2/+3
| | | | | return an error exception value for a varbind result ("noSuchObject[0] IMPLICIT NULL" in rfc1905).
* fix linecount bug with comments spanning multiple lineshenning2010-08-031-3/+4
| | | | | | | problem reported with the obvious fix for bgpd by Sebastian Benoit <benoit-lists at fb12.de>, also PR 6432 applied to all the others by yours truly. ok theo isn't it amazing how far this parser (and more) spread?
* fix a double "is";jmc2010-07-181-3/+3
|
* Fixes unlinking the first element inside a set or a sequence, andmartinh2010-06-141-6/+6
| | | | | | | fix reading empty sequences/sets. This minimizes the changes against ldapd. "looks good" pyr@, ok reyk@
* Implement IP-FORWARD-MIB, ipv4 only for now.jsg2010-06-114-4/+316
| | | | ok reyk@ claudio@
* ber_calc_len() is not an internal function, so adjust the comment.martinh2010-06-081-5/+5
| | | | from Dawe
* Move imsg into libutil and add a man page.nicm2010-05-264-685/+4
| | | | | | | | Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
* Rename some imsg bits to make namespace collisions less likely buf tonicm2010-05-263-65/+65
| | | | | | ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
* now that we can handle >9 args, put "-D name=value" on one line: it's a bitjmc2010-05-241-5/+3
| | | | more readable, and fixes a spacing bug we had in smtpd.8;
* Use calloc() instead of malloc() to allocate the connection structure. Thisclaudio2010-05-141-2/+2
| | | | | way the memory is zeroed. This is equivalent to the relayd commit by reyk. OK reyk, jsg
* imsg.h does not need sys/tree.h.nicm2010-04-271-3/+1
| | | | ok eric
* Correct sensor logic so we don't get stuck in a loop.jsg2010-04-271-9/+11
| | | | ok deraadt@
* Dumb mistake done twice. First in ospfd then synced to snmpd. rtm_errnoclaudio2010-04-271-3/+3
| | | | | | is only valid for messages with an rt_msghdr. So move the check back where it was before. Problem found by jsg@
* Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledderaadt2010-04-201-9/+13
| | | | | | | by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
* Add "frequency" type for sensors. (and teach userland how to print thatoga2010-04-201-1/+2
| | | | | | type). Measured in Hz. ok deraadt@