![](/img/trans.png)
[英]Nmap with packet statistics
我正在創建應該 ping 雲實例並收集數據包數據的程序,因此為了避免 ping 和不得不打開 ICMP,我們決定使用 NMAP,但挑戰在於使用 NMAP 我不確定哪個選項可以顯示數據包統計信息。 我試過 $nmap -sn hostname 但它沒有產生任何關於數據包的信息。 ...
[英]Nmap with packet statistics
我正在創建應該 ping 雲實例並收集數據包數據的程序,因此為了避免 ping 和不得不打開 ICMP,我們決定使用 NMAP,但挑戰在於使用 NMAP 我不確定哪個選項可以顯示數據包統計信息。 我試過 $nmap -sn hostname 但它沒有產生任何關於數據包的信息。 ...
[英]datadog local check setup same as check_mk local check for monitoring
我想設置 datadog 本地檢查(與 check_mk 本地檢查相同) https://docs.checkmk.com/latest/en/localchecks.html作為示例,當我在 shell 腳本中回顯結果作為參數拳頭參數時,好的,溫暖,check_mk 中的關鍵,然后第二個參數作為服 ...
[英]Web UI for Nagios says "Not Running" although it is
我自己整理了幾天,所以尋找一兩個指針。 我正在運行 Nagios 4.4.6 並決定升級到 4.4.9。 我下載了源代碼並構建並安裝了更新。 一切都很順利。 我檢查了 Nagios 是否正在運行,確實如此。 然后我重新啟動了 Apache。 Nagios 的 UI 已經啟動並運行,但是它顯示的版本 ...
[英]Centreon not printing output from bash script
我有一個 bash 腳本,可以在本地服務器上正確檢查和顯示結果,但是當使用 Centreon 的圖形網絡時,消息是空的我使用 echo 作為從 main 調用的函數的輸出 ...
[英]Nagios Custom Script for finding defunct processes
目標:檢查僵屍進程,但如果發現任何僵屍進程屬於帳戶 nagios,則忽略它們。 如果發現僵屍進程屬於 nagios 帳戶以外的帳戶,則發出警報。 目前在 nrds.cfg 中有以下 nagios 檢查以查找僵屍進程。 command[Check_ZombieProcs]=/opt/tools/nag ...
[英]Centreon - missing part of output in Resource Status Information column
我創建了使用 nmap 從主機收集數據的簡單腳本。 這是腳本: 當我在 shell 中運行此腳本時,我的 output 是: 確定:10.10.10.1 - 主機已啟動(0.024 秒延遲)。 但是在 Centreon web GUI 中,當我檢查該主機的資源狀態時,信息列僅顯示: 好的:10.10 ...
[英]No output returned from plugin in centreon when using Python PyRfc library
我為centreon 編寫了python 腳本的骨架。 問題是腳本工作正常,直到我導入 pyrfc 庫,這是該腳本的關鍵。 如果沒有這個庫,centreon 會返回一個綠色的 OK 消息,這很好。 一旦庫在那里,它返回 No output 從插件返回。 如果我通過用戶中心引擎下的操作系統運行腳本, ...
[英]Include hostgroups in nagios notifications
我試圖在我的 nagios 通知中包含主機組。 我修改了 commands.cfg notify_host_by_email 命令以包括 但這似乎不起作用。 我只是在我的 email 中獲得主機組:$。 有誰知道這樣做的正確方法? ...
[英]What is the thruk version compatible with Oracle Linux 8.5
我正在使用 OEL 8.5 Linux 發行版並收到以下錯誤:'usr/bin/perl:符號查找錯誤:/usr/lib64/thruk/perl5/x86_64-linux-thread-multi/auto/Cpanel/JSON/XS/ XS.so: undefined symbol: Per ...
[英]nagios - nsclient - nsca - host_check message
我已經配置了一些客戶端使用 nsca 向 Nagios 發送數據,因為我無法從服務器連接到客戶端。 我能夠實現我想要的一切,但最后一件事並不是我想要的。 主機檢查/狀態信息沒有附加我想要的消息。 這是我的 nsclient.ini 配置文件: 在 nagios 服務器中,我看到這些消息: ...
[英]Nagios - adding spaces/tabs/newline Between arguments of Service Check Command
為了提高可讀性,我想在服務的檢查命令中的參數周圍添加空格。 運行 nagios 檢查會輸出一個錯誤,因為它似乎想要所有東西都在一個 likeso 上: 一行 check_command 定義 但是我想像這樣指定檢查命令:單獨的行檢查命令 ...
[英]NagiosXI docker container: return code of 13 is out of bounds
我不斷收到標題錯誤。 (見圖) nagios 圖像 但是,我已授予我的 sh 腳本所有權限(以 nagios 為所有者的 chmod 777)。 我的腳本在 nagios 核心容器上也可以正常工作,但是使用 nagios xi docker 容器時,它就搞砸了。 這是圖片中我的腳本的權限以供證明 ...
[英]Remote execution of command in Python
我絕不會經常編寫腳本,但我正在嘗試編寫一個 Nagios 插件來檢查遠程主機上 RAID 控制器的狀態。 問題是獲取輸出的命令需要提升的權限。 什么是正確且最有效的方法來實現這一目標? 目標是運行: '/opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -a ...
[英]SSL Handshake error on Nagios NRPE server
我的 centos 服務器上有 nrpe(NRPE v4.0.3)。 我正在使用 prometheus 來監控 nrpe 檢查。 Nrpe-exporter 作為 docker 容器運行,但我在 nrpe-exporter 容器日志中看到以下錯誤 所以我進入 /etc/nagios/nrpe. ...
[英]How to decide warning and critical levels in nagios?
有人可以告訴我應該根據什么來決定檢查 nagios 的警告和臨界級別。 我想在支票發出嚴重警告之前收到警告 state 的通知。 我正在執行的檢查是 check_es_logs,即彈性搜索日志。性能數據如下: ...
[英]Nagios Core - How can I show the graph icons up with pnp4nagios?
我的 Nagios Core 服務器是 Ubuntu 20.04 LTS 設備,我安裝了 pnp4nagios 插件並且運行良好,圖表顯示在“http://@IP/pnp4nagios/”頁面上。 但是,我想在這里將圖形圖標放在 Nagios Core(在“服務”菜單中)上,但我不知道該怎么做。 ...
[英]pynag with python3.6 TypeError
我正在嘗試按如下方式讀取我的 nagios 配置數據: 這將返回錯誤 TypeError: endswith first arg must be bytes or a tuple of bytes 到目前為止,從我讀到的內容來看,這似乎與文件在 python3 中的打開方式有關。你知道如何糾正這個 ...
[英]Perl Unescaped left brace in regex issue - nagios check_multi
我正在嘗試運行一個名為 check_multi 的 nagios 檢查腳本,它在 Perl 的舊版本下運行良好,但在新版本下運行良好。 我收到消息 Unescaped left brace in regex is deprecated here (and will be fatal in Perl ...
[英]nrpe[xxxxx]: Warning: Could not set effective GID
我無法得到我在 /var/log/messages 中收到的警告消息的原因: 這是我的配置: 我不知道為什么nrpe試圖將 UID:GID 設置為 997:994(這是 nagios 用戶的 UID:GID)。 我正在運行 Centos 7.9.2009 雖然它不影響任何東西(至少我看不出任何問題 ...
[英]Use of uninitialized value $5 and argument isn't numeric in numeric lt (<)
我發現了語言 Perl。我嘗試創建一個腳本來集成到我的 Nagios 服務器中,但是我遇到了兩個我無法解決的錯誤。 你能幫助我嗎? 錯誤如下: 在 check_disque.pl 第 53 行的連接 (.) 或字符串中使用未初始化的值 $5。 參數“/dev/mapper/centos-root 5 ...