频道栏目
首页 > 网络 > 其他 > 正文

cacti登录的问题

2018-12-28 14:40:11           
收藏   我要投稿
运行环境:

操作系统

[root@sky9896 cacti]# cat /etc/redhat-release

CentOS release 6.8 (Final)

Web中间件:

[root@sky9896 cacti]# httpd -v

Server version: Apache/2.2.15 (Unix)

Server built: Nov 18 2016 23:48:55

开源监控:Cacti

问题如下图所示:

image.png

问题分析:检查配置文件、查看后台数据库账号都没有问题,类似这种问题,先查看Apache和Cacti运行日志。

由于一台普通电脑承担Cacti服务,要考虑磁盘空间问题。

[root@sky9896 cacti]# df -hl

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 49G 46G 623M 99% /

tmpfs 939M 2.9M 936M 1% /dev/shm

/dev/sda1 93M 54M 35M 61% /boot

/dev/sda5 179G 2.3G 168G 2% /home

#查找系统中大于1G以上的文件

[root@sky9896 logs]# find / -size +1000000k -type f|xargs ls -hl

-rw-r----- 1 mysql mysql 4.5G 12月 25 15:18 /var/log/mysqld.log

-rw-r--r-- 1 root root 9.6G 12月 20 2015 /var/www/html/20151220cacti/log/cacti.log

-rw-r--r-- 1 root root 12G 12月 25 15:26 /var/www/html/cacti/log/cacti.log

-rw-r--r-- 1 root root 1.7G 12月 7 2016 /var/www/html/cacti.tar

[root@sky9896 log]# tail -n 10 cacti.log

12/25/2018 03:26:18 PM - CMDPHP: Poller[0] Host[7] DS[95] WARNING: Result from CMD not valid. Partial Result: Can't connect to MyS

12/25/2018 03:26:18 PM - CMDPHP: Poller[0] Host[7] DS[96] WARNING: Result from CMD not valid. Partial Result: Can't connect to MyS

12/25/2018 03:26:19 PM - THOLD: Checking Threshold:'Linux_Server - Logged in Users [users]', Graph:'216'

12/25/2018 03:26:21 PM - SYSTEM STATS: Time:19.1110 Method:cmd.php Processes:5 Threads:N/A Hosts:8 HostsPerProcess:2 DataSources:138 RRDsProcessed:43

12/25/2018 03:26:21 PM - THOLD: Checking Threshold: DS:established RRA_ID:20 DATA_ID:163 VALUE:3

12/25/2018 03:26:21 PM - THOLD: Threshold HI / Low check is normal HI:10 LOW: VALUE:3

12/25/2018 03:26:21 PM - THOLD: Checking Threshold: DS:users RRA_ID:268 DATA_ID:1077 VALUE:1

12/25/2018 03:26:21 PM - THOLD: Threshold HI / Low check is normal HI:5 LOW: VALUE:1

12/25/2018 03:26:21 PM - SYSTEM THOLD STATS: Time:0.0187 Tholds:2 TotalHosts:7 DownHosts:3 NewDownHosts:0

12/25/2018 03:26:21 PM - SYSTEM SYSLOG STATS:Time:0.08 Deletes:0 Incoming:0 Removes:0 XFers:0 Alerts:0 Alarms:0 Reports:0

[root@sky9896 log]# ll

总用量 12117468

drwxr-xr-x 2 root root 4096 3月 28 2017 1.log

-rw-r--r-- 1 root root 12407863339 12月 25 15:30 cacti.log

[root@sky9896 log]# rm cacti.log

rm:是否删除普通文件 "cacti.log"?y

[root@sky9896 log]# df -lh

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 49G 34G 13G 74% /

tmpfs 939M 3.0M 936M 1% /dev/shm

/dev/sda1 93M 54M 35M 61% /boot

/dev/sda5 179G 2.3G 168G 2% /home

[root@sky9896 logs]# pwd

/etc/httpd/logs

[root@sky9896 logs]# tail -n 5 access_log

- - [25/Dec/2018:15:34:03 +0800] "GET /server-statusauto HTTP/1.0" 403 280 "-" "-"

- - [25/Dec/2018:15:34:03 +0800] "GET /server-statusauto HTTP/1.0" 403 280 "-" "-"

- - [25/Dec/2018:15:34:03 +0800] "GET /server-statusauto HTTP/1.0" 403 280 "-" "-"

- - [25/Dec/2018:15:34:03 +0800] "GET /server-statusauto HTTP/1.0" 403 280 "-" "-"

- - [25/Dec/2018:15:34:03 +0800] "GET /server-statusauto HTTP/1.0" 403 280 "-" "-"

[root@sky9896 logs]# tail -n 5 error_log

[Tue Dec 25 15:34:03 2018] [error] [client ] client denied by server configuration: /var/www/html/server-status

[Tue Dec 25 15:34:03 2018] [error] [client ] client denied by server configuration: /var/www/html/server-status

[Tue Dec 25 15:34:03 2018] [error] [client ] client denied by server configuration: /var/www/html/server-status

[Tue Dec 25 15:34:03 2018] [error] [client ] client denied by server configuration: /var/www/html/server-status

[Tue Dec 25 15:34:03 2018] [error] [client ] client denied by server configuration: /var/www/html/server-status

[root@sky9896 log]# find / -size +100000k -type f|xargs ls -hl

-rw-r--r-- 1 nobody ntop 275M 6月 8 2016 /usr/local/var/ntop/ntop-suspicious-pkts.deveth0.pcap

-rw-rw----. 1 mysql mysql 282M 12月 25 16:14 /var/lib/mysql/ibdata1

-rw-r----- 1 mysql mysql 4.5G 12月 25 15:54 /var/log/mysqld.log

-rw-r--r-- 1 root root 9.6G 12月 20 2015 /var/www/html/20151220cacti/log/cacti.log

-rw-r--r-- 1 root root 1.7G 12月 7 2016 /var/www/html/cacti.tar

#tail -n 10 /var/log/mysqld.log

#tail -n 10 /var/lib/mysql/ibdata1

#rm /var/log/mysqld.log #删除或留下末尾的记录

# mysql -u root -pmysql> show databases;mysql> use cacti;mysql> show tables;mysql> update user_auth set password=md5("******") where id='1'; #更改cacti登录密码Query OK, 1 row affected (0.00 sec)Rows matched: 1Changed: 1Warnings: 0mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)

最终还未解决cacti登录的问题,请大家提供帮助,谢谢!

相关TAG标签 cacti 登录 问题
上一篇:dirname命令的详解
下一篇:虚拟资产交易所币币场外期货交易系统开发
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站