AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题

问题[monitoring](computer)

Martin Hope
berty
Asked: 2024-01-29 01:14:38 +0800 CST

在 Zabbix 中为 Proxmox 的 LXC 发现定义计算项,以计算所用 RAM 的百分比

  • 5

我使用 Zabbix (6.4.10) 和 Proxmox 插件来监控 proxmox 服务器(和 LXC 容器)。在LXC容器的发现规则中,有两个关于RAM的项目原型:

  • proxmox.lxc.maxmem[{#LXC.ID}]:内存总量(以字节为单位)
  • proxmox.lxc.mem[{#LXC.ID}]:内存使用量(以字节为单位)

我想要实现的是定义一个计算项原型以获取已用 RAM 的百分比(我想在 Grafana 仪表板中显示)。

我尝试使用这个公式: last(//proxmox.lxc.mem[{#LXC.ID}])/last(//proxmox.lxc.memtotal[{#LXC.ID}]) 但是当我测试它时收到此错误消息: Cannot evaluate function: item "/proxmox/proxmox.lxc.mem[{#LXC.ID}]" does not exist at "last(//proxmox.lxc.mem[{#LXC.ID}])/last(//proxmox.lxc.memtotal[{#LXC.ID}])".

我不明白为什么。该文档显示了一些计算项目的示例,但不在发现规则之内。也许我的语法不好,但我没有找到相关的例子来帮助我。

Proxmox LXC discovery 中定义的项目原型:

Proxmox LXC discovery 中定义的项目原型

我尝试定义一个计算项:

我尝试定义一个计算项

monitoring
  • 1 个回答
  • 40 Views
Martin Hope
greenfrogs
Asked: 2021-02-10 13:57:52 +0800 CST

802.11 a/b/g/n 适配器可以在监控模式下同时嗅探 abgn 流量吗?

  • 5

我有基于 rt5572 的 wifi 适配器,它支持 a/b/g/n。假设我有混合模式 wifi 网络,其中 AP 和 a、b、g、n wifi 客户端都在同一个网络中。

我的问题:

问题 1:如果我将我的 rt5572 wifi 适配器设置为监控模式并开始在空中嗅探 802.11 数据包,如果我的监控模式,我是否能够看到来自 a、b、g、n 客户端的所有管理帧、控制帧和数据帧适配器和他们在同一个频道?

问题2:如果我的wifi适配器在监控模式下可以捕获来自a、b、g、n个wifi客户端的同一通道中的所有a、b、g、n流量(包括数据流量,而不仅仅是传统速率的管理和控制帧) ,这怎么可能,因为 a,g,n PHY 层技术是 OFDM 而 802.11b PHY 层技术是 DSSS。即使 802.11b 使用不同的 PHY 调制,我的 WiFi 适配器是否会检测调制并相应地解码 a、b、g、n 流量?

这些是我进入 Kali 和 wifi 嗅探很久以来的问题。

wireless-networking monitoring
  • 1 个回答
  • 143 Views
Martin Hope
Martijn
Asked: 2020-09-17 09:39:27 +0800 CST

监控每个进程的 cpu 使用率

  • 6

我想随着时间的推移监控所有进程的 CPU 使用率。对于所有进程,我的意思是能够分别查看每个进程的 CPU 使用率。我希望以图表的形式查看结果,我更喜欢 Perfmon,但我对其他工具持开放态度。

monitoring perfmon
  • 1 个回答
  • 874 Views
Martin Hope
adsl
Asked: 2019-09-11 03:19:53 +0800 CST

使用 Sysmon 进行网络监控不会监控所有事件

  • 5

我使用 Sysmon 进行网络监控,但不是监控我请求的所有目的地,它只监控特定的目的地,而其余的则不受监控。我会解释 - 为了监控 google 和 github 访问,我编写了下一个配置:

<Sysmon schemaversion="4.21">
<HashAlgorithms>*</HashAlgorithms>
<CheckRevocation/>
<EventFiltering>
    <RuleGroup name="" groupRelation="or"><NetworkConnect onmatch="include">
        <DestinationHostname condition="contains">google.com</DestinationHostname>
        <DestinationHostname condition="contains">.github.com</DestinationHostname>
    </NetworkConnect></RuleGroup>
    <RuleGroup name="" groupRelation="or"><DnsQuery onmatch="include"></DnsQuery></RuleGroup>
    <RuleGroup name="" groupRelation="or"><ProcessCreate onmatch="include"></ProcessCreate></RuleGroup>
    <RuleGroup name="" groupRelation="or"><FileCreateTime onmatch="include"></FileCreateTime></RuleGroup>
    <RuleGroup name="" groupRelation="or"><ProcessTerminate onmatch="include"></ProcessTerminate></RuleGroup>
    <RuleGroup name="" groupRelation="or"><DriverLoad onmatch="include"></DriverLoad></RuleGroup>
    <RuleGroup name="" groupRelation="or"><ImageLoad onmatch="include"></ImageLoad></RuleGroup>
    <RuleGroup name="" groupRelation="or"><CreateRemoteThread onmatch="include"></CreateRemoteThread></RuleGroup>
    <RuleGroup name="" groupRelation="or"><RawAccessRead onmatch="include"></RawAccessRead></RuleGroup>
    <RuleGroup name="" groupRelation="or"><ProcessAccess onmatch="include"></ProcessAccess></RuleGroup>
    <RuleGroup name="" groupRelation="or"><FileCreate onmatch="include"></FileCreate></RuleGroup>
    <RuleGroup name="" groupRelation="or"><RegistryEvent onmatch="include"></RegistryEvent></RuleGroup>
    <RuleGroup name="" groupRelation="or"><FileCreateStreamHash onmatch="include"></FileCreateStreamHash></RuleGroup>
    <RuleGroup name="" groupRelation="or"><PipeEvent onmatch="include"></PipeEvent></RuleGroup>
    <RuleGroup name="" groupRelation="or"><WmiEvent onmatch="include"></WmiEvent></RuleGroup>
</EventFiltering>

并运行它

sysmon -i C:\temp\sysmon\config.xml -accepteula

接下来,我进入了 google.com 和 github.com,并检查了我的事件查看器的结果。Sysmon 咳嗽的唯一结果是来自 github.com,但没有来自 google.com 的活动被记录到事件日志中(总是这种情况,它同意监控 github 但不会监控 google)

我错过了什么?为什么我不能监控任何网站,有没有办法绕过它?

非常感谢!!!

networking monitoring
  • 1 个回答
  • 45 Views
Martin Hope
Quentin Rey
Asked: 2019-08-22 22:45:49 +0800 CST

监控/Centreon - SNMP 插件命令不适用于简单引用

  • 5

我在 Centreon 中的一个探测器(插件)有问题。

在我的轮询服务器上,我启动了这个命令:

/usr/bin/perl /usr/lib/nagios/plugins/centreon-plugins-master/centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=storage --hostname=XXX.XXX.XXX.XXX --warning-usage=80 --critical-usage=90 --snmp-version=2c --snmp-community=supervision --space-reservation=5 --verbose  --explode-perfdata-max --name --regexp --storage='^(?!(/mnt.*)$)'

它完美地工作。

当我在 Centreon 管理控制台中配置我的探测器并执行它时,出现错误:(执行命令失败)

/usr/bin/perl /usr/lib/nagios/plugins/centreon-plugins-master/centreon_plugins.pl
    --plugin=os::linux::snmp::plugin
    --mode=storage
    --hostname=XXX.XXX.XXX.XXX
    --warning-usage=80
    --critical-usage=90
    --snmp-version=2c
    --snmp-community=supervision
    --space-reservation=5
    --verbose 
    --explode-perfdata-max
    --name
    --regexp
    --storage='^(?!(/mnt.*)

它不起作用,因为它删除了我的正则表达式的最后一个简单引号。我试图搜索如何解决它,但实际上什么也没找到..

有人可以帮助我吗?:)

regex monitoring
  • 1 个回答
  • 626 Views
Martin Hope
Hikari
Asked: 2019-08-17 18:47:36 +0800 CST

使用命令的输出文本作为文件名

  • 5

curl http://v6.ipv6-test.com/api/myip.php返回我当前的 IPv6 地址。

我想将此字符串用作要创建的文件名的一部分,然后是脚本运行时的时间戳。

知道怎么做吗?

bash monitoring
  • 1 个回答
  • 58 Views
Martin Hope
Kirill
Asked: 2019-05-14 00:52:43 +0800 CST

Zabbix 在触发器中显示时削减自定义项的值

  • 5

我在设置触发器时遇到问题,它显示自定义项(字符串)的值。我不明白 Zabbix 为什么以及如何切断价值:

楼主没用。。。

有人可以帮忙吗?

monitoring zabbix
  • 1 个回答
  • 181 Views
Martin Hope
Magnetic_dud
Asked: 2019-05-07 09:30:16 +0800 CST

Munin snmp 插件:如何忽略计数器?

  • 5

我正在通过 munin snmp 插件监控打印机的使用情况。我通过键入配置它

sudo munin-node-configure --shell --snmp myprinter.example.com

这指示我创建一个符号链接

/usr/share/munin/plugins/snmp__print_supplies

问题是打印机在 -5000 级别报告“Waste Toner”(内部名称 supply1_2),这使得图表不可见

现在,这不应该发生,因为插件的源代码有这个功能:

sub wash_data {
    # Get rid of supply-levels reporting negative values
    foreach my $supply (keys (%supplies)) {
        if ($supplies{$supply}{level} < 0) {
            delete $supplies{$supply};
            print "# Deleting entry $supply: supply level unknown.\n" if $Munin::Plugin::SNMP::DEBUG;
        }
    }
}

我能做些什么来删除这个错误的数据,或者将“0”作为 Y 刻度的最小值?

monitoring snmp
  • 1 个回答
  • 117 Views
Martin Hope
JoaquínH
Asked: 2019-04-11 13:15:19 +0800 CST

Nagios Core 上的 HTTP 监控

  • 1

我正在尝试将主机添加到我的 Nagios Core 服务器 si 它检查其可用性的方式与您在 Nagios XI 上检查它的方式相同,因此我创建了我的.cfg文件,我添加了主机信息并尝试检查 .cfg 文件,但是每个我运行时/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg出现以下错误:

Website: https://www.nagios.org
Reading configuration data...
   Read main config file okay...
Error: Invalid max_check_attempts value for host 'myhost.com'
Error: Could not register host (config file '/usr/local/nagios/etc/objects/webpages.cfg', starting on line 7)
   Error processing object config files!


***> One or more problems were encountered while processing the config files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data definitions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.

我的webpages.cfg文件如下所示:

#########################################
#                                       #
#                Hosts                  #
#                                       #
#########################################

define host {
        use             generic-host
        host_name       myhost.com
        alias           myhost
        check_interval  1
        address         xxx.xxx.xxx.xxx
}

#########################################
#                                       #
#               Services                #
#                                       #
#########################################
define service {
            host_name                       myhost.com
            service_description             URL: myhost.com
            check_command                   check_http_url!http://myhost.com
            max_check_attempts              5
            check_interval                  3
            retry_interval                  1
            check_period                    24x7

monitoring network-monitoring nagios
  • 1 个回答
  • 2125 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve