ZABBIX コマンドライン操作 のバックアップ(No.2)
- バックアップ一覧
- ソース を表示
- ZABBIX コマンドライン操作 は削除されています。
- 1 (2009-11-04 (水) 12:03:27)
- 2 (2009-11-04 (水) 13:13:03)
目次 †
はじめに †
ZABBIXはWeb UIからの操作を前提としているため、CLIから操作を行うことはできない。 ただし、トラブルの切り分けや作りこみに使用できるコマンドが準備されている。
zabbix_agentd †
監視している項目の一覧を出力 †
pオプションを使用することで監視している項目の一覧と、最新の値を表示することができる。
- コマンド書式
zabbix_agentd -p
- 読み方
:(コロン)の前が監視項目のキー値、後ろが最新の値となる。
最新の値の先頭に付くアルファベットはデータの型を示す。
t d s u m
- 出力結果
web.page.perf[localhost,,80]:[d|0.001123] web.page.regexp[localhost,,80,OK]:[s|OK] vfs.file.exists[/etc/passwd]:[u|1] vfs.file.time[/etc/passwd,modify]:[u|1241714910] vfs.file.size[/etc/passwd]:[u|1686] vfs.file.regexp[/etc/passwd,root]:[s|root] vfs.file.regmatch[/etc/passwd,root]:[u|1] vfs.file.cksum[/etc/passwd]:[u|1529457318] vfs.file.md5sum[/etc/passwd]:[s|51d4d76016f956674e91f8f3586766a9] net.tcp.dns[127.0.0.1,localhost]:[u|0] net.tcp.port[,80]:[u|1] system.hostname:[t|hostname] system.uname:[t|Linux serpent.asabiya.net 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux] system.users.num:[d|1.000000] log[logfile]:[m|Accessible only as active check!] eventlog[system]:[m|Accessible only as active check!] kernel.maxfiles:[u|204948] kernel.maxproc:[m|ZBX_NOTSUPPORTED] vfs.fs.size[/,free]:[u|374015140] vfs.fs.inode[/,free]:[u|117420748] vfs.dev.read[sda,operations]:[u|9301589] vfs.dev.write[sda,sectors]:[u|242819872] net.tcp.listen[80]:[m|ZBX_NOTSUPPORTED] net.if.in[lo,bytes]:[u|3634861721] net.if.out[lo,bytes]:[u|3634861721] net.if.total[lo,bytes]:[u|7269723442] net.if.collisions[lo]:[u|0] vm.memory.size[total]:[u|2115305472] proc.num[inetd,,,]:[u|0] proc.mem[inetd,,]:[u|0] system.cpu.switches:[m|ZBX_NOTSUPPORTED] system.cpu.intr:[u|7921015113] system.cpu.util[all,user,avg1]:[m|Collector is not started!] system.cpu.load[all,avg1]:[d|1.050000] system.cpu.num[online]:[u|4] system.swap.size[all,free]:[u|16147922944] system.swap.in[all]:[u|0] system.swap.out[all]:[u|0] system.uptime:[u|26780944] system.boottime:[u|1230526631] net.tcp.service[ssh,127.0.0.1,22]:[u|1] net.tcp.service.perf[ssh,127.0.0.1,22]:[d|0.014374]