← 返回命令列表

Linux command

sntop 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Monitor hosts defined in the default config

sntop

Poll hosts from a custom config every 10 seconds

sntop -r 10 -f [/path/to/hosts.conf]

Generate an HTML status page

sntop -w -e [/var/www/status.html]

说明

sntop is an ncurses-based console utility that polls a list of hosts at regular intervals using fping or ping and displays their online/offline status in a top-like table. It supports HTML generation, daemon mode, alarm script execution on host status changes, and color output.

参数

-r _TIME_
Set the polling interval in seconds.
-f _FILE_
Use a custom hosts configuration file.
-w
Enable HTML output mode.
-d
Run in daemon mode.

FAQ

What is the sntop command used for?

sntop is an ncurses-based console utility that polls a list of hosts at regular intervals using fping or ping and displays their online/offline status in a top-like table. It supports HTML generation, daemon mode, alarm script execution on host status changes, and color output.

How do I run a basic sntop example?

Run `sntop` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r _TIME_ do in sntop?

Set the polling interval in seconds.