Index: head/net-mgmt/Makefile =================================================================== --- head/net-mgmt/Makefile (revision 514677) +++ head/net-mgmt/Makefile (revision 514678) @@ -1,421 +1,422 @@ # $FreeBSD$ # 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 += arpalert SUBDIR += arpscan SUBDIR += arpwatch SUBDIR += arts++ SUBDIR += bandwidthd SUBDIR += bgpq SUBDIR += bgpq3 SUBDIR += bgpuma SUBDIR += blackbox_exporter 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 += ccnet-server 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 += chillispot SUBDIR += choparp SUBDIR += cidr SUBDIR += ciscoconf SUBDIR += clog SUBDIR += cnagios SUBDIR += cnagios4 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 += fetchconfig SUBDIR += flow-extract 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 += librenms-agent 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 += mysqld_exporter SUBDIR += nagcon SUBDIR += nagios SUBDIR += nagios-certexp-plugin 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_memcached_paranoid 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 += 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 += netwox SUBDIR += netxms SUBDIR += nfdump 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 += nstreams SUBDIR += nvidia_gpu_prometheus_exporter SUBDIR += observium SUBDIR += ocsinventory-agent SUBDIR += ocsinventory-ocsreports SUBDIR += ocsinventory-server SUBDIR += omping SUBDIR += onionlauncher 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-GRNOC-Config SUBDIR += p5-GRNOC-TL1 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 += pdagent-integrations SUBDIR += percona-monitoring-plugins SUBDIR += pftabled SUBDIR += php71-snmp SUBDIR += php72-snmp SUBDIR += php73-snmp SUBDIR += php74-snmp 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-ciscoconfparse SUBDIR += py-dnsdiag 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-pdagent SUBDIR += py-prometheus-client SUBDIR += py-pyIOSXR SUBDIR += py-pyang SUBDIR += py-pyeapi SUBDIR += py-pynsca SUBDIR += py-pynxos SUBDIR += py-pysmi SUBDIR += py-pysnmp SUBDIR += py-pysnmp-mibs SUBDIR += py-pyzabbix SUBDIR += py-snmp_passpersist SUBDIR += py-snmpclitools SUBDIR += py-yapsnmp 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-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 += scli SUBDIR += sdig SUBDIR += seafile-client SUBDIR += seafile-gui SUBDIR += seafile-server SUBDIR += semaphore SUBDIR += send SUBDIR += sendip SUBDIR += sipcalc SUBDIR += sjitter SUBDIR += smokeping SUBDIR += snmp++ SUBDIR += snmp4nagios SUBDIR += snmptt SUBDIR += softflowd SUBDIR += spectools SUBDIR += ssgless SUBDIR += statsd SUBDIR += statsite SUBDIR += subcalc SUBDIR += super_mediator SUBDIR += sysmon SUBDIR += tcpreplay SUBDIR += tcptrack SUBDIR += telegraf SUBDIR += thanos SUBDIR += tornova SUBDIR += torrus SUBDIR += triton-guesttools SUBDIR += unbound_exporter SUBDIR += unifi-devel SUBDIR += unifi-lts SUBDIR += unifi5 SUBDIR += victorops-nagios SUBDIR += virt-viewer SUBDIR += wdiag SUBDIR += whatmask SUBDIR += wifimgr SUBDIR += wmi-client SUBDIR += xymon-client SUBDIR += xymon-server SUBDIR += yaf SUBDIR += zabbix22-agent SUBDIR += zabbix22-frontend SUBDIR += zabbix22-java SUBDIR += zabbix22-proxy SUBDIR += zabbix22-server 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 += zabbix42-agent SUBDIR += zabbix42-frontend SUBDIR += zabbix42-java SUBDIR += zabbix42-proxy SUBDIR += zabbix42-server SUBDIR += zabbix44-agent SUBDIR += zabbix44-frontend SUBDIR += zabbix44-java SUBDIR += zabbix44-proxy SUBDIR += zabbix44-server .include Index: head/net-mgmt/ping_exporter/Makefile =================================================================== --- head/net-mgmt/ping_exporter/Makefile (nonexistent) +++ head/net-mgmt/ping_exporter/Makefile (revision 514678) @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= ping_exporter +DISTVERSION= 0.44 +CATEGORIES= net-mgmt + +MAINTAINER= jp+ports@supplntr.io +COMMENT= Prometheus exporter for ICMP echo requests + +LICENSE= APACHE20 + +USES= go +USE_GITHUB= yes +GH_ACCOUNT= czerwonk + +GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} +GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME} + +USE_RC_SUBR= ping_exporter + +post-install: + ${INSTALL_DATA} ${PATCHDIR}/ping_exporter.yml.sample \ + ${STAGEDIR}${PREFIX}/etc/ping_exporter.yml.sample + +.include Property changes on: head/net-mgmt/ping_exporter/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/ping_exporter/distinfo =================================================================== --- head/net-mgmt/ping_exporter/distinfo (nonexistent) +++ head/net-mgmt/ping_exporter/distinfo (revision 514678) @@ -0,0 +1,3 @@ +TIMESTAMP = 1571270240 +SHA256 (czerwonk-ping_exporter-0.44_GH0.tar.gz) = 03d0c825fdb8d3c8701743897726ad7960879211238135363879161bbdcd06a7 +SIZE (czerwonk-ping_exporter-0.44_GH0.tar.gz) = 4595291 Property changes on: head/net-mgmt/ping_exporter/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/ping_exporter/files/ping_exporter.in =================================================================== --- head/net-mgmt/ping_exporter/files/ping_exporter.in (nonexistent) +++ head/net-mgmt/ping_exporter/files/ping_exporter.in (revision 514678) @@ -0,0 +1,67 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: ping_exporter +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# ping_exporter_enable (bool): Set to NO by default. +# Set it to YES to enable ping_exporter. +# ping_exporter_user (string): Set user that ping_exporter will run under +# Default is "nobody". +# ping_exporter_group (string): Set group that ping_exporter will run under +# Default is "nobody". +# ping_exporter_args (string): Set extra arguments to pass to ping_exporter +# Default is "". +# ping_exporter_listen_address (string):Set ip:port that ping_exporter will listen on +# Default is "localhost:9427". +# ping_exporter_config (string): Set configuration file of ping_exporter +# Default is "%%PREFIX%%/etc/ping_exporter.yml". +# ping_exporter_log_file (string): Set log file of ping_exporter +# Default is "/var/log/ping_exporter.log". + +. /etc/rc.subr + +name=ping_exporter +desc="Ping exporter for use with Prometheus" +rcvar=ping_exporter_enable + +load_rc_config $name + +: ${ping_exporter_enable:=NO} +: ${ping_exporter_user:=nobody} +: ${ping_exporter_group:=nobody} +: ${ping_exporter_listen_address=localhost:9427} +: ${ping_exporter_config="%%PREFIX%%/etc/ping_exporter.yml"} +: ${ping_exporter_log_file=/var/log/ping_exporter.log} + +required_files="${ping_exporter_config}" +pidfile=/var/run/ping_exporter.pid +command=/usr/sbin/daemon +procname="%%PREFIX%%/bin/ping_exporter" +command_args="-p ${pidfile} /usr/bin/env ${procname} \ + -web.listen-address ${ping_exporter_listen_address} \ + -config.path ${ping_exporter_config} \ + ${ping_exporter_args} >> ${ping_exporter_log_file} 2>&1" + +start_precmd=ping_exporter_startprecmd + +ping_exporter_startprecmd() +{ + if [ ! -e ${pidfile} ]; then + install -o ${ping_exporter_user} -g ${ping_exporter_group} /dev/null ${pidfile}; + else + chown ${ping_exporter_user}:${ping_exporter_group} ${pidfile}; + fi + if [ ! -e ${ping_exporter_log_file} ]; then + install -o ${ping_exporter_user} -g ${ping_exporter_group} -m 640 /dev/null ${ping_exporter_log_file}; + else + chown ${ping_exporter_user}:${ping_exporter_group} ${ping_exporter_log_file}; + fi +} + +run_rc_command "$1" Property changes on: head/net-mgmt/ping_exporter/files/ping_exporter.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/ping_exporter/files/ping_exporter.yml.sample =================================================================== --- head/net-mgmt/ping_exporter/files/ping_exporter.yml.sample (nonexistent) +++ head/net-mgmt/ping_exporter/files/ping_exporter.yml.sample (revision 514678) @@ -0,0 +1,14 @@ +targets: + - one.one.one.one + - google-public-dns-a.google.com + - google-public-dns-b.google.com + +dns: + refresh: 2m15s + nameserver: 1.1.1.1 + +ping: + interval: 2s + timeout: 3s + history-size: 42 + payload-size: 120 Property changes on: head/net-mgmt/ping_exporter/files/ping_exporter.yml.sample ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/ping_exporter/pkg-descr =================================================================== --- head/net-mgmt/ping_exporter/pkg-descr (nonexistent) +++ head/net-mgmt/ping_exporter/pkg-descr (revision 514678) @@ -0,0 +1,7 @@ +Prometheus exporter for ICMP echo requests. + +This is a simple server that scrapes go-ping stats and exports them via HTTP +for Prometheus consumption. The go-ping library is build and maintained by +Digineo GmbH. + +WWW: https://github.com/czerwonk/ping_exporter Property changes on: head/net-mgmt/ping_exporter/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-mgmt/ping_exporter/pkg-plist =================================================================== --- head/net-mgmt/ping_exporter/pkg-plist (nonexistent) +++ head/net-mgmt/ping_exporter/pkg-plist (revision 514678) @@ -0,0 +1,2 @@ +bin/ping_exporter +@sample %%ETCDIR%%.yml.sample Property changes on: head/net-mgmt/ping_exporter/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property