[Debian] Nagios plugin script 無效
#Step 01 – 修正
如果遇到 nagios 執行失敗
Can't locate Nagios/Plugin.pm in @INC (you may need to install the Nagios::Plugin module) '
(@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/ x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at check_f5_ltm_pool.pl line 24.
BEGIN failed--compilation aborted at check_f5_ltm_pool.pl line 24.
須修正
sed -i 's/Nagios::Plugin/Nagios::Monitoring::Plugin/g' xxxxxx_xxxxx_check.pl
#Step 02 –
#########################################################################
influx -precision rfc3339
SHOW DATABASES
SHOW RETENTION POLICIES
SHOW SERIES
SHOW MEASUREMENTS
SHOW TAG KEYS
SHOW TAG VALUES
SHOW FIELD KEYS
create user monitor with password 'zabbix' with all privileges
create user monitor_rw with password ‘zabbix_apipwd‘
创建用户:CREATE USER WITH PASSWORD ''
授权权限:GRANT [READ,WRITE,ALL] ON TO
创建并授权:CREATE USER WITH PASSWORD '' WITH ALL PRIVILEGES
取消授权:REVOKE ALL PRIVILEGES FROM
修改密码:SET PASSWORD FOR = ''
删除用户:DROP USER
CREATE USER infadmin WITH PASSWORD 'GerP@ssw0rd' WITH ALL PRIVILEGES
vi /etc/influxdb/influxdb.conf
[http]
auth-enabled = true
create database nginx2
CREATE USER infadmin WITH PASSWORD 'xxxxxxxxxxxx' WITH ALL PRIVILEGES
CREATE USER infadmin WITH PASSWORD 'xxxxxxxxxxxx' WITH ALL PRIVILEGES
CREATE USER nginx1 WITH PASSWORD 'xxxxxxxx'
CREATE USER nginx2 WITH PASSWORD 'xxxxxxxx'
CREATE USER nginx3 WITH PASSWORD 'xxxxxxxx'
grant write on nginx to nginx1
create database nginx2
grant write on nginx2 to nginx2
grant ALL on nginx2 to nginx2
正常程序
create database f5ltminfdb
CREATE USER f5user01 WITH PASSWORD 'xxxxxxx'
grant ALL on f5ltminfdb to f5user01
show MEASUREMENTS
CREATE USER telegrafuser WITH PASSWORD 'xxxxxxxx'
grant ALL on telegraf to telegrafuser
沒有留言:
張貼留言