Hi,

I am currently trying to parse  results from Apache Benchmark into Zenoss to 
test every 6 hours with certain values. After a day, I still don't have 
results, event after running zencommand and getting my results updated 
(although my check_mysql and check_http are graphing correctly). Any thoughts?


> #Shell:/usr/local/zenoss zenoss$ zencommand run -d sunweb.onf.ca 
> -v10DEBUG:zen.zencommand:run
> DEBUG:zen.zencommand:Connecting to localhost
> DEBUG:zen.zencommand:Logging in as admin
> WARNING:zen.zencommand:Reconnected to ZenHub
> DEBUG:zen.zencommand:setting up services EventService, CommandConfig
> DEBUG:zen.zencommand:chaining getInitialServices with d2
> DEBUG:zen.zencommand:callback after getting service EventService
> DEBUG:zen.zencommand:callback after getting service CommandConfig
> DEBUG:zen.zencommand:Calling connected.
> DEBUG:zen.zencommand:connected
> DEBUG:zen.zencommand:Fetching config
> DEBUG:zen.zencommand:Updated configCycleInterval config to 360
> INFO:zen.zencommand:---------- - schedule has 3 commands
> DEBUG:zen.zencommand:running '$ZENHOME/libexec/check_http -H sunweb.onf.ca -I 
> 172.16.241.45 -p 80 -u / -f ok'
> DEBUG:zen.zencommand:cmd line: '/bin/sh -c exec $ZENHOME/libexec/check_http 
> -H sunweb.onf.ca -I 172.16.241.45 -p 80 -u / -f ok'
> DEBUG:zen.zencommand:Process check_http -H sunweb.onf.ca -I 172.16.241.45 -p 
> 80 -u / -f ok  started
> DEBUG:zen.zencommand:running '/usr/local/zenoss/libexec/check_mysql -H 
> 172.16.241.45 -u webadmin -p webadmin | sed \'s/: /=/g\' | sed \'s/Slow 
> q/SlowQ/\' | sed \'s/ tabl/Tabl/g\' | sed \'s/Queries per second 
> avg/QpsAvg/\' | awk \'{print "OK|"$0}\''
> DEBUG:zen.zencommand:cmd line: '/bin/sh -c exec 
> /usr/local/zenoss/libexec/check_mysql -H 172.16.241.45 -u webadmin -p 
> webadmin | sed \'s/: /=/g\' | sed \'s/Slow q/SlowQ/\' | sed \'s/ 
> tabl/Tabl/g\' | sed \'s/Queries per second avg/QpsAvg/\' | awk \'{print 
> "OK|"$0}\''
> DEBUG:zen.zencommand:Process check_mysql -H 172.16.241.45 -u webadmin -p 
> webadmin | sed 's/: /=/g' | sed 's/Slow q/SlowQ/' | sed 's/ tabl/Tabl/g' | 
> sed 's/Queries per second avg/QpsAvg/' | awk '{print "OK|"$0}'  started
> DEBUG:zen.zencommand:running '/usr/sbin/ab -n 500 -c 45 http://172.16.241.45/ 
> | grep -e "Total:" -e "Requests per second:" -e "across all concurrent 
> requests" -e "Transfer rate:" | sed \'s/\\N/ /g\' | sed \'s/:/=/\'| sed 
> \'s/([^)]*)//\'| sed \'s/[][]/+/g\' | sed \'s/+[^+]*+//\'| sed \'s/ //g\' | 
> sed \'s/received//\' | awk \'BEGIN {  RS=""; FS="\\n"; } { print "OK|" $1" 
> "$2" "$3" "$4 }\''
> DEBUG:zen.zencommand:cmd line: '/bin/sh -c exec /usr/sbin/ab -n 500 -c 45 
> http://172.16.241.45/ | grep -e "Total:" -e "Requests per second:" -e "across 
> all concurrent requests" -e "Transfer rate:" | sed \'s/\\N/ /g\' | sed 
> \'s/:/=/\'| sed \'s/([^)]*)//\'| sed \'s/[][]/+/g\' | sed \'s/+[^+]*+//\'| 
> sed \'s/ //g\' | sed \'s/received//\' | awk \'BEGIN {  RS=""; FS="\\n"; } { 
> print "OK|" $1" "$2" "$3" "$4 }\''
> DEBUG:zen.zencommand:Process ab -n 500 -c 45 http://172.16.241.45/ | grep -e 
> "Total:" -e "Requests per second:" -e "across all concurrent requests" -e 
> "Transfer rate:" | sed 's/\N/ /g' | sed 's/:/=/'| sed 's/([^)]*)//'| sed 
> 's/[][]/+/g' | sed 's/+[^+]*+//'| sed 's/ //g' | sed 's/received//' | awk 
> 'BEGIN {  RS=""; FS="\n"; } { print "OK|" $1" "$2" "$3" "$4 }'  started
> DEBUG:zen.zencommand:Finished config fetch
> INFO:zen.zencommand:---------- - schedule has 3 commands
> DEBUG:zen.zencommand:Next command in 299.597158 seconds
> DEBUG:zen.zencommand:Received exit code: 0
> DEBUG:zen.zencommand:Command: '/bin/sh -c exec 
> /usr/local/zenoss/libexec/check_mysql -H 172.16.241.45 -u webadmin -p 
> webadmin | sed \'s/: /=/g\' | sed \'s/Slow q/SlowQ/\' | sed \'s/ 
> tabl/Tabl/g\' | sed \'s/Queries per second avg/QpsAvg/\' | awk \'{print 
> "OK|"$0}\''
> DEBUG:zen.zencommand:Output: 'OK|Uptime=760956  Threads=2  Questions=8544056  
> SlowQueries=465  Opens=6270  FlushTables=1  OpenTables=256  QpsAvg=11.228\n'
> DEBUG:zen.zencommand:Process check_mysql -H 172.16.241.45 -u webadmin -p 
> webadmin | sed 's/: /=/g' | sed 's/Slow q/SlowQ/' | sed 's/ tabl/Tabl/g' | 
> sed 's/Queries per second avg/QpsAvg/' | awk '{print "OK|"$0}'  stopped (0), 
> 0.375649 elapsed
> DEBUG:zen.zencommand:The result of "/usr/local/zenoss/libexec/check_mysql -H 
> 172.16.241.45 -u webadmin -p webadmin | sed 's/: /=/g' | sed 's/Slow 
> q/SlowQ/' | sed 's/ tabl/Tabl/g' | sed 's/Queries per second avg/QpsAvg/' | 
> awk '{print "OK|"$0}'" was "OK|Uptime=760956  Threads=2  Questions=8544056  
> SlowQueries=465  Opens=6270  FlushTables=1  OpenTables=256  QpsAvg=11.228"
> DEBUG:zen.zencommand:storing Uptime = 760956.0 in: 
> /Devices/sunweb.onf.ca/Connection_Uptime
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/Connection_Uptime.rrd:
>  760956L
> DEBUG:zen.zencommand:rrd save result: 1.00104048721
> DEBUG:zen.zencommand:storing Questions = 8544056.0 in: 
> /Devices/sunweb.onf.ca/Connection_Questions
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/Connection_Questions.rrd:
>  8544056.0
> DEBUG:zen.zencommand:rrd save result: 8544056.0
> DEBUG:zen.zencommand:storing SlowQueries = 465.0 in: 
> /Devices/sunweb.onf.ca/Connection_SlowQueries
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/Connection_SlowQueries.rrd:
>  465.0
> DEBUG:zen.zencommand:rrd save result: 465.0
> DEBUG:zen.zencommand:storing QpsAvg = 11.228 in: 
> /Devices/sunweb.onf.ca/Connection_QpsAvg
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/Connection_QpsAvg.rrd:
>  11.228
> DEBUG:zen.zencommand:rrd save result: 11.228
> INFO:zen.zencommand:---------- - schedule has 3 commands
> DEBUG:zen.zencommand:Next command in 299.468293 seconds
> DEBUG:zen.zencommand:Received exit code: 0
> DEBUG:zen.zencommand:Command: '/bin/sh -c exec $ZENHOME/libexec/check_http -H 
> sunweb.onf.ca -I 172.16.241.45 -p 80 -u / -f ok'
> DEBUG:zen.zencommand:Output: 'OK - HTTP/1.1 302 Found - 0.043 second response 
> time |time=0.042635s;;;0.000000 size=545B;;;0\n'
> DEBUG:zen.zencommand:Process check_http -H sunweb.onf.ca -I 172.16.241.45 -p 
> 80 -u / -f ok  stopped (0), 0.549625 elapsed
> DEBUG:zen.zencommand:The result of "$ZENHOME/libexec/check_http -H 
> sunweb.onf.ca -I 172.16.241.45 -p 80 -u / -f ok" was "OK - HTTP/1.1 302 Found 
> - 0.043 second response time |time=0.042635s;;;0.000000 size=545B;;;0"
> DEBUG:zen.zencommand:storing time = 0.042635 in: 
> /Devices/sunweb.onf.ca/UP_time
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/UP_time.rrd: 
> 0.042634999999999999
> DEBUG:zen.zencommand:rrd save result: 0.042635
> DEBUG:zen.zencommand:storing size = 545.0 in: /Devices/sunweb.onf.ca/UP_size
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/UP_size.rrd: 
> 545.0
> DEBUG:zen.zencommand:rrd save result: 545.0
> INFO:zen.zencommand:---------- - schedule has 3 commands
> DEBUG:zen.zencommand:Next command in 299.856639 seconds
> DEBUG:zen.zencommand:Received exit code: 0
> DEBUG:zen.zencommand:Command: '/bin/sh -c exec /usr/sbin/ab -n 500 -c 45 
> http://172.16.241.45/ | grep -e "Total:" -e "Requests per second:" -e "across 
> all concurrent requests" -e "Transfer rate:" | sed \'s/\\N/ /g\' | sed 
> \'s/:/=/\'| sed \'s/([^)]*)//\'| sed \'s/[][]/+/g\' | sed \'s/+[^+]*+//\'| 
> sed \'s/ //g\' | sed \'s/received//\' | awk \'BEGIN {  RS=""; FS="\\n"; } { 
> print "OK|" $1" "$2" "$3" "$4 }\''
> DEBUG:zen.zencommand:Output: 'OK|Requestspersecond=883.39 Timeperrequest=1.13 
> Transferrate=482.41 Total=154934.633178\n'
> DEBUG:zen.zencommand:Process ab -n 500 -c 45 http://172.16.241.45/ | grep -e 
> "Total:" -e "Requests per second:" -e "across all concurrent requests" -e 
> "Transfer rate:" | sed 's/\N/ /g' | sed 's/:/=/'| sed 's/([^)]*)//'| sed 
> 's/[][]/+/g' | sed 's/+[^+]*+//'| sed 's/ //g' | sed 's/received//' | awk 
> 'BEGIN {  RS=""; FS="\n"; } { print "OK|" $1" "$2" "$3" "$4 }'  stopped (0), 
> 0.488235 elapsed
> DEBUG:zen.zencommand:The result of "/usr/sbin/ab -n 500 -c 45 
> http://172.16.241.45/ | grep -e "Total:" -e "Requests per second:" -e "across 
> all concurrent requests" -e "Transfer rate:" | sed 's/\N/ /g' | sed 's/:/=/'| 
> sed 's/([^)]*)//'| sed 's/[][]/+/g' | sed 's/+[^+]*+//'| sed 's/ //g' | sed 
> 's/received//' | awk 'BEGIN {  RS=""; FS="\n"; } { print "OK|" $1" "$2" "$3" 
> "$4 }'" was "OK|Requestspersecond=883.39 Timeperrequest=1.13 
> Transferrate=482.41 Total=154934.633178"
> DEBUG:zen.zencommand:storing Requestspersecond = 883.39 in: 
> /Devices/sunweb.onf.ca/ApacheBenchmark_Requestspersecond
> DEBUG:zen.RRDUtil:create new rrd 
> /usr/local/zenoss/perf/Devices/sunweb.onf.ca/ApacheBenchmark_Requestspersecond.rrd
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/ApacheBenchmark_Requestspersecond.rrd:
>  883.38999999999999
> DEBUG:zen.zencommand:rrd save result: 883.39
> DEBUG:zen.zencommand:storing Timeperrequest = 1.13 in: 
> /Devices/sunweb.onf.ca/ApacheBenchmark_Timeperrequest
> DEBUG:zen.RRDUtil:create new rrd 
> /usr/local/zenoss/perf/Devices/sunweb.onf.ca/ApacheBenchmark_Timeperrequest.rrd
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/ApacheBenchmark_Timeperrequest.rrd:
>  1.1299999999999999
> DEBUG:zen.zencommand:rrd save result: 1.13
> DEBUG:zen.zencommand:storing Transferrate = 482.41 in: 
> /Devices/sunweb.onf.ca/ApacheBenchmark_Transferrate
> DEBUG:zen.RRDUtil:create new rrd 
> /usr/local/zenoss/perf/Devices/sunweb.onf.ca/ApacheBenchmark_Transferrate.rrd
> DEBUG:zen.RRDUtil:/usr/local/zenoss/perf/Devices/sunweb.onf.ca/ApacheBenchmark_Transferrate.rrd:
>  482.41000000000003
> DEBUG:zen.zencommand:rrd save result: 482.41
> INFO:zen.zencommand:---------- - schedule has 3 commands
> DEBUG:zen.zencommand:removing service EventService
> DEBUG:zen.zencommand:removing service CommandConfig
> INFO:zen.zencommand:zencommand shutting down
> 


------------------------
Marc Trudel




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=9455#9455

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to