1755752 Members
4847 Online
108838 Solutions
New Discussion юеВ

Time functionon HP

 
SOLVED
Go to solution
Kalin Evtimov
Regular Advisor

Time functionon HP

Hi!

I had problems with a programm, that uses a time-call on HP-UX. A friend of mine wrote me an e-mail: "oh you are on hp ... there are issues with the time parsing ..."

I don`t know something like this, maybe you know? Is there really something special about it, that differs on HP-UX?

Thank you.
5 REPLIES 5
Fabio Ettore
Honored Contributor
Solution

Re: Time functionon HP

Hi Klain,

I think you didn't obtain so many replies because your question is not so clear.
What problem of time do you (or your friend) refer to?

I don't know no known particular problem about time on HP-UX.

Can you explain better?

Thanks and regards,
Fabio
WISH? IMPROVEMENT!
Kalin Evtimov
Regular Advisor

Re: Time functionon HP

I compiled RRDtool, a program for graphing data, and it has a Perl-Module called RRDs. It has methods create, update and graph. Each Method gets the unix-time as an argument. I always get "unparsable time"-error. On Linux and Solaris it works, but on HP-UX not. I already spent about 120 hours of trying to make it work...
A. Clay Stephenson
Acclaimed Contributor

Re: Time functionon HP

This is not related to HP's localtime() or mktime() functions directly. I looked at this source code and even the author refers to parsetime() as an "ugly case statement". It appears that the parsetime code needs some tweaking itself but a big clue could be found if you bothered to include the entire error message: "unparsable time: " should be immediately followed by a string (actually two joined strings); that is very important data. It may simply mean that the configure script needs to be changed to better handle HP-UX.
If it ain't broke, I can fix that.
Kalin Evtimov
Regular Advisor

Re: Time functionon HP

OK, running the bigtops.pl from the example directory gives me
"Cannot create random.rrd: start time: unparsable time: "
I have no access to my HP-Machine right now, but if you would like to have a look here on Friday morning I can post several whole error messages from my "debug". Thank you.
Kalin Evtimov
Regular Advisor

Re: Time functionon HP

So, there is the whole debug-message. There are also the values I used. I think RRDtool is wlways using the parsetime.c for parsing time, no matter whether I am using rrdtool-command from the command line, or RRDs-Module. Then it is actually strange, that I get errors from the RRDs-Module, but no errors from the command-line tool, using the same parameters. Anyway, I appreciate any Idea how to solve this problem.
_____________________________________-
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1010) debug 'graphs/disk-0.13.1_hour.png','--start','-4260','--end','-60','-h','250','-w','500','-a','PNG','--title','hour','--interlaced','-l','0','-x','MINUTE:1:MINUTE:5:MINUTE:10:0:%H:%M','-u','100','-v','% inode utilisation','COMMENT:Partition Max Min Average\n','DEF:total1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:total:AVERAGE','DEF:used1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:used:AVERAGE','CDEF:med1=used1,100,*,total1,/','LINE2:med1#000000:/oracle..........','GPRINT:med1:MAX:%6.2lf','GPRINT:med1:MIN:%6.2lf','GPRINT:med1:AVERAGE:%6.2lf\n','DEF:total2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:total:AVERAGE','DEF:used2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:used:AVERAGE','CDEF:med2=used2,100,*,total2,/','LINE2:med2#ff0000:/stand...........','GPRINT:med2:MAX:%6.2lf','GPRINT:med2:MIN:%6.2lf','GPRINT:med2:AVERAGE:%6.2lf\n','DEF:total3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:total:AVERAGE','DEF:used3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:used:AVERAGE','CDEF:med3=used3,100,*,total3,/','LINE2:med3#00ff00:/................','GPRINT:med3:MAX:%6.2lf','GPRINT:med3:MIN:%6.2lf','GPRINT:med3:AVERAGE:%6.2lf\n','COMMENT:Created Mon Jul 11 12h54m58s 2005'
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1021) warning : ERROR while creating graph : start time: unparsable time:
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1010) debug 'graphs/disk-0.13.1_day.png','--start','-90060','--end','-60','-h','250','-w','500','-a','PNG','--title','day','--interlaced','-l','0','-u','100','-v','% inode utilisation','COMMENT:Partition Max Min Average\n','DEF:total1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:total:AVERAGE','DEF:used1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:used:AVERAGE','CDEF:med1=used1,100,*,total1,/','LINE2:med1#000000:/oracle..........','GPRINT:med1:MAX:%6.2lf','GPRINT:med1:MIN:%6.2lf','GPRINT:med1:AVERAGE:%6.2lf\n','DEF:total2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:total:AVERAGE','DEF:used2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:used:AVERAGE','CDEF:med2=used2,100,*,total2,/','LINE2:med2#ff0000:/stand...........','GPRINT:med2:MAX:%6.2lf','GPRINT:med2:MIN:%6.2lf','GPRINT:med2:AVERAGE:%6.2lf\n','DEF:total3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:total:AVERAGE','DEF:used3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:used:AVERAGE','CDEF:med3=used3,100,*,total3,/','LINE2:med3#00ff00:/................','GPRINT:med3:MAX:%6.2lf','GPRINT:med3:MIN:%6.2lf','GPRINT:med3:AVERAGE:%6.2lf\n','COMMENT:Created Mon Jul 11 12h54m58s 2005'
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1021) warning : ERROR while creating graph : end time: unparsable time:
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1010) debug 'graphs/disk-0.13.1_week.png','--start','-691260','--end','-60','-h','250','-w','500','-a','PNG','--title','week','--interlaced','-l','0','-u','100','-v','% inode utilisation','COMMENT:Partition Max Min Average\n','DEF:total1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:total:AVERAGE','DEF:used1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:used:AVERAGE','CDEF:med1=used1,100,*,total1,/','LINE2:med1#000000:/oracle..........','GPRINT:med1:MAX:%6.2lf','GPRINT:med1:MIN:%6.2lf','GPRINT:med1:AVERAGE:%6.2lf\n','DEF:total2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:total:AVERAGE','DEF:used2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:used:AVERAGE','CDEF:med2=used2,100,*,total2,/','LINE2:med2#ff0000:/stand...........','GPRINT:med2:MAX:%6.2lf','GPRINT:med2:MIN:%6.2lf','GPRINT:med2:AVERAGE:%6.2lf\n','DEF:total3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:total:AVERAGE','DEF:used3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:used:AVERAGE','CDEF:med3=used3,100,*,total3,/','LINE2:med3#00ff00:/................','GPRINT:med3:MAX:%6.2lf','GPRINT:med3:MIN:%6.2lf','GPRINT:med3:AVERAGE:%6.2lf\n','COMMENT:Created Mon Jul 11 12h54m58s 2005'
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1021) warning : ERROR while creating graph : width below 10 pixels
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1010) debug 'graphs/disk-0.13.1_month.png','--start','-7862460','--end','-60','-h','250','-w','500','-a','PNG','--title','month','--interlaced','-l','0','-x','WEEK:1:MONTH:1:MONTH:1:2592000:%B','-u','100','-v','% inode utilisation','COMMENT:Partition Max Min Average\n','DEF:total1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:total:AVERAGE','DEF:used1=/etc/webmin/sysstats/modules/disk-0.13.1/i1.rrd:used:AVERAGE','CDEF:med1=used1,100,*,total1,/','LINE2:med1#000000:/oracle..........','GPRINT:med1:MAX:%6.2lf','GPRINT:med1:MIN:%6.2lf','GPRINT:med1:AVERAGE:%6.2lf\n','DEF:total2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:total:AVERAGE','DEF:used2=/etc/webmin/sysstats/modules/disk-0.13.1/i2.rrd:used:AVERAGE','CDEF:med2=used2,100,*,total2,/','LINE2:med2#ff0000:/stand...........','GPRINT:med2:MAX:%6.2lf','GPRINT:med2:MIN:%6.2lf','GPRINT:med2:AVERAGE:%6.2lf\n','DEF:total3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:total:AVERAGE','DEF:used3=/etc/webmin/sysstats/modules/disk-0.13.1/i3.rrd:used:AVERAGE','CDEF:med3=used3,100,*,total3,/','LINE2:med3#00ff00:/................','GPRINT:med3:MAX:%6.2lf','GPRINT:med3:MIN:%6.2lf','GPRINT:med3:AVERAGE:%6.2lf\n','COMMENT:Created Mon Jul 11 12h54m58s 2005'
2005/07/11 10:54:58 main::graph_common(./sysstats-lib.pl 1021) warning : ERROR while creating graph : unsupported graphics format ''
___________________________________________