Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log format may be corrupted when timeout occurs #298

Closed
jdcoats opened this issue Jan 17, 2023 · 6 comments
Closed

Log format may be corrupted when timeout occurs #298

jdcoats opened this issue Jan 17, 2023 · 6 comments

Comments

@jdcoats
Copy link

jdcoats commented Jan 17, 2023

Sine poller warning and system stats ran together. Just updated to todays current 1.2.24 and had not seen this with 1.2.23 release

2023/01/17 14:01:23 - SYSTEM THOLD STATS: Time:1.6279 Tholds:2999 TotalDevices:1756 DownDevices:6 NewDownDevices:0
2023/01/17 14:01:23 - SYSTEM MONITOR STATS: Time:0.02 Reboots:0 DownDevices:0 Notifications:0 Purges:0
2023/01/17 14:01:23 - SYSTEM SYSLOG STATS: Time:0.13 Deletes:0 Incoming:261 Removes:111 XFers:0 Alerts:71 Alarms:0 Reports:0
2023/01/17 14:01:25 - SYSTEM DSSTATS STATS: Time:3.61 Type:HOURLY
2023/01/17 14:02:18 - SPINE: Poller[1] PID[28990] PT[140595921913536] WARNING: SS[2] The PHP Script Server did not respond in time for Timeout[-1673982121.47], Command[/var/www/localhost/htdocs/cacti/scripts/ss_fping.php ss_fping '10.10.0.29' '20' 'ICMP' ''
] and will therefore be restarted2023/01/17 14:02:20 - SYSTEM STATS: Time:18.8301 Method:spine Processes:2 Threads:40 Hosts:1756 HostsPerProcess:878 DataSources:67152 RRDsProcessed:0
2023/01/17 14:02:20 - SYSTEM MAINT STATS: Time:0.00
2023/01/17 14:02:23 - SYSTEM INTROPAGE STATS: Time:3.71, Checks:19, Details:19, Trends:7
2023/01/17 14:02:24 - SYSTEM DSSTATS STATS: Time:4.19 Type:HOURLY
2023/01/17 14:02:24 - SYSTEM THOLD STATS: Time:4.5431 Tholds:2968 TotalDevices:1756 DownDevices:6 NewDownDevices:0
2023/01/17 14:02:24 - SYSTEM MONITOR STATS: Time:0.03 Reboots:0 DownDevices:0 Notifications:0 Purges:0
2023/01/17 14:02:25 - SYSTEM SYSLOG STATS: Time:0.22 Deletes:0 Incoming:341 Removes:138 XFers:0 Alerts:71 Alarms:0 Reports:0
@jdcoats
Copy link
Author

jdcoats commented Jan 17, 2023

clog looks like this
image

@TheWitness
Copy link
Member

@jdcoats,

Is it the missing line feed?

@TheWitness
Copy link
Member

The timeout is wrong too isn't it.

@netniV
Copy link
Member

netniV commented Jan 18, 2023

I'd say definitely missing a line feed. It's possible core and spine were updating at the same time and something went wrong but as we have been doing that for a long time, unlikely.

@TheWitness
Copy link
Member

We would have to put an exclusive lock on the write. Pretty easy change.

@jdcoats
Copy link
Author

jdcoats commented Jan 18, 2023

Yes timeout is wrong, I'll have to defer to you for a possible explanation of what happened here.

@TheWitness TheWitness transferred this issue from Cacti/cacti Jan 19, 2023
TheWitness added a commit that referenced this issue Jan 19, 2023
Odd Cacti log format issue when script server timeout happened
@TheWitness TheWitness added this to the v1.2.24 milestone Jan 19, 2023
netniV pushed a commit that referenced this issue Jun 8, 2023
Odd Cacti log format issue when script server timeout happened
netniV added a commit that referenced this issue Jun 12, 2023
@netniV netniV changed the title Odd Cacti log format issue when script server timeout happened. Log format may be corrupted when timeout occurs Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants