mostafamemariani / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
0 stars 0 forks source link

ss_get_by_ssh.php : wrong parsing for busybox's 'uptime' #188

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
'php ss_get_by_ssh.php --host <hostname> --type w --items as' returns always 
as:-1 when checking on a server using busybox as shell.
On systems using busybox (like Synology NAS), 'uptime' is an included function 
of busybox and returns '13:50:25 up  4:50, load average: 0.00, 0.03, 0.06' 
where typical 'uptime' returns '13:51:53 up 1 day, 17 min,  0 users,  load 
average: 1.00, 0.62, 0.57'

Apply to : ss_get_by_ssh.php v. 1.1.8

What steps will reproduce the problem?
1. execute ss_get_by_ssh.php to a busybox system
2.
3.

Patch is included in this issue

Original issue reported on code.google.com by Arnaud.d...@gmail.com on 9 Apr 2011 at 12:17

Attachments:

GoogleCodeExporter commented 8 years ago
Can you provide a patch for the test suite too?  Add another sample file and a 
new test case.

Thanks!

Original comment by baron.schwartz on 9 Apr 2011 at 7:41

GoogleCodeExporter commented 8 years ago
Marking for migration / fixing in a new project.

Original comment by baron.schwartz on 4 Jan 2012 at 6:21

GoogleCodeExporter commented 8 years ago
Fixed in new project

Original comment by baron.schwartz on 25 Jan 2012 at 2:20