Nagios の check_mysql_health がエラー
By takagiwa on Tuesday, January 30 2024, 22:57 - Permalink
``` (No output on stdout) stderr: Can't locate Monitoring/GLPlugin/Commandline/Getopt.pm in @INC (you may need to install the Monitoring::GLPlugin::Commandline::Getopt module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.36 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.36/mach /usr/local/lib/perl5/5.36) at /usr/local/libexec/nagios/check_mysql_health line 120. ```
環境は FreeBSD 13.2-RELEASE-p8、Perl は 5.36.3 、Nagios Core 4.4.13、nagios-plugins は 2.4.4,1 。
pkg upgrade したら上記のようなエラーがでるようになってしまった。
とりあえず p5-Monitoring-Plugin を入れても変わらない。
p5-Nagios-Plugin を入れても変わらない。
monitoring-plugins を入れたら nagios4 と nagios-plugins が削除されたのでこれらを入れ直した
結局オリジナル?をインストールした。ばらばらにいれるのは新しいのを手動でアップデートしなければいけなくて嫌だけれど。
https://metacpan.org/dist/Monitoring-GLPlugin からアーカイブをダウンロードして README の通りにしてインストール。
テストでエラーがでた。
Test Summary Report ------------------- t/04-extra-opts.t (Wstat: 768 (exited 3) Tests: 1 Failed: 0) Non-zero exit status: 3 Files=8, Tests=67, 41 wallclock secs ( 0.04 usr 0.00 sys + 0.62 cusr 0.07 csys = 0.73 CPU) Result: FAIL Failed 1/8 test programs. 0/67 subtests failed. *** Error code 255
github からとったら Makefile.PL の時点で META.json と META.yml が無いといわれて、テストは即エラー。
古いものだと問題なさそう。
https://metacpan.org/release/LAUSSER/Monitoring-GLPlugin-1.4.2.1