<a href="https://docs.saltstack.com/en/latest/ref/returners/all/index.html" target="_blank">https://docs.saltstack.com/en/latest/ref/returners/all/index.html</a>
returners
description
carbon_return
Take data from salt and “return” it into a carbon receiver
cassandra_cql_return
Return data to a cassandra server
cassandra_return
Return data to a Cassandra ColumnFamily
couchbase_return
Simple returner for Couchbase.
couchdb_return
S imple returner for CouchDB.
django_return
A returner that will infor a Django system that returns are available using Django’s signal system.
elasticsearch_return
Return data to an elasticsearch server for indexing.
etcd_return
Return data to an etcd server or cluster
hipchat_return
Return salt data via hipchat.
influxdb_return
Return data to an influxdb server.
kafka_return
Return data to a Kafka topic
local
The local returner is used to test the returner interface, it just prints the
local_cache
Return data to local job cache
memcache_return
Return data to a memcache server
mongo_future_return
Return data to a mongodb server
mongo_return
multi_returner
Read/Write multiple returners
mysql
Return data to a mysql server
nagios_return
Return salt data to Nagios
odbc
Return data to an ODBC compliant server.
pgjsonb
Return data to a PostgreSQL server with json data stored in Pg’s jsonb data type
postgres
Return data to a postgresql server
postgres_local_cache
Use a postgresql server for the master job cache.
pushover_returner
rawfile_json
Take data from salt and “return” it into a raw file containing the json, with one line per event.
redis_return
Return data to a redis server
sentry_return
Salt returner that reports execution results back to sentry.
slack_returner
Return salt data via slack
sms_return
Return data by SMS.
smtp_return
Return salt data via email
splunk
Send json response data to Splunk via the HTTP Event Collector
sqlite3_return
Insert minion return data into a sqlite3 database
syslog_return
Return data to the host operating system’s syslog facility
xmpp_return
Return salt data via xmpp
zabbix_return
Return salt data to Zabbix
因mysql returner使用需要python MySQLdb子產品,是以需要先安裝MySQLdb子產品。
在下列位址下載下傳安裝包。
<a href="https://pypi.python.org/pypi/pip/" target="_blank">https://pypi.python.org/pypi/pip/</a>
使用官方的資料表結構,并給minion伺服器相關權限。
<code>/etc/salt/master</code>
重新開機master和minion服務
master端執行指令。
在資料庫中檢視,salt_returns是否有資料進來。
本文轉自 ygqygq2 51CTO部落格,原文連結:http://blog.51cto.com/ygqygq2/1933921,如需轉載請自行聯系原作者