我已经构建了一个 Nagios 远程主机监控设置(非 NRPE),它功能强大且有用,除了:
不知何故,我发现 Nagios 主机登录到各种远程主机,只是在一秒钟后(如果不是在同一秒内)注销,每 3 分钟左右一次;它多久执行一次似乎不是确定性的。这些登录与我定义的任何检查周期不一致。
从我的远程主机阵列的 auth.log 的任意成员:
Feb 25 10:51:11 MACHINE sshd[3590]: Accepted publickey for nagios from 10.1.2.110 port 54069 ssh2
Feb 25 10:51:11 MACHINE sshd[3590]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Feb 25 10:51:11 MACHINE sshd[3599]: Received disconnect from 10.1.2.110: 11: disconnected by user
Feb 25 10:51:11 MACHINE sshd[3590]: pam_unix(sshd:session): session closed for user nagios
然后,三分钟后:
Feb 25 10:54:10 MACHINE sshd[3632]: Accepted publickey for nagios from 10.1.2.110 port 54176 ssh2
Feb 25 10:54:10 MACHINE sshd[3632]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Feb 25 10:54:10 MACHINE sshd[3642]: Received disconnect from 10.1.2.110: 11: disconnected by user
Feb 25 10:54:10 MACHINE sshd[3632]: pam_unix(sshd:session): session closed for user nagios
我想不通。我的服务遵循通用服务模板,我已对其进行了修改,以延长检查间隔和最大检查尝试次数。为什么 Nagios 在这个串行登录狂潮中?