0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

monitコマンドのチートシート

Posted at

[概要]

Monitコマンドの使用方法をまとめます。

コマンド構文

記号 意味
{hoge} 必須パラメーターを囲みます
[fuga] オプション・パラメーターを囲みます
| 2 つ以上の項目を区切り、その内1つだけを選択できることを示す

ヘルプの確認方法

$ monit --help

[事前準備]

  • CentOS7環境に構築した、Monitを使用

[作業内容]

バージョン確認方法

### 大文字のVで確認
$ sudo monit -V
This is Monit version 5.14
Copyright (C) 2001-2015 Tildeslash Ltd. All Rights Reserved.

### または、--version でも可能
$ sudo monit --version
This is Monit version 5.14
Copyright (C) 2001-2015 Tildeslash Ltd. All Rights Reserved.

ステータスの確認

$ monit status
The Monit daemon 5.14 uptime: 21m

System 'server1'
  status                            Running
  monitoring status                 Monitored
  load average                      [0.00] [0.01] [0.05]
  cpu                               0.0%us 0.0%sy 0.0%wa
  memory usage                      80.7 MB [16.5%]
  swap usage                        1.3 MB [0.1%]
  data collected                    Sun, 27 Nov 2016 07:20:16

[事後確認・作業]

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?