質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

yum

yumコマンドは、UNIX系OSのRPMパッケージのインストールなどを行うためのプログラムのことです。

Q&A

0回答

620閲覧

icinga2でManubulon SNMP pluginsをインストール後サービスが起動できません

Kazuya.M

総合スコア16

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

yum

yumコマンドは、UNIX系OSのRPMパッケージのインストールなどを行うためのプログラムのことです。

0グッド

0クリップ

投稿2017/10/13 04:39

編集2022/01/12 10:55

###前提・実現したいこと
監視ソフトとしてicinga2を使用しています。トラフィック監視の設定を追加するために監視のホストサーバーにManubulon SNMP pluginsをインストール後サービスの再起動が出来ませんでした。
現在目指している点としまして
①作業を巻き戻してサービスを復旧させる
②可能であればトラフィック監視の設定を進めたい
という2点になります。お力添えお願い致します。

###発生している問題・エラーメッセージ

journalctl -xe 10月 13 13:11:47 vdi-monitor.z-hosts.com icinga2[19770]: /etc/icinga2/conf.d/command-plugins-manubulon.conf(26): 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: icinga2.service: control process exited, code=exited status=1 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: Failed to start Icinga host/service/network monitoring system. -- Subject: Unit icinga2.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit icinga2.service has failed. -- -- The result is failed. 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: Unit icinga2.service entered failed state. 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: icinga2.service failed. 10月 13 13:11:47 vdi-monitor.z-hosts.com polkitd[810]: Unregistered Authentication Agent for unix-process:19684:448566474 (system bus name :1.2843, object pa 10月 13 13:11:56 vdi-monitor.z-hosts.com su[19814]: (to icinga) admin on pts/0 10月 13 13:11:56 vdi-monitor.z-hosts.com su[19814]: pam_unix(su-l:session): session opened for user icinga by admin(uid=0) 10月 13 13:11:56 vdi-monitor.z-hosts.com su[19814]: pam_unix(su-l:session): session closed for user icinga systemctl status icinga2 ● icinga2.service - Icinga host/service/network monitoring system Loaded: loaded (/usr/lib/systemd/system/icinga2.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 金 2017-10-13 13:11:47 JST; 15min ago Process: 19770 ExecStart=/usr/sbin/icinga2 daemon -d -e ${ICINGA2_ERROR_LOG} (code=exited, status=1/FAILURE) Process: 19690 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/sysconfig/icinga2 (code=exited, status=0/SUCCESS) Main PID: 28778 (code=exited, status=0/SUCCESS) 10月 13 13:11:47 vdi-monitor.z-hosts.com icinga2[19770]: /etc/icinga2/conf.d/command-plugins-manubulon.conf(22): */ 10月 13 13:11:47 vdi-monitor.z-hosts.com icinga2[19770]: /etc/icinga2/conf.d/command-plugins-manubulon.conf(23): 10月 13 13:11:47 vdi-monitor.z-hosts.com icinga2[19770]: /etc/icinga2/conf.d/command-plugins-manubulon.conf(24): template CheckCommand "snmp-manub...mand" { 10月 13 13:11:47 vdi-monitor.z-hosts.com icinga2[19770]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10月 13 13:11:47 vdi-monitor.z-hosts.com icinga2[19770]: /etc/icinga2/conf.d/command-plugins-manubulon.conf(25): import "ipv4-or-ipv6" 10月 13 13:11:47 vdi-monitor.z-hosts.com icinga2[19770]: /etc/icinga2/conf.d/command-plugins-manubulon.conf(26): 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: icinga2.service: control process exited, code=exited status=1 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: Failed to start Icinga host/service/network monitoring system. 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: Unit icinga2.service entered failed state. 10月 13 13:11:47 vdi-monitor.z-hosts.com systemd[1]: icinga2.service failed.

###実行した作業

wget https://github.com/dnsmichi/manubulon-snmp/archive/master.zip unzip master.zip -d /usr/lib64/nagios/manubulon/ cd /usr/lib64/nagios/manubulon/manubulon-snmp-master/plugins yum install perl-Net-SNMP perl-Getopt-Long gcc ./install.sh [root@icinga2]# ./install.sh ###### Manubulon snmp scripts installer ###### Will install all script(s) What is your perl location ? [/usr/bin/perl] Net::SNMP module version is v6.0.1 [OK] Module Getopt::Long found [OK] What is your monitoring plugin location ? /usr/lib64/nagios/manubulon Where do you want the plugins to put temporary data (only used by some plugins) ? Icinga user must be able to write files in it [/tmp] Will now install all script(s) : in directory : /usr/lib64/nagios/manubulon perl : /usr/bin/perl temp directory : /tmp OK ? [Y/n]y Installing check_snmp_boostedge.pl : OK Installing check_snmp_css.pl : OK Installing check_snmp_linkproof_nhr.pl : OK Installing check_snmp_nsbox.pl : OK Installing check_snmp_vrrp.pl : OK Installing check_snmp_cpfw.pl : OK Installing check_snmp_env.pl : OK Installing check_snmp_load.pl : OK Installing check_snmp_process.pl : OK Installing check_snmp_win.pl : OK Installing check_snmp_css_main.pl : OK Installing check_snmp_int.pl : OK Installing check_snmp_mem.pl : OK Installing check_snmp_storage.pl : OK Installation completed OK You can delete all the source files and directory Remember to look for informtation at http://www.manubulon.com/nagios/ [root@icinga2 plugins]# cp /usr/share/icinga2/include/command-plugins-manubulon.conf /etc/icinga2/conf.d/command-plugins-manubulon.conf vi /etc/icinga2/constants.conf /* The directory which contains the Manubulon plugins. * Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details. */ const ManubulonPluginDir = "/usr/lib64/nagios/manubulon" systemctl restart icinga2 Job for icinga2.service failed because the control process exited with error code. See "systemctl status icinga2.service" and "journalctl -xe" for details.

###試したこと
復旧を第一優先として
vi /etc/icinga2/constants.conf
で変更箇所を巻き戻して再起動→復旧せず

yum historyで本日のインストール作業とトランザクションIDを確認して
yum history rollback 18で巻き戻して再起動→復旧せず

###補足情報(言語/FW/ツール等のバージョンなど)
os: centos7
サービス:icinga2
です

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問