SlideShare a Scribd company logo
1 of 25
Download to read offline
nouka inventory manager
Toshiaki Baba
toshiaki@netmark.jp / @netmarkjp
Inventory management software




   http://en.wikipedia.org/wiki/Inventory_management_software
Microsoft Excel
(´Д`)
inventory management

               ¤  Microsoft Excel is VERY
                   GOOD USEFUL PRODUCT

               ¤  but we need AUTOMATIC
                   PERIODIC update

               ¤  and I love Linux and OSS
inventory management

¤  AUTOMATIC update

¤  PERIODIC update

¤  focus to Linux machines

¤  OSS
nouka inventry manager
nouka family
•  nouka data collector

•  naya data store
                             naya
•  yaoya data convertor


push command result                 crawl


                                                output
                                        yaoya
                     nouka
nouka data collector

¤  pure python 2.4

¤  run with python
    standard library

¤  POST result to naya
    with HTTP

¤  if use cron,
    AUTOMATIC
    PERIODIC update
    comes true!
nouka default commands

¤    command_ifconfig     = ifconfig -a           ¤    command_dmidecode = /usr/sbin/dmidecode

¤    command_hostname        = hostname           ¤    command_resolv   = cat /etc/resolv.conf

¤    command_uname         = uname -a             ¤    command_passwd    = cat /etc/passwd

¤    command_df         = df -akl                 ¤    command_group    = cat /etc/group

¤    command_iptables     = /sbin/iptables-save   ¤    command_shadow     = cat /etc/shadow

¤    command_rpm         = rpm -qa                ¤    command_proc_cpuinfo   = cat /proc/cpuinfo

¤    command_chkconfig = /sbin/chkconfig --list   ¤    command_proc_meminfo    = cat /proc/meminfo

¤    command_ip_addr       = /sbin/ip addr show   ¤    command_proc_mounts    = cat /proc/mounts

¤    command_ip_route     = /sbin/ip route show
                                                   To add command, just only
                                                   define in nouka.conf!
naya data store

¤  fluentd / td-agent

¤  fluent-plugin-http-enhanced
  ¤  https://github.com/parolkar/fluent-plugin-http-enhanced

¤  fluent-plugin-mongo

¤  mongodb
yaoya data convertor

¤  python 2.6 + pymongo 2.2

¤  CLI tool (GUI tool: yaoyacontrib-webif)

¤  output format
  ¤  JSON
  ¤  CSV
  ¤  chkconfig matrix(CSV)
  ¤  rpm matrix(CSV)
yaoya output example(1)

¤  $ bin/yaoya --group system_A --name command_uname

{u'return_code': u'0', u'command_line': u'uname -a', u'execute_at':
u'1339942622', u'group_name': u'system_A', u'visible': u'True', u'host_name':
u'bb-mba.local', u'time': datetime.datetime(2012, 6, 17, 14, 17, 3), u'output':
u'Darwin bb-mba.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7
16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386n', u'_id':
ObjectId('4fdde6e0c286630ca0000009'), u'command_name':
u'command_uname'}

{u'return_code': u'0', u'command_line': u'uname -a', u'execute_at':
u'1339943547', u'group_name': u'system_A', u'visible': u'True', u'host_name':
u'bbtest-c6', u'time': datetime.datetime(2012, 6, 17, 14, 32, 28), u'output':
u'Linux bbtest-c6 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST
2012 x86_64 x86_64 x86_64 GNU/Linuxn', u'_id': ObjectId
('4fddea7dc286630ca000003c'), u'command_name': u'command_uname'}
yaoya output example(2)

¤  $ bin/csv --group system_A --name command_uname

"bb-mba.local","Darwin bb-mba.local 10.8.0 Darwin Kernel
Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011;
root:xnu-1504.15.3~1/RELEASE_I386 i386"

"bbtest-c6","Linux bbtest-c6 2.6.32-220.13.1.el6.x86_64 #1
SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/
Linux"
getting started
project repository

¤  nouka
  ¤  https://bitbucket.org/netmarkjp/nouka

¤  yaoya
  ¤  https://bitbucket.org/netmarkjp/yaoya

¤  yaoyacontrib-webif
  ¤  https://bitbucket.org/netmarkjp/yaoyacontrib-webif
steps

1.  setup naya

2.  setup nouka

3.  run nouka
setup naya @center server(1/2)

¤  td-agent
  ¤  cat <<EOT >/etc/yum.repos.d/td.repo
      [treasuredata]
      name=TreasureData
      baseurl=http://packages.treasure-data.com/redhat/
      $basearch
      gpgcheck=0
      EOT
  ¤  yum -y install td-agent
  ¤  /usr/lib64/fluent/ruby/bin/gem install bson_ext
  ¤  /usr/lib64/fluent/ruby/bin/gem install fluent-plugin-http-
      enhanced
setup naya @center server(2/2)

¤  mongod
   ¤  cat <<EOT >/etc/yum.repos.d/10gen.repo
       [10gen]
       name=10gen Repository
       baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/
       x86_64
       gpgcheck=0
       EOT
   ¤  yum -y install mongo-10gen.x86_64 mongo-10gen-server.x86_64

¤  mercurial
   ¤  yum -y install python-devel python-setuptools gcc
   ¤  pip install mercurial
setup nouka @client

¤  curl https://bitbucket.org/netmarkjp/nouka/get/
    tip.tar.gz|tar xf –

¤  vi netmarkjp-nouka-*/conf/nouka.conf
   ¤  change server_url, group_name

¤  netmarkjp-nouka-*/bin/nouka

¤  (set cron if you need)
inside nouka
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>’, ***

}
enjoy development!

More Related Content

What's hot

ByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalivedByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalivedredhat9
 
NUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline TutorialNUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline TutorialGagah Arifianto
 
Redis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your applicationRedis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your applicationrjsmelo
 
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템Sam Kim
 
Object Storage with Gluster
Object Storage with GlusterObject Storage with Gluster
Object Storage with GlusterGluster.org
 
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club UkraineKubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club UkraineElixir Club
 
Linux-Fu for PHP Developers
Linux-Fu for PHP DevelopersLinux-Fu for PHP Developers
Linux-Fu for PHP DevelopersLorna Mitchell
 
37562259 top-consuming-process
37562259 top-consuming-process37562259 top-consuming-process
37562259 top-consuming-processskumner
 
От sysV к systemd
От sysV к systemdОт sysV к systemd
От sysV к systemdDenis Kovalev
 
Profiling and optimizing go programs
Profiling and optimizing go programsProfiling and optimizing go programs
Profiling and optimizing go programsBadoo Development
 
Proxy server ubuntu 12.04
Proxy server ubuntu 12.04Proxy server ubuntu 12.04
Proxy server ubuntu 12.04Tio Aldiansyah
 
Install odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debianInstall odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debianFrancisco Servera
 
Redis as a message queue
Redis as a message queueRedis as a message queue
Redis as a message queueBrandon Lamb
 
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)Ontico
 
Pf: the OpenBSD packet filter
Pf: the OpenBSD packet filterPf: the OpenBSD packet filter
Pf: the OpenBSD packet filterGiovanni Bechis
 
Linux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkgLinux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkgKenny (netman)
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04mikehie
 
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04Febi Gelar Ramadhan
 

What's hot (20)

ByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalivedByPat博客出品Lvs+keepalived
ByPat博客出品Lvs+keepalived
 
NUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline TutorialNUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline Tutorial
 
Redis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your applicationRedis & ZeroMQ: How to scale your application
Redis & ZeroMQ: How to scale your application
 
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템
도커 없이 컨테이너 만들기 5편 마운트 네임스페이스와 오버레이 파일시스템
 
Object Storage with Gluster
Object Storage with GlusterObject Storage with Gluster
Object Storage with Gluster
 
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club UkraineKubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
Kubernetes + Docker + Elixir - Alexei Sholik, Andrew Dryga | Elixir Club Ukraine
 
Linux-Fu for PHP Developers
Linux-Fu for PHP DevelopersLinux-Fu for PHP Developers
Linux-Fu for PHP Developers
 
37562259 top-consuming-process
37562259 top-consuming-process37562259 top-consuming-process
37562259 top-consuming-process
 
От sysV к systemd
От sysV к systemdОт sysV к systemd
От sysV к systemd
 
Profiling and optimizing go programs
Profiling and optimizing go programsProfiling and optimizing go programs
Profiling and optimizing go programs
 
Apache
ApacheApache
Apache
 
Proxy server ubuntu 12.04
Proxy server ubuntu 12.04Proxy server ubuntu 12.04
Proxy server ubuntu 12.04
 
Install odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debianInstall odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debian
 
Redis as a message queue
Redis as a message queueRedis as a message queue
Redis as a message queue
 
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
 
Pf: the OpenBSD packet filter
Pf: the OpenBSD packet filterPf: the OpenBSD packet filter
Pf: the OpenBSD packet filter
 
Linux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkgLinux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkg
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
 
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
Instalasi Network Monitoring System (Nagios) Ubuntu 12.04
 
Comets notes
Comets notesComets notes
Comets notes
 

Similar to nouka inventry manager

php & performance
 php & performance php & performance
php & performancesimon8410
 
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014biicode
 
PHP & Performance
PHP & PerformancePHP & Performance
PHP & Performance毅 吕
 
AMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion PassengerAMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion Passengericemobile
 
2012 coscup - Build your PHP application on Heroku
2012 coscup - Build your PHP application on Heroku2012 coscup - Build your PHP application on Heroku
2012 coscup - Build your PHP application on Herokuronnywang_tw
 
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google CloudDrupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google CloudDropsolid
 
glance replicator
glance replicatorglance replicator
glance replicatoririx_jp
 
Deploying Symfony | symfony.cat
Deploying Symfony | symfony.catDeploying Symfony | symfony.cat
Deploying Symfony | symfony.catPablo Godel
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newYiwei Ma
 
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionRuby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionFabio Kung
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalabilityWim Godden
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with AnsibleRayed Alrashed
 
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...Nagios
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04SANTIAGO HERNÁNDEZ
 
Node.js basics
Node.js basicsNode.js basics
Node.js basicsBen Lin
 
Using Nix and Docker as automated deployment solutions
Using Nix and Docker as automated deployment solutionsUsing Nix and Docker as automated deployment solutions
Using Nix and Docker as automated deployment solutionsSander van der Burg
 
Systemtap
SystemtapSystemtap
SystemtapFeng Yu
 
Toolbox of a Ruby Team
Toolbox of a Ruby TeamToolbox of a Ruby Team
Toolbox of a Ruby TeamArto Artnik
 

Similar to nouka inventry manager (20)

php & performance
 php & performance php & performance
php & performance
 
Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014Dependencies Managers in C/C++. Using stdcpp 2014
Dependencies Managers in C/C++. Using stdcpp 2014
 
PHP & Performance
PHP & PerformancePHP & Performance
PHP & Performance
 
AMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion PassengerAMS Node Meetup December presentation Phusion Passenger
AMS Node Meetup December presentation Phusion Passenger
 
2012 coscup - Build your PHP application on Heroku
2012 coscup - Build your PHP application on Heroku2012 coscup - Build your PHP application on Heroku
2012 coscup - Build your PHP application on Heroku
 
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google CloudDrupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
 
glance replicator
glance replicatorglance replicator
glance replicator
 
Deploying Symfony | symfony.cat
Deploying Symfony | symfony.catDeploying Symfony | symfony.cat
Deploying Symfony | symfony.cat
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 new
 
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionRuby and Rails Packaging to Production
Ruby and Rails Packaging to Production
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
Basic Linux kernel
Basic Linux kernelBasic Linux kernel
Basic Linux kernel
 
IT Automation with Ansible
IT Automation with AnsibleIT Automation with Ansible
IT Automation with Ansible
 
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
Nagios Conference 2014 - Rob Hassing - How To Maintain Over 20 Monitoring App...
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
 
PHP selber bauen
PHP selber bauenPHP selber bauen
PHP selber bauen
 
Node.js basics
Node.js basicsNode.js basics
Node.js basics
 
Using Nix and Docker as automated deployment solutions
Using Nix and Docker as automated deployment solutionsUsing Nix and Docker as automated deployment solutions
Using Nix and Docker as automated deployment solutions
 
Systemtap
SystemtapSystemtap
Systemtap
 
Toolbox of a Ruby Team
Toolbox of a Ruby TeamToolbox of a Ruby Team
Toolbox of a Ruby Team
 

More from Toshiaki Baba

プロジェクトとプロジェクトマネジメントの基本
プロジェクトとプロジェクトマネジメントの基本プロジェクトとプロジェクトマネジメントの基本
プロジェクトとプロジェクトマネジメントの基本Toshiaki Baba
 
L tbaba@bphbqp2012公開用
L tbaba@bphbqp2012公開用L tbaba@bphbqp2012公開用
L tbaba@bphbqp2012公開用Toshiaki Baba
 
CloudFront構築事例 ハートビーツ 20121025
CloudFront構築事例 ハートビーツ 20121025CloudFront構築事例 ハートビーツ 20121025
CloudFront構築事例 ハートビーツ 20121025Toshiaki Baba
 
#cross2012 クラウドCROSS
#cross2012 クラウドCROSS#cross2012 クラウドCROSS
#cross2012 クラウドCROSSToshiaki Baba
 
ITインフラエンジニア業界説明@東北大学 HB馬場 のコピー
ITインフラエンジニア業界説明@東北大学 HB馬場 のコピーITインフラエンジニア業界説明@東北大学 HB馬場 のコピー
ITインフラエンジニア業界説明@東北大学 HB馬場 のコピーToshiaki Baba
 
hbstudy@bpstudy#50 配布用
hbstudy@bpstudy#50 配布用hbstudy@bpstudy#50 配布用
hbstudy@bpstudy#50 配布用Toshiaki Baba
 
Webサーバ勉強会
Webサーバ勉強会Webサーバ勉強会
Webサーバ勉強会Toshiaki Baba
 
見せます、私の道具箱@Janog26
見せます、私の道具箱@Janog26見せます、私の道具箱@Janog26
見せます、私の道具箱@Janog26Toshiaki Baba
 
AIIT学生会主催勉強会 クラウドのお話
AIIT学生会主催勉強会 クラウドのお話AIIT学生会主催勉強会 クラウドのお話
AIIT学生会主催勉強会 クラウドのお話Toshiaki Baba
 
物理サーバとクラウドの運用管理の違い 2010 03 24 馬場
物理サーバとクラウドの運用管理の違い 2010 03 24 馬場物理サーバとクラウドの運用管理の違い 2010 03 24 馬場
物理サーバとクラウドの運用管理の違い 2010 03 24 馬場Toshiaki Baba
 
地に足がついたクラウドのお話
地に足がついたクラウドのお話地に足がついたクラウドのお話
地に足がついたクラウドのお話Toshiaki Baba
 
インフラエンジニア勉強会hbstudyについて
インフラエンジニア勉強会hbstudyについてインフラエンジニア勉強会hbstudyについて
インフラエンジニア勉強会hbstudyについてToshiaki Baba
 
インフラエンジニアになろう!
インフラエンジニアになろう!インフラエンジニアになろう!
インフラエンジニアになろう!Toshiaki Baba
 

More from Toshiaki Baba (15)

プロジェクトとプロジェクトマネジメントの基本
プロジェクトとプロジェクトマネジメントの基本プロジェクトとプロジェクトマネジメントの基本
プロジェクトとプロジェクトマネジメントの基本
 
Jslug20141222馬場
Jslug20141222馬場Jslug20141222馬場
Jslug20141222馬場
 
L tbaba@bphbqp2012公開用
L tbaba@bphbqp2012公開用L tbaba@bphbqp2012公開用
L tbaba@bphbqp2012公開用
 
CloudFront構築事例 ハートビーツ 20121025
CloudFront構築事例 ハートビーツ 20121025CloudFront構築事例 ハートビーツ 20121025
CloudFront構築事例 ハートビーツ 20121025
 
#cross2012 クラウドCROSS
#cross2012 クラウドCROSS#cross2012 クラウドCROSS
#cross2012 クラウドCROSS
 
ITインフラエンジニア業界説明@東北大学 HB馬場 のコピー
ITインフラエンジニア業界説明@東北大学 HB馬場 のコピーITインフラエンジニア業界説明@東北大学 HB馬場 のコピー
ITインフラエンジニア業界説明@東北大学 HB馬場 のコピー
 
hbstudy@bpstudy#50 配布用
hbstudy@bpstudy#50 配布用hbstudy@bpstudy#50 配布用
hbstudy@bpstudy#50 配布用
 
Webサーバ勉強会
Webサーバ勉強会Webサーバ勉強会
Webサーバ勉強会
 
見せます、私の道具箱@Janog26
見せます、私の道具箱@Janog26見せます、私の道具箱@Janog26
見せます、私の道具箱@Janog26
 
AIIT学生会主催勉強会 クラウドのお話
AIIT学生会主催勉強会 クラウドのお話AIIT学生会主催勉強会 クラウドのお話
AIIT学生会主催勉強会 クラウドのお話
 
物理サーバとクラウドの運用管理の違い 2010 03 24 馬場
物理サーバとクラウドの運用管理の違い 2010 03 24 馬場物理サーバとクラウドの運用管理の違い 2010 03 24 馬場
物理サーバとクラウドの運用管理の違い 2010 03 24 馬場
 
地に足がついたクラウドのお話
地に足がついたクラウドのお話地に足がついたクラウドのお話
地に足がついたクラウドのお話
 
インフラエンジニア勉強会hbstudyについて
インフラエンジニア勉強会hbstudyについてインフラエンジニア勉強会hbstudyについて
インフラエンジニア勉強会hbstudyについて
 
インフラエンジニアになろう!
インフラエンジニアになろう!インフラエンジニアになろう!
インフラエンジニアになろう!
 
BP Study #16
BP Study #16BP Study #16
BP Study #16
 

Recently uploaded

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

nouka inventry manager

  • 1. nouka inventory manager Toshiaki Baba toshiaki@netmark.jp / @netmarkjp
  • 2. Inventory management software http://en.wikipedia.org/wiki/Inventory_management_software
  • 5.
  • 6.
  • 7. inventory management ¤  Microsoft Excel is VERY GOOD USEFUL PRODUCT ¤  but we need AUTOMATIC PERIODIC update ¤  and I love Linux and OSS
  • 8. inventory management ¤  AUTOMATIC update ¤  PERIODIC update ¤  focus to Linux machines ¤  OSS
  • 10. nouka family •  nouka data collector •  naya data store naya •  yaoya data convertor push command result crawl output yaoya nouka
  • 11. nouka data collector ¤  pure python 2.4 ¤  run with python standard library ¤  POST result to naya with HTTP ¤  if use cron, AUTOMATIC PERIODIC update comes true!
  • 12. nouka default commands ¤  command_ifconfig = ifconfig -a ¤  command_dmidecode = /usr/sbin/dmidecode ¤  command_hostname = hostname ¤  command_resolv = cat /etc/resolv.conf ¤  command_uname = uname -a ¤  command_passwd = cat /etc/passwd ¤  command_df = df -akl ¤  command_group = cat /etc/group ¤  command_iptables = /sbin/iptables-save ¤  command_shadow = cat /etc/shadow ¤  command_rpm = rpm -qa ¤  command_proc_cpuinfo = cat /proc/cpuinfo ¤  command_chkconfig = /sbin/chkconfig --list ¤  command_proc_meminfo = cat /proc/meminfo ¤  command_ip_addr = /sbin/ip addr show ¤  command_proc_mounts = cat /proc/mounts ¤  command_ip_route = /sbin/ip route show To add command, just only define in nouka.conf!
  • 13. naya data store ¤  fluentd / td-agent ¤  fluent-plugin-http-enhanced ¤  https://github.com/parolkar/fluent-plugin-http-enhanced ¤  fluent-plugin-mongo ¤  mongodb
  • 14. yaoya data convertor ¤  python 2.6 + pymongo 2.2 ¤  CLI tool (GUI tool: yaoyacontrib-webif) ¤  output format ¤  JSON ¤  CSV ¤  chkconfig matrix(CSV) ¤  rpm matrix(CSV)
  • 15. yaoya output example(1) ¤  $ bin/yaoya --group system_A --name command_uname {u'return_code': u'0', u'command_line': u'uname -a', u'execute_at': u'1339942622', u'group_name': u'system_A', u'visible': u'True', u'host_name': u'bb-mba.local', u'time': datetime.datetime(2012, 6, 17, 14, 17, 3), u'output': u'Darwin bb-mba.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386n', u'_id': ObjectId('4fdde6e0c286630ca0000009'), u'command_name': u'command_uname'} {u'return_code': u'0', u'command_line': u'uname -a', u'execute_at': u'1339943547', u'group_name': u'system_A', u'visible': u'True', u'host_name': u'bbtest-c6', u'time': datetime.datetime(2012, 6, 17, 14, 32, 28), u'output': u'Linux bbtest-c6 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linuxn', u'_id': ObjectId ('4fddea7dc286630ca000003c'), u'command_name': u'command_uname'}
  • 16. yaoya output example(2) ¤  $ bin/csv --group system_A --name command_uname "bb-mba.local","Darwin bb-mba.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386" "bbtest-c6","Linux bbtest-c6 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/ Linux"
  • 18. project repository ¤  nouka ¤  https://bitbucket.org/netmarkjp/nouka ¤  yaoya ¤  https://bitbucket.org/netmarkjp/yaoya ¤  yaoyacontrib-webif ¤  https://bitbucket.org/netmarkjp/yaoyacontrib-webif
  • 19. steps 1.  setup naya 2.  setup nouka 3.  run nouka
  • 20. setup naya @center server(1/2) ¤  td-agent ¤  cat <<EOT >/etc/yum.repos.d/td.repo [treasuredata] name=TreasureData baseurl=http://packages.treasure-data.com/redhat/ $basearch gpgcheck=0 EOT ¤  yum -y install td-agent ¤  /usr/lib64/fluent/ruby/bin/gem install bson_ext ¤  /usr/lib64/fluent/ruby/bin/gem install fluent-plugin-http- enhanced
  • 21. setup naya @center server(2/2) ¤  mongod ¤  cat <<EOT >/etc/yum.repos.d/10gen.repo [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/ x86_64 gpgcheck=0 EOT ¤  yum -y install mongo-10gen.x86_64 mongo-10gen-server.x86_64 ¤  mercurial ¤  yum -y install python-devel python-setuptools gcc ¤  pip install mercurial
  • 22. setup nouka @client ¤  curl https://bitbucket.org/netmarkjp/nouka/get/ tip.tar.gz|tar xf – ¤  vi netmarkjp-nouka-*/conf/nouka.conf ¤  change server_url, group_name ¤  netmarkjp-nouka-*/bin/nouka ¤  (set cron if you need)
  • 24. 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>’, *** }