Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Support questions about the Network Weather Map plugin
Moderators: Developers , Moderators
cadoi
Cacti User
Posts: 67 Joined: Fri Jan 22, 2010 10:43 pm
Post
by cadoi » Tue Sep 14, 2010 7:23 am
hi all,
my cacti server has been problem for last two day. the
Code: Select all
"Last Run Statistics Time:298.7491 Method:spine Processes:16 Threads:15 Hosts:718 HostsPerProcess:45 DataSources:8401 RRDsProcessed:3900"
is higher Unusually.
o other day the last run statistics is about 20 to 80. but now it is 298
and my map has problem as in the picture
my server is IBM p5: 8 CPU, 8G RAM
the poller information and htop command display display my server and my poller setting
but the log show:
Code: Select all
PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
....
MDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1062', SQL:"INSERT INTO user_log (username,user_id,result,ip,time)
........................................
i still google and do following but didn't resolve.
Attachments
my map has the problem, the traffic had but didn't display my map problem.JPG (81.93 KiB) Viewed 3283 times
my poller information poller information.JPG (50.44 KiB) Viewed 3283 times
my server information my server.JPG (9.43 KiB) Viewed 3283 times
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Tue Sep 14, 2010 7:39 am
You may be out of space in /var.
TheWitness
cadoi
Cacti User
Posts: 67 Joined: Fri Jan 22, 2010 10:43 pm
Post
by cadoi » Tue Sep 14, 2010 7:53 pm
df -h
Code: Select all
]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 24G 3.9G 19G 17% /
/dev/md5 102G 6.4G 90G 7% /data
/dev/md4 3.8G 102M 3.5G 3% /tmp
/dev/md2 99M 16M 78M 18% /boot
/dev/md0 67G 1.8G 62G 3% /var
tmpfs 3.9G 0 3.9G 0% /dev/shm
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Tue Sep 14, 2010 8:36 pm
Your problem is too many processes and threads. You are likely causing spine to crash due to lack of connections. You need to tone it down.
TheWitness
cadoi
Cacti User
Posts: 67 Joined: Fri Jan 22, 2010 10:43 pm
Post
by cadoi » Tue Sep 14, 2010 10:37 pm
hi
Code: Select all
Your problem is too many processes and threads. You are likely causing spine to crash due to lack of connections. You need to tone it down.
i still change following step:
step1: fist i set the concurrent process: 8 (the second is 10) and modified other number
step2: max threads: 5 to 10
step3: php server:5 to 10
i did this and monitoring for two sequencys of poller time
but the problem not resolve.
what information you need to resolve my problem?
thanks for your support
cadoi
Cacti User
Posts: 67 Joined: Fri Jan 22, 2010 10:43 pm
Post
by cadoi » Wed Sep 15, 2010 9:23 pm
Hi TheWitness,
i reolve the problem of last runstatics: it is 20 to 70 now.
But the the log of weathermap still error as the picture show before.
i check my log:
Code: Select all
09/16/2010 09:20:20 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
09/16/2010 09:20:19 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
when i check with spine
it run only host id 240
Code: Select all
09/16/2010 09:25:30 AM - SPINE: Poller[0] Host[240] DS[1907] SCRIPT: perl /var/www/html/cacti/scripts/ping-latency.pl x.x.x.x, output: min:3.113 avg:10.416 max:12.550 dev:2.567 loss:0
09/16/2010 09:25:30 AM - SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine thread)
You have new mail in /var/spool/mail/root
[root@SRV-CACTI-ACCESS lib]#
i searched on google.com with key word
"SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine thread)" but can't resolve. can you help me
thanks
cadoi
Cacti User
Posts: 67 Joined: Fri Jan 22, 2010 10:43 pm
Post
by cadoi » Thu Sep 16, 2010 10:08 pm
Hi all,
I resolved my problem by: del host that has id 240 and add again.
I used spine to check host-id from 1 to 850 and check again when the error
Code: Select all
when i check with spine
Code:
spine -V 5 1 845
it run only host id 240
Code:
09/16/2010 09:25:30 AM - SPINE: Poller[0] Host[240] DS[1907] SCRIPT: perl /var/www/html/cacti/scripts/ping-latency.pl x.x.x.x, output: min:3.113 avg:10.416 max:12.550 dev:2.567 loss:0
09/16/2010 09:25:30 AM - SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine thread)
You have new mail in /var/spool/mail/root
[root@SRV-CACTI-ACCESS lib]#
then i checked;
it still error on host-id 240, then i deleted this host and tried again, it was Ok.
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Sat Sep 18, 2010 2:33 pm
What version of spine? Tell me about the host.
TheWitness
cadoi
Cacti User
Posts: 67 Joined: Fri Jan 22, 2010 10:43 pm
Post
by cadoi » Tue Sep 21, 2010 4:40 am
cacti 0.8.7e
spine 0.8.7 e
the host id 40 i deleted. then i readded again. the host-id is 849
System:HUAWEI-3COM CORP. SNMP agent for QuidWay S6500
Code: Select all
tracert -U -p 161 x.x.x.x
traceroute to x.x.x.x 30 hops max, 40 byte packets
1 x 0.169 ms 0.122 ms 0.088 ms
2 y 0.565 ms 0.595 ms 0.677 ms
3 z 0.258 ms 0.246 ms 0.235 ms
4 t ms 14.468 ms 14.641 ms
5 m 1.638 ms 2.665 ms 3.643 ms
6 n 16.300 ms 16.327 ms 16.311 ms
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Tue Sep 21, 2010 8:03 am
Please understand this:
max_connections (in mysql) > (threads + concurrent script servers + concurrent scripts) * processes + anything for the ui.
You must restart mysql after making the changes to the my.cnf file.
TheWitness
cadoi
Cacti User
Posts: 67 Joined: Fri Jan 22, 2010 10:43 pm
Post
by cadoi » Tue Sep 21, 2010 8:37 pm
Code: Select all
max_connections (in mysql) > (threads + concurrent script servers + concurrent scripts) * processes + anything for the ui
more /etc/my.cnf
Code: Select all
[mysqld]
max_connections = 12000
key_buffer = 16M
myisam_sort_buffer_size = 32M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 286
interactive_timeout = 50
wait_timeout = 1000
..............................
mysql serve only for cacti and syslog-ng (now the syslog-ng receives from 5 hosts)
Code: Select all
You must restart mysql after making the changes to the my.cnf file.
after change anything i allready restart thier daemon server
Users browsing this forum: No registered users and 0 guests