Blame contrib/net-hosts/net-hosts

Packit 667938
#!/bin/sh
Packit 667938
##
Packit 667938
## OUTPUT_FILE has to have the same path with WorkDir value setted in the make-mrtg.cfg.awk file
Packit 667938
## MRTG_NETHOSTS_CFG has to be the same file declared in the make-mrtg.cfg.awk file
Packit 667938
## MRTG_EXECUTABLE is the MRTG executable file with full path
Packit 667938
## NETHOSTST_INTERNET_PATH is the path for internet IPs file (without / in the end) and has to be the same path declared in the make-mrtg.cfg.awk file
Packit 667938
## NETHOSTST_AWK_FILE is the make-mrtg.cfg.awk file with full path
Packit 667938
##
Packit 667938
MRTG_EXECUTABLE="/usr/local/mrtg/mrtg"
Packit 667938
NETHOSTST_INTERNET_PATH="/usr/local/mrtg/contrib/net-hosts"
Packit 667938
NETHOSTST_AWK_FILE="/usr/local/mrtg/contrib/net-hosts/make-mrtg.cfg.awk"
Packit 667938
##
Packit 667938
##
Packit 667938
/bin/cat $NETHOSTST_INTERNET_PATH/internet | /bin/awk -F: '{print $1}' | /usr/sbin/fping | /bin/awk -f $NETHOSTST_AWK_FILE
Packit 667938
##
Packit 667938
##
Packit 667938
#####################################################################################################
Packit 667938
## Index Maker in MRTG Style
Packit 667938
############################
Packit 667938
#
Packit 667938
# OUTPUT_FILE="/usr/local/mrtg/contrib/net-hosts/1/index.html"
Packit 667938
# MRTG_NETHOSTS_CFG="/usr/local/mrtg/contrib/net-hosts/mrtg-awk.cfg"
Packit 667938
#
Packit 667938
# /usr/local/mrtg/indexmaker -b "#ffffff" -1 -t 'Internet Nodes' -o $OUTPUT_FILE $MRTG_NETHOSTS_CFG
Packit 667938
#
Packit 667938
######################################################################################################