Home

ANSIBLE-1

  • Category: 電腦相關
  • Last Updated: Friday, 11 March 2016 16:20
  • Published: Monday, 14 September 2015 17:05
  • Written by sam

最近發現似乎用不到CHEF這麼大且需要HOST和CLIENT架構的輔助軟體

當然它還是有很方便的地方,例如可以在HOST看狀態等等

看了最近的DEVOPS介紹發現ANSIBLE實在是比較符合

先寫一個小PLAYBOOK測試一下

ansible-playbook checkmirror.yml

##### Update showterm link to Https #####

Read more: ANSIBLE-1

OPENNMS CUSTOM SERVICE

  • Category: 電腦相關
  • Last Updated: Friday, 11 September 2015 13:59
  • Published: Friday, 11 September 2015 13:57
  • Written by sam

 

通常在使用OPENNMS來作監控時,內建的系統常常只有"通用"的SERVICE PORT

許多的自行定義服務及埠號,都必要靠自己建立

照著圖片點下

 photo 2015-09-10_170815_zpsohyqer23.jpg

 photo 2015-09-10_170806_zpsuoo458l9.jpg

 photo 2015-09-10_170838_zpsrqf8debh.jpg

 photo 2015-09-10_170823_zpszr1ubsbg.jpg

這邊要指定埠號及多久逾時、重試次數

 photo 2015-09-10_171035_zpsgsslthro.jpg  photo 2015-09-10_172718_zpsaxtzgcyl.jpg

Read more: OPENNMS CUSTOM SERVICE

mac cron launchctl & OSX FTP LOG

  • Category: 電腦相關
  • Last Updated: Friday, 21 August 2015 16:11
  • Published: Friday, 07 August 2015 09:23
  • Written by sam

幫mac mini 安排行程

目前較新式的系統皆已預設停止cron的運作

要安排新的服務通常是使用launchctl 指令來控制

需要先在路徑新建立.plist

dev:~ samlin$ cat Library/LaunchAgents/com.apple.samsync.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<plist version="1.0">
     <dict>
       <key>Label</key>
       <string>samsync</string>
       <key>Program</key>
       <array>
          <string>/Users/samlin/aaaaa</string>
       </array>
       <key>StartInterval</key>
       <integer>180</integer>
       <key>RunAtLoad</key>
       <true/>
     </dict>
</plist>
Read more: mac cron launchctl & OSX FTP LOG