Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
net-hosts
Package: mrtg-2.13.2.zip [view]
Upload User: shbosideng
Upload Date: 2013-05-04
Package Size: 1555k
Code Size: 1k
Category:
SNMP
Development Platform:
C/C++
- #!/bin/sh
- ##
- ## OUTPUT_FILE has to have the same path with WorkDir value setted in the make-mrtg.cfg.awk file
- ## MRTG_NETHOSTS_CFG has to be the same file declared in the make-mrtg.cfg.awk file
- ## MRTG_EXECUTABLE is the MRTG executable file with full path
- ## 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
- ## NETHOSTST_AWK_FILE is the make-mrtg.cfg.awk file with full path
- ##
- MRTG_EXECUTABLE="/usr/local/mrtg/mrtg"
- NETHOSTST_INTERNET_PATH="/usr/local/mrtg/contrib/net-hosts"
- NETHOSTST_AWK_FILE="/usr/local/mrtg/contrib/net-hosts/make-mrtg.cfg.awk"
- ##
- ##
- /bin/cat $NETHOSTST_INTERNET_PATH/internet | /bin/awk -F: '{print $1}' | /usr/sbin/fping | /bin/awk -f $NETHOSTST_AWK_FILE
- ##
- ##
- #####################################################################################################
- ## Index Maker in MRTG Style
- ############################
- #
- # OUTPUT_FILE="/usr/local/mrtg/contrib/net-hosts/1/index.html"
- # MRTG_NETHOSTS_CFG="/usr/local/mrtg/contrib/net-hosts/mrtg-awk.cfg"
- #
- # /usr/local/mrtg/indexmaker -b "#ffffff" -1 -t 'Internet Nodes' -o $OUTPUT_FILE $MRTG_NETHOSTS_CFG
- #
- ######################################################################################################