diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 9bde311fde71..8f324f2ec0c9 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -1,446 +1,447 @@ COMMENT = Network management tools SUBDIR += 2ping SUBDIR += TkTopNetFlows SUBDIR += adcli SUBDIR += adguard-exporter SUBDIR += aggregate SUBDIR += aircrack-ng SUBDIR += alertmanager SUBDIR += andwatch SUBDIR += ap-utils SUBDIR += argus SUBDIR += argus-clients SUBDIR += arpscan SUBDIR += arpwatch SUBDIR += arts++ SUBDIR += bandwhich SUBDIR += bandwidthd SUBDIR += bgpq3 SUBDIR += bgpq4 SUBDIR += bgpuma SUBDIR += bind_exporter 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_syncthing SUBDIR += check_ups_health SUBDIR += check_wg SUBDIR += chillispot SUBDIR += choparp SUBDIR += cidr SUBDIR += ciscoconf SUBDIR += clog SUBDIR += cnagios SUBDIR += collectd5 SUBDIR += confregdecode SUBDIR += coovachilli SUBDIR += cowpatty SUBDIR += cricket SUBDIR += crmsh 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 += fence-agents SUBDIR += fetchconfig SUBDIR += fli SUBDIR += flow-tools SUBDIR += flowd SUBDIR += flowviewer SUBDIR += fprobe SUBDIR += geom-exporter SUBDIR += gnu-ipcalc SUBDIR += gping SUBDIR += grepcidr SUBDIR += grepip SUBDIR += grok_exporter SUBDIR += gsnmp SUBDIR += guifi-snpservices SUBDIR += icinga-ipl-i18n SUBDIR += icinga-php-library SUBDIR += icinga-php-thirdparty SUBDIR += icinga2 SUBDIR += icingadb 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-icingadb SUBDIR += icingaweb2-module-idoreports SUBDIR += icingaweb2-module-incubator SUBDIR += icingaweb2-module-jira SUBDIR += icingaweb2-module-map SUBDIR += icingaweb2-module-monitoring SUBDIR += icingaweb2-module-pdfexport SUBDIR += icingaweb2-module-reactbundle SUBDIR += icingaweb2-module-reporting SUBDIR += icingaweb2-module-vsphere SUBDIR += icingaweb2-module-vspheredb SUBDIR += icingaweb2-module-x509 SUBDIR += icmpmonitor SUBDIR += icmpquery SUBDIR += iftop SUBDIR += intel-snap SUBDIR += ipacctd SUBDIR += ipaudit SUBDIR += ipcad SUBDIR += ipcalc SUBDIR += ipfixcol2 SUBDIR += ipgen SUBDIR += iprange SUBDIR += ipv6calc SUBDIR += ipv6gen SUBDIR += ipv6mon SUBDIR += irrtoolset SUBDIR += isic SUBDIR += jnettop + SUBDIR += junos_exporter SUBDIR += kapacitor SUBDIR += kf6-networkmanager-qt SUBDIR += kismet SUBDIR += klg SUBDIR += lg SUBDIR += libfds SUBDIR += librenms SUBDIR += libsmi SUBDIR += lldpd SUBDIR += mac-telnet SUBDIR += makenl SUBDIR += mbrowse SUBDIR += mdata-client SUBDIR += metronome SUBDIR += midpoint SUBDIR += mk-livestatus SUBDIR += monitoring-plugins SUBDIR += mqtt2prometheus SUBDIR += mrtg SUBDIR += mrtg-ping-probe SUBDIR += mtrace SUBDIR += mysql-snmp SUBDIR += mysqld_exporter SUBDIR += nagios SUBDIR += nagios-certexp-plugin SUBDIR += nagios-check_bacula13 SUBDIR += nagios-check_bacula15 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 += nagnu SUBDIR += nagstamon SUBDIR += nagtail SUBDIR += nagvis SUBDIR += nbtscan SUBDIR += ndoutils SUBDIR += ndpmon SUBDIR += net-snmp SUBDIR += netbox SUBDIR += netbox-agent SUBDIR += netdata SUBDIR += netdisco-mibs 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 += networkmanager-shim SUBDIR += networkmgr SUBDIR += netxms SUBDIR += nfdump SUBDIR += nfs-exporter SUBDIR += nfsen SUBDIR += ng_ipacct SUBDIR += nitpicker SUBDIR += nrpe 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 += omada5 SUBDIR += omping SUBDIR += openbmp SUBDIR += openlldp SUBDIR += openvmps SUBDIR += p0f 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-Plugin_check_raid 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-OSLV-Monitor SUBDIR += p5-POE-Component-SNMP SUBDIR += p5-Prometheus-Tiny SUBDIR += p5-Prometheus-Tiny-Shared 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 += peering-manager SUBDIR += pftabled SUBDIR += php-fpm_exporter SUBDIR += php82-snmp SUBDIR += php83-snmp SUBDIR += php84-snmp SUBDIR += php85-snmp SUBDIR += phpfpm_exporter SUBDIR += phpipam SUBDIR += ping_exporter SUBDIR += pktstat SUBDIR += pmacct SUBDIR += pnp SUBDIR += pnp-icinga2 SUBDIR += portmon SUBDIR += prometheus-bird-exporter SUBDIR += prometheus-collectd-exporter SUBDIR += prometheus1 SUBDIR += prometheus2 SUBDIR += prometheus3 SUBDIR += promscale SUBDIR += promxy 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-netutils SUBDIR += py-nxapi-plumbing SUBDIR += py-opn-cli SUBDIR += py-pdagent SUBDIR += py-pdagent-integrations SUBDIR += py-phonebox-plugin SUBDIR += py-prometheus-client SUBDIR += py-pyIOSXR SUBDIR += py-pyang SUBDIR += py-pyeapi SUBDIR += py-pyixapi SUBDIR += py-pynetbox SUBDIR += py-pynxos SUBDIR += py-pypowerwall 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 += realmd SUBDIR += remarp SUBDIR += resource-agents SUBDIR += riemann SUBDIR += riemann-c-client SUBDIR += rotorouter SUBDIR += routers2 SUBDIR += routers2-extensions SUBDIR += routers2-extras SUBDIR += rrdbot SUBDIR += rs-aggregate 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 += sendip SUBDIR += simplomon SUBDIR += sipcalc SUBDIR += sjitter SUBDIR += smartctl_exporter 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 += unifi10 SUBDIR += unifi9 SUBDIR += victoria-logs 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 += zabbix6-agent SUBDIR += zabbix6-frontend SUBDIR += zabbix6-java SUBDIR += zabbix6-proxy SUBDIR += zabbix6-server SUBDIR += zabbix7-agent SUBDIR += zabbix7-frontend SUBDIR += zabbix7-java SUBDIR += zabbix7-proxy SUBDIR += zabbix7-server SUBDIR += zabbix72-agent SUBDIR += zabbix72-frontend SUBDIR += zabbix72-java SUBDIR += zabbix72-proxy SUBDIR += zabbix72-server SUBDIR += zabbix74-agent SUBDIR += zabbix74-frontend SUBDIR += zabbix74-java SUBDIR += zabbix74-proxy SUBDIR += zabbix74-server .include diff --git a/net-mgmt/junos_exporter/Makefile b/net-mgmt/junos_exporter/Makefile new file mode 100644 index 000000000000..43924582a807 --- /dev/null +++ b/net-mgmt/junos_exporter/Makefile @@ -0,0 +1,25 @@ +PORTNAME= junos_exporter +DISTVERSIONPREFIX= v +DISTVERSION= 0.15.4 +CATEGORIES= net-mgmt + +MAINTAINER= moggie@elasticmind.net +COMMENT= Prometheus exporter for Juniper device metrics +WWW= https://github.com/czerwonk/junos_exporter/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:1.26+,modules +USE_RC_SUBR= junos_exporter +GO_MODULE= github.com/czerwonk/junos_exporter + +SUB_FILES= pkg-message +SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}" + +USERS= prometheus +GROUPS= prometheus + +PLIST_FILES= bin/junos_exporter + +.include diff --git a/net-mgmt/junos_exporter/distinfo b/net-mgmt/junos_exporter/distinfo new file mode 100644 index 000000000000..bbccfea21a37 --- /dev/null +++ b/net-mgmt/junos_exporter/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1778749425 +SHA256 (go/net-mgmt_junos_exporter/junos_exporter-v0.15.4/v0.15.4.mod) = 6ec46567006b27774adedd1610664b42b21d8e58836f9dfd91de23a83e2d5b8b +SIZE (go/net-mgmt_junos_exporter/junos_exporter-v0.15.4/v0.15.4.mod) = 1860 +SHA256 (go/net-mgmt_junos_exporter/junos_exporter-v0.15.4/v0.15.4.zip) = c1ad31eed4374c87f821c6a8dbf4f10dc390e7e1ead1321cae266d61f1f02fbd +SIZE (go/net-mgmt_junos_exporter/junos_exporter-v0.15.4/v0.15.4.zip) = 817263 diff --git a/net-mgmt/junos_exporter/files/junos_exporter.in b/net-mgmt/junos_exporter/files/junos_exporter.in new file mode 100644 index 000000000000..08c40a31fc58 --- /dev/null +++ b/net-mgmt/junos_exporter/files/junos_exporter.in @@ -0,0 +1,63 @@ +#!/bin/sh + +# PROVIDE: junos_exporter +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# junos_exporter_enable (bool): Set to NO by default. +# Set it to YES to enable junos_exporter. +# junos_exporter_user (string): Set user that junos_exporter will run under +# Default is "%%USERS%%". +# junos_exporter_group (string): Set group that junos_exporter will run under +# Default is "%%GROUPS%%". +# junos_exporter_args (string): Set extra arguments to pass to junos_exporter +# Default is "". +# junos_exporter_listen_address (string): Set ip:port that junos_exporter will listen on +# Default is "localhost:9326". +# junos_exporter_config (string): Set configuration file path for junos_exporter +# Default is "%%PREFIX%%/etc/junos_exporter.yml". + +. /etc/rc.subr + +name=junos_exporter +desc="junos_exporter for use with Prometheus" +rcvar=junos_exporter_enable + +load_rc_config $name + +: ${junos_exporter_enable:="NO"} +: ${junos_exporter_user:="%%USERS%%"} +: ${junos_exporter_group:="%%GROUPS%%"} +: ${junos_exporter_args:=""} +: ${junos_exporter_listen_address:="localhost:9326"} +: ${junos_exporter_config:="%%PREFIX%%/etc/junos_exporter.yml"} + +conf_file="--config.file=${junos_exporter_config}" + +pidfile=/var/run/junos_exporter.pid +command="/usr/sbin/daemon" +procname="%%PREFIX%%/bin/junos_exporter" +command_args="-f -p ${pidfile} -T ${name} \ + /usr/bin/env ${procname} \ + --web.listen-address=${junos_exporter_listen_address} \ + ${conf_file} \ + ${junos_exporter_args}" + +start_precmd=junos_exporter_startprecmd + +junos_exporter_startprecmd() +{ + if [ ! -e ${pidfile} ]; then + install \ + -o ${junos_exporter_user} \ + -g ${junos_exporter_group} \ + /dev/null ${pidfile}; + else + chown ${junos_exporter_user}:${junos_exporter_group} ${pidfile}; + fi +} + +run_rc_command "$1" diff --git a/net-mgmt/junos_exporter/files/pkg-message.in b/net-mgmt/junos_exporter/files/pkg-message.in new file mode 100644 index 000000000000..32dec87803e6 --- /dev/null +++ b/net-mgmt/junos_exporter/files/pkg-message.in @@ -0,0 +1,41 @@ +[ +{ type: install + message: <