Baixe o app para aproveitar ainda mais
Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
Zabbix-Network-Monitoring-Second-Edition-master/.gitattributes # Auto detect text files and perform LF normalization * text=auto # Custom for Visual Studio *.cs diff=csharp # Standard to msysgit *.doc diff=astextplain *.DOC diff=astextplain *.docx diff=astextplain *.DOCX diff=astextplain *.dot diff=astextplain *.DOT diff=astextplain *.pdf diff=astextplain *.PDF diff=astextplain *.rtf diff=astextplain *.RTF diff=astextplain Zabbix-Network-Monitoring-Second-Edition-master/.gitignore # Windows image file caches Thumbs.db ehthumbs.db # Folder config file Desktop.ini # Recycle Bin used on file shares $RECYCLE.BIN/ # Windows Installer files *.cab *.msi *.msm *.msp # Windows shortcuts *.lnk # ========================= # Operating System Files # ========================= # OSX # ========================= .DS_Store .AppleDouble .LSOverride # Thumbnails ._* # Files that might appear in the root of a volume .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns # Directories potentially created on remote AFP share .AppleDB .AppleDesktop Network Trash Folder Temporary Items .apdisk Zabbix-Network-Monitoring-Second-Edition-master/B03407_04_code/01_snmptraps.sh # "Database lookups" section; # add in snmptraps.sh the following lines after the "community" assignment line zabbixhost=$(HOME=/root mysql -N -e "select host from zabbix.hosts left join zabbix.interface on zabbix.hosts.hostid=zabbix.interface.hostid where ip='$hostname' order by 'hostid' limit 1;" 2>/dev/null) [[ $zabbixhost ]] && HOST=$zabbixhost Zabbix-Network-Monitoring-Second-Edition-master/B03407_04_code/02_snmptraps.sh # "Database lookups" section; # replace in the snmptraps.sh previously inserted 3 lines with the following zabbixhostid=$(HOME=/root mysql -N -e "select hosts.hostid,host from zabbix.hosts left join zabbix.interface on zabbix.hosts.hostid=zabbix.interface.hostid where ip='$hostname' order by 'hostid' limit 1;" 2>/dev/null) zabbixhost=$(echo $zabbixhostid | cut -d" " -f2-) [[ "$zabbixhost" ]] && { trapoid=$(echo $oid | cut -d: -f3) HOST=$zabbixhost trapoid=$(echo $oid | cut -d: -f3) if [ "$trapoid" ]; then zabbixid=$(echo $zabbixhostid | cut -d" " -f1) zabbixitem=$(HOME=/root mysql -N -e "select key_ from zabbix.items where key_='$trapoid' and hostid='$zabbixid';" 2> /dev/null) if [ "$zabbixitem" ]; then KEY=$zabbixitem fi fi } Zabbix-Network-Monitoring-Second-Edition-master/B03407_09_code/01_generate_images for imagenum in {01..50}; do convert -font DejaVu-Sans-Mono-Bold -gravity center -size 52x24 -background transparent -pointsize 32 label:"$imagenum" "$imagenum".png done Zabbix-Network-Monitoring-Second-Edition-master/B03407_15_code/01_generate_values.sh #!/bin/bash hostname="IT services" time_period=$[3600*24*365] # 365 days interval=3600 # one hour probability=100 current_time=$(date "+%s") for item_key in code_repo warehouse_analytics ticketing; do [[ -f $item_key.txt ]] && { echo "file $item_key.txt already exists" exit } for ((value_timestamp=$current_time-$time_period; value_timestamp<$current_time; value_timestamp=value_timestamp+$interval)); do echo "\"$hostname\" $item_key $value_timestamp $([[ $(($RANDOM%$probability)) < 1 ]] && echo 0 || echo 1)" >> $item_key.txt done done Zabbix-Network-Monitoring-Second-Edition-master/LICENSE MIT License Copyright (c) 2016 Packt Publishing Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Zabbix-Network-Monitoring-Second-Edition-master/README.md # Zabbix Network Monitoring Second Edition [Zabbix Network Monitoring Second Edition](https://www.packtpub.com/networking-and-servers/zabbix-network-monitoring-second-edition?utm_source=github&utm_medium=repository&utm_campaign=9781782161288) by Packt Publishing ##Instructions and Navigation This is the code repository for [Zabbix Network Monitoring Second Edition](https://www.packtpub.com/networking-and-servers/zabbix-network-monitoring-second-edition?utm_source=github&utm_medium=repository&utm_campaign=9781782161288), published by Packt. It contains all the supporting project files necessary to work through the book from start to finish. The code files are organized according to the chapters in the book. ``` This book isn't heavy on code - there are just a few script snippets here and there. To figure out how to use them, please consult the corresponding chapter. ``` ##Related Zabbix Network Monitoring Products: * [Mastering Zabbix](https://www.packtpub.com/networking-and-servers/mastering-zabbix?utm_source=github&utm_medium=repository&utm_campaign=9781783283491) * [Zabbix Network Monitoring Essentials](https://www.packtpub.com/networking-and-servers/zabbix-network-monitoring-essentials?utm_source=github&utm_medium=repository&utm_campaign=9781784399764) * [Zabbix Network Monitoring Essentials [Video]](https://www.packtpub.com/networking-and-servers/zabbix-network-monitoring-essentials-video?utm_source=github&utm_medium=repository&utm_campaign=9781782165507)
Compartilhar