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

need more than 1 value to unpack #9

Open
darrynv opened this issue Jul 28, 2015 · 6 comments
Open

need more than 1 value to unpack #9

darrynv opened this issue Jul 28, 2015 · 6 comments
Assignees
Labels

Comments

@darrynv
Copy link

darrynv commented Jul 28, 2015

When I run /usr/lib/zabbix/check_apache --config /etc/zabbix/zabbix_agentd.conf

I get

"failed to parse server-status: need more than 1 value to unpack"

RHEL 7.1
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)

Can confirm I can access /server-status from localhost.

@dlbewley
Copy link
Contributor

can you post the output of /server-status?

@darrynv
Copy link
Author

darrynv commented Aug 9, 2015

http://pastebin.com/sS9wrCvk

Let me know how else I can help?

@gpmidi
Copy link
Owner

gpmidi commented Nov 28, 2015

Can you also post a copy of "/server-status?auto"

@gpmidi gpmidi self-assigned this Nov 28, 2015
@NikiN2
Copy link

NikiN2 commented Mar 17, 2016

/usr/lib/zabbix/check_apache --config /etc/zabbix/zabbix_agentd.conf -o 127.0.0.1
fix it

@tbjornli
Copy link

On Apache 2.4.7 everything works fine, but I encounter the same error on Apache 2.4.18.
Did anyone find a solution to this?

Apache 2.4.7 server-status

Total Accesses: 49002
Total kBytes: 288972
CPULoad: .00188242
Uptime: 89247
ReqPerSec: .54906
BytesPerSec: 3315.6
BytesPerReq: 6038.68
BusyWorkers: 2
IdleWorkers: 11
Scoreboard: __..__._____C._.W_....................................................................................................................................

Apache 2.4.18 server-status

host.domain.tld
ServerVersion: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g
ServerMPM: prefork
Server Built: 2016-07-14T12:32:26
CurrentTime: Friday, 28-Oct-2016 20:09:16 CEST
RestartTime: Friday, 28-Oct-2016 20:06:42 CEST
ParentServerConfigGeneration: 1
ParentServerMPMGeneration: 0
ServerUptimeSeconds: 153
ServerUptime: 2 minutes 33 seconds
Load1: 0.00
Load5: 0.16
Load15: 0.30
Total Accesses: 48
Total kBytes: 34
CPUUser: .08
CPUSystem: .02
CPUChildrenUser: 0
CPUChildrenSystem: 0
CPULoad: .0653595
Uptime: 153
ReqPerSec: .313726
BytesPerSec: 227.556
BytesPerReq: 725.333
BusyWorkers: 1
IdleWorkers: 10
Scoreboard: ..._......_.......W....._.........._...__.__..._._....................................................................................................
TLSSessionCacheStatus
CacheType: SHMCB
CacheSharedMemory: 512000
CacheCurrentEntries: 0
CacheSubcaches: 32
CacheIndexesPerSubcaches: 88
CacheIndexUsage: 0%
CacheUsage: 0%
CacheStoreCount: 0
CacheReplaceCount: 0
CacheExpireCount: 0
CacheDiscardCount: 0
CacheRetrieveHitCount: 0
CacheRetrieveMissCount: 0
CacheRemoveHitCount: 0
CacheRemoveMissCount: 0

ericrisler added a commit to ericrisler/zabbix-apache-stats that referenced this issue Feb 27, 2017
I'm no python guy so please review.

gpmidi#9: gpmidi#9
gpmidi#10: gpmidi#10

Apache server-status that outputs the TLSSessionCacheStatus section breaks the csv reader since that line contains no ":". 

I've added a breakout condition to end parsing the server-status after the Scorebaord status.
ericrisler added a commit to ericrisler/zabbix-apache-stats that referenced this issue Feb 27, 2017
Skip "TLSSessionCacheStatus" line as it causes parse error.

Fix for: gpmidi#9 and gpmidi#10
@tomvanbraeckel
Copy link

I can confirm that this, in combination with the --status-version=2.4.13 option, fixed it for me. Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants