您现在的位置是:首页 > 世界杯 >正文

双色球组选攻略 (关于双色球组选攻略 玩法)

发布时间:2022-11-23 09:09:51admin来源:世界杯

导读 NSClient++ 是 Nagios 监控系统在 Windows 下的客户端软件。Nagios是一个监视系统运行状态和网络信息的监视系统。Nagios能监视所指定...

NSClient++ 是 Nagios 监控系统在 Windows 下的客户端软件。Nagios是一个监视系统运行状态和网络信息的监视系统。Nagios能监视所指定的本地或远程主机以及服务,同时提供异常通知功能等

Nagios可运行在Linux/Unix平台之上,同时提供一个可选的基于浏览器的WEB界面以方便系统管理人员查看网络状态,各种系统问题,以及日志等等。

- 监视网络服务 (SMTP, POP3, HTTP, NNTP, PING等) - 监视主机资源 (进程, 磁盘等) - 简单的插件设计可以轻松扩展Nagios的监视功能 - 服务等监视的并发处理 - 错误通知功能 (通过email, pager, 或其他用户自定义方法) - 可指定自定义的事件处理控制器 - 可选的基于浏览器的WEB界面以方便系统管理人员查看网络状态,各种系统问题,以及日志等等

- 可以通过手机查看系统监控信息

NSClient++ 0.4.3.77 发布,此版本修复了一些问题,更新了文档,添加了一些小的新特性!NSClient++ 0.4.3 beta 1 (build 40) 发布,此版本可能是可用性改进最大的一次更新,作为一个小版本发布,但是 WEB-UI 方面的改进非常大!

Web UI

无论是新用户还是高级用户都可以很方便的配置 NSClient++:

改进的新 “测试模式”

重写了 WEB 测试客户端。

NRPE 增强

NRPE 实例默认启用多个包分支,提高了安全和认证的用户体验。提供了一个命令行客户端来配置 NRPE:

nscp nrpe installEnabling NRPE via SSH from: 127.0.0.1NRPE is currently reasonably secure using ${certificate-path}/certificate.pem and ${certificate-path}/certificate_key.pem.Arguments are NOT allowed.

重大改进:不再开箱支持 NRPE legacy

JSON!

所有的 protobuf 信息可以支持映射到对应的 protobuf 信息,这意味着你可以使用 JSON 代替 protobuf。

1.解压到: C:\NSClient++2.修改nsc.ini文件: allowed_hosts=192.168.X.X3.注册NSCient++的服务: nsclient++ /install4.在服务列表中找到NSClientpp的服务。双击打开该服务的配置窗口侧在登录分页中将“允许服务与桌面交互”勾选上。5.重启NSClientapp服务。

配置

#############Windows Nsclient############define service{use generic-servicehostgroup_name windows-serversservice_description Uptimecheck_command check_nt!UPTIME --> 系统运行时间}define service{use generic-servicehostgroup_name windows-serversservice_description CPU Loadcheck_command check_nt!CPULOAD!-l 5,80,90 --> 系统运行负载}define service{use generic-servicehostgroup_name windows-serversservice_description Memory Usagecheck_command check_nt!MEMUSE!-w 90 -c 95 -->系统内存占用量}

define service{use generic-servicehostgroup_name windows-serversservice_description C:\ Drive Spacecheck_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 -->系统C盘磁盘空间}define service{use generic-servicehostgroup_name windows-serversservice_description D:\ Drive Spacecheck_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90 -->系统D盘磁盘空间

define service{use generic-servicehost_name 192.168.185.4service_description MMLogOrdercheck_command check_nt!PROCSTATE!-d SHOWALL -l MakeMM.exe -->系统管理器中MakeMM.exe进程存活性}

排错:

有一台WINDOWS机器配好监控后显示下图

nsclient++ 安装 action-data=http%3A%2F%2Fs10.sinaimg.cn%2Fbmiddle%2F6d26f0a2gbfbcd9fe8069%26690 action-type=show-slide style=margin: 0px; padding: 0px; border: 0px; list-style: none; _src=https://www.topnews9.com/uploadfile/2022/1124/20221124102454242.jpg>

命令行测试发现

[root@all-wap service]# /usr/lib64/nagios/plugins/check_nt -H 192.168.145.3 -p 12489 -s xxx -v UPTIMENSClient - ERROR: Could not get value

远程(cmd --> mstsc)登录后执行下列命令发现(红色部分显示countername 没找到,貌似语言字符集问题)

C:\NSClient++>nsclient++ /test

d \PDHCollector.cpp(123) Found countername: CPU: \????(_total)\????d \NSClient++.cpp(773) Loading plugin: NRPE server...d \PDHCollector.cpp(124) Found countername: UPTIME: \????\????d \PDHCollector.cpp(125) Found countername: MCL: \????\????d \PDHCollector.cpp(126) Found countername: MCB: \????\????e \PDHCollector.cpp(133) Failed to open performance counters: \????(_total)\???: PdhAddCounter failed: -1073738824: 在系统上找不到指定的对象。d \PDHCollector.cpp(169) We aparently failed to load counters trying to use defult (English) counters or those configured in nsc.inie \PDHCollector.cpp(178) Failed to open performance counters: \Memory\Commit Liit: PdhAddCounter failed: -1073738824: The specified object is not found on thesystem.e \PDHCollector.cpp(212) No performance counters were found we will not wait fothe end instead...d \NSClient++.cpp(773) Loading plugin: NSClient server...e \Socket.h(645) bind failed: 10048: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。d \NSClient++.cpp(773) Loading plugin: SystemTray...

###################################

执行下列命令解决

C:\NSClient++>lodctr /R

<-- lodctr命令备注:

lodctr /R:

使用 还原 perf 注册表字符串和信息

lodctr /R

基于当前情况从头开始重建 perf 注册表字符串和信息

-->C:\NSClient++>NSClient++.exe -stopStopping service.C:\NSClient++>NSClient++.exe -startStarting NSClientpp

重启后在监控主机上测试显示获取数据成功

[root@all-wap service]# /usr/lib64/nagios/plugins/check_nt -H 192.168.145.3 -p 12489 -s xxx -v UPTIMESystem Uptime - 6 day(s) 0 hour(s) 7 minute(s)

双色球组选攻略

标签:双色球组选攻略

上一篇
下一篇