telegraf-1.5.2-1 > 6 6 ` d 6 3 !S2ӹ}~cҞ }~*@:l5aqUf4"XfN+|9ow+5_XFe[]-x}xaý,>o+pd^KJJdkyұl5Ƕ(Uȝ<\|[ نb*Wb |>`t<}sQ!ჯφLvk'CmEJ\a/D.f!rHw- 䅦-e{_Jq8]??a#KqTQ$k45|JNRDi_3>sQ{QZrrׂt\^.O*u`6iV(n>J*UO 1h4݉&ҽϥ-@{ _1A4nBDZEr)%V]EӬpጤih7^:rf9DqyswvTGƿ4>_k3kv$XЁ-q/`sǂ7!'34501e20a17c00ea1929ce92340f3f9539079eb5 3 !S2ӹ}~cҞ }~y uO3p7|'e5h6Y1p{Ze͈{!%XU7ẸkG%bF%V@qurWD$@؟ o";!,7[a{ZKv"ai_ؗnT} _\98CܟK1֩mN (RP/e ªL4U#%lHĜl?_О]"yla,({'NFb]&Vy$/$sIՀKA)/in=R?NM[Xt1#r-H^;P}VbDHؽRe?6v, 2n[s==&W6>/)d25xg,So5C\X,q߀$uI_"m1n>Ţ|V[aUk{S$ɰN :dԨ{k\|NߧDt X: > 9 $ ? $} d S w , : H d 0 S v V ( k = r > z ? @ G H I J X Y \ ] ^ M b d e f l $u C telegraf 1.5.2 1 Plugin-driven server agent for reporting metrics into InfluxDB. Plugin-driven server agent for reporting metrics into InfluxDB. Zpbox50.localdomain X6InfluxData MIT support@influxdb.com default https://github.com/influxdata/telegraf linux armel #!/bin/bash if [[ -d /etc/opt/telegraf ]]; then # Legacy configuration found if [[ ! -d /etc/telegraf ]]; then # New configuration does not exist, move legacy configuration to new location echo -e "Please note, Telegraf's configuration is now located at '/etc/telegraf' (previously '/etc/opt/telegraf')." mv -vn /etc/opt/telegraf /etc/telegraf if [[ -f /etc/telegraf/telegraf.conf ]]; then backup_name="telegraf.conf.$(date +%s).backup" echo "A backup of your current configuration can be found at: /etc/telegraf/${backup_name}" cp -a "/etc/telegraf/telegraf.conf" "/etc/telegraf/${backup_name}" fi fi fi #!/bin/bash BIN_DIR=/usr/bin LOG_DIR=/var/log/telegraf SCRIPT_DIR=/usr/lib/telegraf/scripts LOGROTATE_DIR=/etc/logrotate.d function install_init { cp -f $SCRIPT_DIR/init.sh /etc/init.d/telegraf chmod +x /etc/init.d/telegraf } function install_systemd { cp -f $SCRIPT_DIR/telegraf.service $1 systemctl enable telegraf || true systemctl daemon-reload || true } function install_update_rcd { update-rc.d telegraf defaults } function install_chkconfig { chkconfig --add telegraf } if ! grep "^telegraf:" /etc/group &>/dev/null; then groupadd -r telegraf fi if ! id telegraf &>/dev/null; then useradd -r -M telegraf -s /bin/false -d /etc/telegraf -g telegraf fi test -d $LOG_DIR || mkdir -p $LOG_DIR chown -R -L telegraf:telegraf $LOG_DIR chmod 755 $LOG_DIR # Remove legacy symlink, if it exists if [[ -L /etc/init.d/telegraf ]]; then rm -f /etc/init.d/telegraf fi # Remove legacy symlink, if it exists if [[ -L /etc/systemd/system/telegraf.service ]]; then rm -f /etc/systemd/system/telegraf.service fi # Add defaults file, if it doesn't exist if [[ ! -f /etc/default/telegraf ]]; then touch /etc/default/telegraf fi # Add .d configuration directory if [[ ! -d /etc/telegraf/telegraf.d ]]; then mkdir -p /etc/telegraf/telegraf.d fi # Distribution-specific logic if [[ -f /etc/redhat-release ]] || [[ -f /etc/SuSE-release ]]; then # RHEL-variant logic if [[ "$(readlink /proc/1/exe)" == */systemd ]]; then install_systemd /usr/lib/systemd/system/telegraf.service else # Assuming SysVinit install_init # Run update-rc.d or fallback to chkconfig if not available if which update-rc.d &>/dev/null; then install_update_rcd else install_chkconfig fi fi elif [[ -f /etc/debian_version ]]; then # Debian/Ubuntu logic if [[ "$(readlink /proc/1/exe)" == */systemd ]]; then install_systemd /lib/systemd/system/telegraf.service deb-systemd-invoke restart telegraf.service || echo "WARNING: systemd not running." else # Assuming SysVinit install_init # Run update-rc.d or fallback to chkconfig if not available if which update-rc.d &>/dev/null; then install_update_rcd else install_chkconfig fi invoke-rc.d telegraf restart fi elif [[ -f /etc/os-release ]]; then source /etc/os-release if [[ $ID = "amzn" ]]; then # Amazon Linux logic install_init # Run update-rc.d or fallback to chkconfig if not available if which update-rc.d &>/dev/null; then install_update_rcd else install_chkconfig fi fi fi #!/bin/bash BIN_DIR=/usr/bin # Distribution-specific logic if [[ -f /etc/debian_version ]]; then # Debian/Ubuntu logic if [[ "$(readlink /proc/1/exe)" == */systemd ]]; then deb-systemd-invoke stop telegraf.service else # Assuming sysv invoke-rc.d telegraf stop fi fi #!/bin/bash function disable_systemd { systemctl disable telegraf rm -f $1 } function disable_update_rcd { update-rc.d -f telegraf remove rm -f /etc/init.d/telegraf } function disable_chkconfig { chkconfig --del telegraf rm -f /etc/init.d/telegraf } if [[ -f /etc/redhat-release ]] || [[ -f /etc/SuSE-release ]]; then # RHEL-variant logic if [[ "$1" = "0" ]]; then # InfluxDB is no longer installed, remove from init system rm -f /etc/default/telegraf if [[ "$(readlink /proc/1/exe)" == */systemd ]]; then disable_systemd /usr/lib/systemd/system/telegraf.service else # Assuming sysv disable_chkconfig fi fi elif [[ -f /etc/debian_version ]]; then # Debian/Ubuntu logic if [ "$1" == "remove" -o "$1" == "purge" ]; then # Remove/purge rm -f /etc/default/telegraf if [[ "$(readlink /proc/1/exe)" == */systemd ]]; then disable_systemd /lib/systemd/system/telegraf.service else # Assuming sysv # Run update-rc.d or fallback to chkconfig if not available if which update-rc.d &>/dev/null; then disable_update_rcd else disable_chkconfig fi fi fi elif [[ -f /etc/os-release ]]; then source /etc/os-release if [[ $ID = "amzn" ]]; then # Amazon Linux logic if [[ "$1" = "0" ]]; then # InfluxDB is no longer installed, remove from init system rm -f /etc/default/telegraf disable_chkconfig fi fi fi Vp@ L AA ZpZpZpZpZpZpZpe8b654479dc3f727652531061f818f7a 1b6304c623545676a66ac929c53857ed 8e2b1f34eb8d75e78ee902451d028ec3 ac859a0cef245b2350ceac18c21034ea 3558a9c63f6e6c8183df39bf1d7f7fa1 root root root root root root root root root root root root root root telegraf-1.5.2-1.src.rpm telegraf coreutils shadow-utils /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh rpmlib(PayloadFilesHavePrefix) rpmlib(CompressedFileNames) 4.0-1 3.0.4-1 4.11.1 /bin/sh /bin/sh /bin/sh /bin/sh / 1.5.2-1 telegraf telegraf.conf telegraf.d telegraf init.sh telegraf.service telegraf /etc/logrotate.d/ /etc/telegraf/ /usr/bin/ /usr/lib/telegraf/scripts/ /var/log/ -O2 -g cpio gzip 9 %{_target_platform} #!/bin/bash BIN_DIR=/usr/bin LOG_DIR=/var/log/telegraf SCRIPT_DIR=/usr/lib/telegraf/scripts LOGROTATE_DIR=/etc/logrotate.d function install_init { cp -f $SCRIPT_DIR/init.sh /etc/init.d/telegraf chmod +x /etc/init.d/telegraf } function install_systemd { cp -f $SCRIPT_DIR/telegraf.service $1 systemctl enable telegraf || true systemctl daemon-reload || true } function install_update_rcd { update-rc.d telegraf defaults } function install_chkconfig { chkconfig --add telegraf } if ! grep "^telegraf:" /etc/group &>/dev/null; then groupadd -r telegraf fi if ! id telegraf &>/dev/null; then useradd -r -M telegraf -s /bin/false -d /etc/telegraf -g telegraf fi test -d $LOG_DIR || mkdir -p $LOG_DIR chown -R -L telegraf:telegraf $LOG_DIR chmod 755 $LOG_DIR # Remove legacy symlink, if it exists if [[ -L /etc/init.d/telegraf ]]; then rm -f /etc/init.d/telegraf fi # Remove legacy symlink, if it exists if [[ -L /etc/systemd/system/telegraf.service ]]; then rm -f /etc/systemd/system/telegraf.service fi # Add defaults file, if it doesn't exist if [[ ! -f /etc/default/telegraf ]]; then touch /etc/default/telegraf fi # Add .d configuration directory if [[ ! -d /etc/telegraf/telegraf.d ]]; then mkdir -p /etc/telegraf/telegraf.d fi # Distribution-specific logic if [[ -f /etc/redhat-release ]] || [[ -f /etc/SuSE-release ]]; then # RHEL-variant logic if [[ "$(readlink /proc/1/exe)" == */systemd ]]; then install_systemd /usr/lib/systemd/system/telegraf.service else # Assuming SysVinit install_init # Run update-rc.d or fallback to chkconfig if not available if which update-rc.d &>/dev/null; then install_update_rcd else install_chkconfig fi fi elif [[ -f /etc/debian_version ]]; then # Debian/Ubuntu logic if [[ "$(readlink /proc/1/exe)" == */systemd ]]; then install_systemd /lib/systemd/system/telegraf.service deb-systemd-invoke restart telegraf.service || echo "WARNING: systemd not running." else # Assuming SysVinit install_init # Run update-rc.d or fallback to chkconfig if not available if which update-rc.d &>/dev/null; then install_update_rcd else install_chkconfig fi invoke-rc.d telegraf restart fi elif [[ -f /etc/os-release ]]; then source /etc/os-release if [[ $ID = "amzn" ]]; then # Amazon Linux logic install_init # Run update-rc.d or fallback to chkconfig if not available if which update-rc.d &>/dev/null; then install_update_rcd else install_chkconfig fi fi fi /bin/sh ? p zֵ(.?VR jVGn]^$D" %+m~dg\eI{Vw*b9}q{=G?5??]_9^lݤuȫJqJɤO$4xA?q:fiY$UQ>E6o!˫*ͫ{)͋,ɓsc#֣#ctGy+4|H'"<{SAUiLt1I`\Ii0K"A\$$"WE>o3NF|Q A **BFHݟQOe0[U0L\0s<`(!7:w/qg@x>i"-`M)hQoՂNv_&IpwWv n)8$YRa.۴3=fQ&4;!̴a vP9nD̓l aN.߄y0lRdX~az [\G68r -fä(iy>M5 ͧ1 "9<@ #sfiP3rҫsIwZtY\OMe-/1;AkQv:|K;cH+1혚ԺG7ؾqy|13y](ZTsb8Փw?<*^L+D+xdDҬJ XKL ΪWʴE6.!]k\.2UvN0{( @۽^;6?W', 76 Fn;a\asXMyY1 QqT?$>vTE>N ]vaCvD2VW`m4Q0PWWIMYjqn k#E ;7%r1qrap:Q Qsļiw.48SoL/LdVjpʝ%.מ=~K+8Х7n38T L>G$}U:3Ma{&ޑq9(S8ȑ q4u_^xBa#h%%{V/"ߟ|X)DtF*x#6\f>RYb z%L;6l1cª>|Z~lְE:Q7{?ID³;m R,fFVq6J#@1