.\" $OpenBSD$ .\" .\" Copyright (c) 2020 Martijn van Duren .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate$ .Dt SYSLOGD.AGENTX 8 .Os .Sh NAME .Nm syslogd.agentx .Nd Export syslog messages through snmp .Sh SYNOPSIS .Nm syslogd.agentx .Op Fl v .Op Fl c Ar context .Op Fl d Ar dbpath .Op Fl s Ar master .Sh DESCRIPTION .Nm should be called through the .Xr syslog.conf 5 double pipe agentx .Pq || action. Messages can be found under the syslogMsgMib subtree .Pq mib-2.192 . Available options are: .Bl -tag -width indent .It Fl c Ar context Specify an SNMPv3 context, can usually be omitted. .It Fl d Ar dbpath .Ar dbpath specifies the file which .Nm uses for persistent settings and messages. At startup this file is emptied and is filled upon exit. If omitted it will default to .Pa /var/db/syslogd/agentx . .It Fl s Ar master .Ar master specifies the path to the agentx master. It must be accessible by the _syslogd user or its groups. If omitted it will default to .Pa /var/agentx/master . .It Fl v Verbose mode. Multiple .Fl v options increase verbosity. .Nm will log to the daemon facility. .El .Sh EXAMPLES .Nm can be enabled for all warning messages in .Xr syslog.conf 5 by adding the following line: .Bd -literal -offset indent daemon.* ||/usr/libexec/syslogd.agentx .Ed .Sh SEE ALSO .Xr syslog.conf 5 , .\".Xr snmpd 8 , .Xr syslogd 8 .Sh STANDARDS .Rs .%A J. Schoenwaelder .%Q Jacobs University Bremen .%A A. Clemm .%Q Cisco Systems .%A A. Karmakar .%Q Cisco Systems India Pvt Ltd .%D October 2009 .%R RFC 5676 .%T Definitions of Managed Objects for Mapping SYSLOG Messages to Simple \ Network Management Protocol (SNMP) Notifications .Re .Sh HISTORY The .Nm utility first appeared in .Ox 7.0 . .Sh AUTHORS The .Nm utility was written by: .Pp .An Martijn van Duren Aq Mt martijn@openbsd.org .Sh CAVEATS If .Fl v is specified more then once and the daemon facility is being exported it will cause an infinite loop while walking the subtree. .Pp Only a single agentx subprocess can run at a time.