diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 92ee236c8e9f..f8a303d630d5 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -1,407 +1,408 @@ COMMENT = Network management tools SUBDIR += 2ping SUBDIR += TkTopNetFlows SUBDIR += adcli SUBDIR += aggregate SUBDIR += aircrack-ng SUBDIR += alertmanager SUBDIR += ap-utils SUBDIR += argus3 SUBDIR += argus3-clients SUBDIR += arpscan SUBDIR += arpwatch SUBDIR += arts++ SUBDIR += bandwhich SUBDIR += bandwidthd SUBDIR += bgpq3 SUBDIR += bgpq4 SUBDIR += bgpuma SUBDIR += blackbox_exporter SUBDIR += bosun SUBDIR += bpft SUBDIR += braa SUBDIR += bsnmp-regex SUBDIR += bsnmp-ucd SUBDIR += bwm-ng SUBDIR += cacti SUBDIR += cacti-spine SUBDIR += cacti88-spine SUBDIR += carbon-relay-ng SUBDIR += carbonzipper SUBDIR += cdpd SUBDIR += cdpr SUBDIR += cdpsnarf SUBDIR += centreon-clib SUBDIR += check_ipmi_sensor SUBDIR += check_logfiles SUBDIR += check_mk_agent SUBDIR += check_multi SUBDIR += check_mysql_health SUBDIR += check_nwc_health SUBDIR += check_ssl_cert SUBDIR += check_ups_health SUBDIR += chillispot SUBDIR += choparp SUBDIR += cidr SUBDIR += ciscoconf SUBDIR += clog SUBDIR += cnagios SUBDIR += collectd5 SUBDIR += confregdecode SUBDIR += coovachilli SUBDIR += cowpatty SUBDIR += cricket SUBDIR += darkstat SUBDIR += devmon SUBDIR += devmon-templates SUBDIR += dhcdrop SUBDIR += dhcp_probe SUBDIR += disco SUBDIR += dnsmap SUBDIR += docsis SUBDIR += driftnet SUBDIR += ehnt SUBDIR += etherape SUBDIR += ettercap SUBDIR += fastnetmon SUBDIR += fetchconfig SUBDIR += flow-tools SUBDIR += flowd SUBDIR += flowviewer SUBDIR += fprobe SUBDIR += glpi-plugins-fusioninventory-server SUBDIR += gnu-ipcalc SUBDIR += grepcidr SUBDIR += grepip SUBDIR += grok_exporter SUBDIR += gsnmp SUBDIR += guifi-snpservices SUBDIR += hastmon SUBDIR += icinga2 SUBDIR += icingaweb2 SUBDIR += icingaweb2-module-businessprocess SUBDIR += icingaweb2-module-cube SUBDIR += icingaweb2-module-director SUBDIR += icingaweb2-module-elasticsearch SUBDIR += icingaweb2-module-fileshipper SUBDIR += icingaweb2-module-generictts SUBDIR += icingaweb2-module-grafana SUBDIR += icingaweb2-module-graphite SUBDIR += icingaweb2-module-idoreports SUBDIR += icingaweb2-module-ipl SUBDIR += icingaweb2-module-map SUBDIR += icingaweb2-module-pdfexport SUBDIR += icingaweb2-module-reactbundle SUBDIR += icingaweb2-module-reporting SUBDIR += icingaweb2-module-vsphere SUBDIR += icmpmonitor SUBDIR += icmpquery SUBDIR += iftop SUBDIR += intel-snap SUBDIR += ipacctd SUBDIR += ipaudit SUBDIR += ipcad SUBDIR += ipcalc SUBDIR += iprange SUBDIR += ipv6calc SUBDIR += ipv6gen SUBDIR += ipv6mon SUBDIR += irrtoolset SUBDIR += isic SUBDIR += jnettop SUBDIR += kapacitor SUBDIR += kismet SUBDIR += klg SUBDIR += lg SUBDIR += librenms SUBDIR += libsmi SUBDIR += lldpd SUBDIR += mbrowse SUBDIR += mdata-client SUBDIR += metronome SUBDIR += midpoint SUBDIR += mk-livestatus SUBDIR += monitoring-plugins SUBDIR += mrtg SUBDIR += mrtg-ping-probe SUBDIR += mtrace SUBDIR += mysql-snmp SUBDIR += mysqld_exporter SUBDIR += nagcon SUBDIR += nagios SUBDIR += nagios-certexp-plugin SUBDIR += nagios-check_bacula11 SUBDIR += nagios-check_bacula9 SUBDIR += nagios-check_clamav SUBDIR += nagios-check_cpu_usage SUBDIR += nagios-check_dhcp.pl SUBDIR += nagios-check_email_delivery SUBDIR += nagios-check_hdd_health SUBDIR += nagios-check_hp_bladechassis SUBDIR += nagios-check_mysql_slave SUBDIR += nagios-check_netsnmp SUBDIR += nagios-check_ports SUBDIR += nagios-check_postgres SUBDIR += nagios-check_puppet SUBDIR += nagios-check_relayd_status SUBDIR += nagios-check_smartmon SUBDIR += nagios-check_tftp SUBDIR += nagios-check_zpools SUBDIR += nagios-geom SUBDIR += nagios-openldap-plugins SUBDIR += nagios-pf-plugin SUBDIR += nagios-plugins SUBDIR += nagios-snmp-plugins SUBDIR += nagios-snmp-plugins-extras SUBDIR += nagios4 SUBDIR += nagiosgraph SUBDIR += nagiosql SUBDIR += nagircbot SUBDIR += nagnu SUBDIR += nagstamon SUBDIR += nagtail SUBDIR += nagvis SUBDIR += nbtscan SUBDIR += ndoutils SUBDIR += ndpmon SUBDIR += net-snmp SUBDIR += netbox SUBDIR += netdata SUBDIR += netdata-go SUBDIR += netdisco SUBDIR += netdisco-mibs SUBDIR += netdot SUBDIR += netleak SUBDIR += netmagis-common SUBDIR += netmagis-database SUBDIR += netmagis-detecteq SUBDIR += netmagis-metro SUBDIR += netmagis-servers SUBDIR += netmagis-topo SUBDIR += netmagis-utils SUBDIR += netmagis-www SUBDIR += netmask SUBDIR += netspoc SUBDIR += netustad SUBDIR += networkmgr SUBDIR += netxms SUBDIR += nfdump SUBDIR += nfs-exporter SUBDIR += nfsen SUBDIR += ng_ipacct SUBDIR += nitpicker SUBDIR += nrpe3 SUBDIR += nsca SUBDIR += nsca-client SUBDIR += nsca-ng SUBDIR += nsca-ng-client SUBDIR += nsca27 SUBDIR += nsca27-client SUBDIR += nsd_exporter SUBDIR += nstat SUBDIR += nvidia_gpu_prometheus_exporter SUBDIR += observium SUBDIR += ocsinventory-agent SUBDIR += ocsinventory-ocsreports SUBDIR += ocsinventory-server SUBDIR += omping SUBDIR += openbmp SUBDIR += openlldp SUBDIR += openvmps SUBDIR += p0f SUBDIR += p0f2 SUBDIR += p5-AnyEvent-SNMP SUBDIR += p5-BigIP-iControl SUBDIR += p5-Cflow SUBDIR += p5-Cisco-CopyConfig SUBDIR += p5-Cisco-Reconfig SUBDIR += p5-Data-Validate-IP SUBDIR += p5-FusionInventory-Agent SUBDIR += p5-MRTG-Parse SUBDIR += p5-Mon SUBDIR += p5-Monitoring-Livestatus SUBDIR += p5-Monitoring-Plugin SUBDIR += p5-NSNMP SUBDIR += p5-Nagios-Object SUBDIR += p5-Nagios-Plugin SUBDIR += p5-Nagios-Plugin-Beanstalk SUBDIR += p5-Nagios-Plugin-LDAP SUBDIR += p5-Nagios-Plugins-Memcached SUBDIR += p5-Net-ACL SUBDIR += p5-Net-Abuse-Utils SUBDIR += p5-Net-Abuse-Utils-Spamhaus SUBDIR += p5-Net-CIDR SUBDIR += p5-Net-ILO SUBDIR += p5-Net-IP SUBDIR += p5-Net-IP-Match-Regexp SUBDIR += p5-Net-IP-Match-XS SUBDIR += p5-Net-IP-Resolver SUBDIR += p5-Net-IP-XS SUBDIR += p5-Net-IPAddress SUBDIR += p5-Net-IPv4Addr SUBDIR += p5-Net-IPv6Addr SUBDIR += p5-Net-NSCA-Client SUBDIR += p5-Net-Netmask SUBDIR += p5-Net-OpenVPN-Manage SUBDIR += p5-Net-SNMP SUBDIR += p5-Net-SNMP-Util SUBDIR += p5-Net-SNMPTrapd SUBDIR += p5-Net-Telnet-Cisco-IOS SUBDIR += p5-NetAddr-IP SUBDIR += p5-NetAddr-IP-Lite SUBDIR += p5-NetApp SUBDIR += p5-POE-Component-SNMP SUBDIR += p5-RDR-Collector SUBDIR += p5-SNMP-Info SUBDIR += p5-SNMP-MIB-Compiler SUBDIR += p5-SNMP-Simple SUBDIR += p5-SNMP-Trapinfo SUBDIR += p5-SNMP-Util SUBDIR += p5-SNMP_Session SUBDIR += p5-Telnet-Cisco SUBDIR += p5-Tie-NetAddr-IP SUBDIR += p5-Xymon SUBDIR += p5-Xymon-Client SUBDIR += p5-Xymon-Server SUBDIR += p5-Zenoss SUBDIR += p5-jmx4perl SUBDIR += packit SUBDIR += pads SUBDIR += pancho SUBDIR += pandorafms_agent SUBDIR += pandorafms_console SUBDIR += pandorafms_server SUBDIR += percona-monitoring-plugins SUBDIR += pftabled SUBDIR += php73-snmp SUBDIR += php74-snmp SUBDIR += php80-snmp SUBDIR += phpfpm_exporter SUBDIR += phpipam SUBDIR += phpweathermap SUBDIR += ping_exporter SUBDIR += pktstat SUBDIR += pmacct SUBDIR += pnp SUBDIR += pnp-icinga2 SUBDIR += portmon SUBDIR += prometheus-collectd-exporter SUBDIR += prometheus1 SUBDIR += prometheus2 SUBDIR += pushgateway SUBDIR += py-adal SUBDIR += py-aggregate6 SUBDIR += py-arouteserver SUBDIR += py-ciscoconfparse SUBDIR += py-dnsdiag SUBDIR += py-gstat_exporter SUBDIR += py-ipcalc SUBDIR += py-ipy SUBDIR += py-junos-eznc SUBDIR += py-msrest SUBDIR += py-msrestazure SUBDIR += py-napalm SUBDIR += py-napalm-logs SUBDIR += py-ncclient SUBDIR += py-nxapi-plumbing SUBDIR += py-prometheus-client SUBDIR += py-pyIOSXR SUBDIR += py-pyang SUBDIR += py-pyeapi SUBDIR += py-pynxos SUBDIR += py-pysmi SUBDIR += py-pysnmp SUBDIR += py-pysnmp-mibs SUBDIR += py-pyzabbix SUBDIR += py-snmp_passpersist SUBDIR += py-snmpclitools SUBDIR += rackmonkey SUBDIR += rancid3 SUBDIR += rate SUBDIR += rcpd SUBDIR += remarp SUBDIR += resource-agents SUBDIR += riemann SUBDIR += riemann-c-client SUBDIR += rotorouter SUBDIR += routers2 SUBDIR += routers2-extensions SUBDIR += routers2-extras SUBDIR += rrdbot SUBDIR += rtrlib SUBDIR += rubygem-blimpy SUBDIR += rubygem-checkson SUBDIR += rubygem-oxidized SUBDIR += rubygem-oxidized-script SUBDIR += rubygem-oxidized-web SUBDIR += rubygem-riemann-client SUBDIR += rubygem-riemann-dash SUBDIR += rubygem-riemann-rabbitmq SUBDIR += rubygem-riemann-tail SUBDIR += rubygem-riemann-tools SUBDIR += rubygem-snmp SUBDIR += rubygem-visage-app SUBDIR += sblim-wbemcli SUBDIR += sdig SUBDIR += seafile-client SUBDIR += seafile-gui SUBDIR += seafile-server SUBDIR += semaphore SUBDIR += send SUBDIR += sendip SUBDIR += sipcalc SUBDIR += sjitter SUBDIR += smokeping SUBDIR += snmp4nagios SUBDIR += snmptt SUBDIR += softflowd SUBDIR += spectools SUBDIR += ssgless SUBDIR += statsite SUBDIR += subcalc SUBDIR += super_mediator SUBDIR += sysmon SUBDIR += tcpreplay SUBDIR += tcptrack SUBDIR += telegraf SUBDIR += thanos SUBDIR += torrus SUBDIR += triton-guesttools SUBDIR += unbound_exporter SUBDIR += unifi-devel SUBDIR += unifi-lts SUBDIR += unifi-poller SUBDIR += unifi5 SUBDIR += unifi6 SUBDIR += victoria-metrics SUBDIR += virt-viewer + SUBDIR += vmutils SUBDIR += wdiag SUBDIR += whatmask SUBDIR += wifimgr SUBDIR += wmi-client SUBDIR += xymon-client SUBDIR += xymon-server SUBDIR += yaf SUBDIR += zabbix3-agent SUBDIR += zabbix3-frontend SUBDIR += zabbix3-java SUBDIR += zabbix3-proxy SUBDIR += zabbix3-server SUBDIR += zabbix4-agent SUBDIR += zabbix4-frontend SUBDIR += zabbix4-java SUBDIR += zabbix4-proxy SUBDIR += zabbix4-server SUBDIR += zabbix5-agent SUBDIR += zabbix5-frontend SUBDIR += zabbix5-java SUBDIR += zabbix5-proxy SUBDIR += zabbix5-server SUBDIR += zabbix52-agent SUBDIR += zabbix52-frontend SUBDIR += zabbix52-java SUBDIR += zabbix52-proxy SUBDIR += zabbix52-server .include diff --git a/net-mgmt/vmutils/Makefile b/net-mgmt/vmutils/Makefile new file mode 100644 index 000000000000..754534b5f087 --- /dev/null +++ b/net-mgmt/vmutils/Makefile @@ -0,0 +1,50 @@ +# Created by: Alexey Dokuchaev + +PORTNAME= vmutils +DISTVERSIONPREFIX= v +DISTVERSION= 1.58.0 +CATEGORIES= net-mgmt +DISTINFO_FILE= ${.CURDIR}/../victoria-metrics/distinfo + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Ancillary utilities and agent for VictoriaMetrics + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake go:modules,no_targets +USE_RC_SUBR= vmagent +MAKE_ENV= PKG_TAG=${DISTVERSIONPREFIX}${DISTVERSION} \ + BUILDINFO_TAG=edd1590 GOOS=${OPSYS:tl} +ALL_TARGET= ${PORTNAME}-pure + +USE_GITHUB= yes +GH_ACCOUNT= VictoriaMetrics +GH_PROJECT= VictoriaMetrics + +.include "${.CURDIR}/../victoria-metrics/Makefile.deps" + +USERS= victoria-metrics +GROUPS= victoria-metrics +VICTORIA_DATA?= /var/db/victoria-metrics + +SUB_LIST+= VICTORIA_DATA=${VICTORIA_DATA} \ + VICTORIA_USER=${USERS} + +PLIST_SUB+= VICTORIA_DATA=${VICTORIA_DATA} \ + VICTORIA_GROUP=${GROUPS} \ + VICTORIA_USER=${USERS} + +OPTIONS_DEFINE= DOCS + +do-install: +.for p in agent alert auth backup ctl restore + ${INSTALL_PROGRAM} ${WRKSRC}/bin/vm${p}-pure \ + ${STAGEDIR}${PREFIX}/bin/vm${p} +.endfor + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/docs/vm* ${STAGEDIR}${DOCSDIR} + +.include diff --git a/net-mgmt/vmutils/files/vmagent.in b/net-mgmt/vmutils/files/vmagent.in new file mode 100644 index 000000000000..b07a662486a9 --- /dev/null +++ b/net-mgmt/vmutils/files/vmagent.in @@ -0,0 +1,65 @@ +#!/bin/sh + +# PROVIDE: victoria_vmagent +# REQUIRE: NETWORK +# BEFORE: DAEMON + +. /etc/rc.subr + +name="victoria_vmagent" +desc="Fast, cost-effective, and scalable time series database" +rcvar="victoria_vmagent_enable" +pidfile="/var/run/${name}.pid" +daemon_pidfile="/var/run/${name}-daemon.pid" +logdir="/var/log/${name}" +logfile="${logdir}/victoria_vmagent.log" +command="%%PREFIX%%/bin/vmagent" +victoria_vmagent_args=${cbsd_mq_router_config-"--remoteWrite.tmpDataPath=/tmp --promscrape.config=%%PREFIX%%/etc/prometheus/prometheus.yml --remoteWrite.url=http://127.0.0.1:8429/api/v1/write -httpListenAddr=:9429 --memory.allowedPercent=80"} +victoria_vmagent_user="%%VICTORIA_USER%%" +load_rc_config ${name} + +start_cmd="start" +stop_cmd="stop" +status_cmd="status" + +start() +{ + [ ! -d ${logdir} ] && mkdir -p ${logdir} + touch ${logfile} + chown ${victoria_vmagent_user} ${logdir} ${logfile} + /usr/sbin/daemon -u ${victoria_vmagent_user} -f -R5 -p ${pidfile} -P ${daemon_pidfile} -o ${logfile} ${command} ${victoria_vmagent_args} +} + +stop() +{ + if [ -f "${daemon_pidfile}" ]; then + pids=$( pgrep -F ${daemon_pidfile} 2>&1 ) + _err=$? + [ ${_err} -eq 0 ] && kill -9 ${pids} && /bin/rm -f ${daemon_pidfile} + fi + if [ -f "${pidfile}" ]; then + pids=$( pgrep -F ${pidfile} 2>&1 ) + _err=$? + [ ${_err} -eq 0 ] && kill -9 ${pids} && /bin/rm -f ${pidfile} + fi +} + +status() +{ + if [ -f "${pidfile}" ]; then + pids=$( pgrep -F ${pidfile} 2>&1 ) + _err=$? + if [ ${_err} -eq 0 ]; then + echo "${name} is running as pid ${pids}" + exit 0 + else + echo "wrong pid: ${pids}" + exit 1 + fi + else + echo "no pidfile $pidfile" + exit 1 + fi +} + +run_rc_command "$1" diff --git a/net-mgmt/vmutils/pkg-descr b/net-mgmt/vmutils/pkg-descr new file mode 100644 index 000000000000..84f9ad399c4f --- /dev/null +++ b/net-mgmt/vmutils/pkg-descr @@ -0,0 +1,6 @@ +VictoriaMetrics is fast, cost-effective, and scalable monitoring solution +and time series database. + +This package installs ancillary utilities and agent for VictoriaMetrics. + +WWW: https://victoriametrics.github.io/ diff --git a/net-mgmt/vmutils/pkg-plist b/net-mgmt/vmutils/pkg-plist new file mode 100644 index 000000000000..606b04af287f --- /dev/null +++ b/net-mgmt/vmutils/pkg-plist @@ -0,0 +1,17 @@ +bin/vmagent +bin/vmalert +bin/vmauth +bin/vmbackup +bin/vmctl +bin/vmrestore +%%PORTDOCS%%%%DOCSDIR%%/vmagent.md +%%PORTDOCS%%%%DOCSDIR%%/vmagent.png +%%PORTDOCS%%%%DOCSDIR%%/vmalert.md +%%PORTDOCS%%%%DOCSDIR%%/vmauth.md +%%PORTDOCS%%%%DOCSDIR%%/vmbackup.md +%%PORTDOCS%%%%DOCSDIR%%/vmctl.md +%%PORTDOCS%%%%DOCSDIR%%/vmgateway-access-control.jpg +%%PORTDOCS%%%%DOCSDIR%%/vmgateway-overview.jpeg +%%PORTDOCS%%%%DOCSDIR%%/vmgateway-rate-limiting.jpg +%%PORTDOCS%%%%DOCSDIR%%/vmgateway.md +%%PORTDOCS%%%%DOCSDIR%%/vmrestore.md