This document provides instructions for setting up and using an agri inventory system called nouka and yaoya. Nouka collects data from servers using commands and sends it to the naya data store, which uses fluentd and MongoDB. It explains the components, data formats, and provides steps to get the required software and set up the system.
7. nouka data collector
pure python 2.4
run with python standard library
POST result to naya with HTTP
8. naya data store
fluentd / td-agent
fluent-plugin-http-enhanced
https://github.com/parolkar/fluent-plugin-http-enhanced
fluent-plugin-mongo
mongodb
9. data format
{ *** are same value in same execution
‘group_name’ : ‘<group_name’s value in config file>‘, ***
'host_name' : '<env HOSTNAME>', ***
'command_name' : '<command name in config file. named command_*>',
'command_line' : '<command line(value) in config file>',
'output' : '<output of command line>',
'return_code' : '<return code of command line>',
‘visible’ : ‘True’, ***
'execute_at' : '<execute date as unixtime>’, ***
}