How to create an 'uptime' graph?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to create an 'uptime' graph?
# 1  
Old 11-09-2014
How to create an 'uptime' graph?

Hi,

Can someone advise how to create an uptime graph? I want to create one for an Oracle database to be able to show how long it's been up for.

UNIX SA dont't want to install any database plugin that I can use. I am just looking for something 'simple' similar to Nagios/Cacti.

Not sure what information I should retrieve from the database except one that check whether it is up or not.

Any advise much appreciated. Thanks in advance.
# 2  
Old 11-09-2014
Wouldn't that be just a number (days/hours)?
# 3  
Old 11-12-2014
Quote:
Originally Posted by RudiC
Wouldn't that be just a number (days/hours)?
Hi,

Yep, it is sort of a number. Everyday, I will check the startup_time of the database, if it is = 24 hours = 1440, then it is up for the whole day, otherwise it x/1440 up only. Then at the end of the month, I will painfully use Excel to graph it.

I am wondering if there is anyway I can use a script to make some kind of html graph instead or that is not possible ???Smilie ... I guess I am trying to work out how Nagios/Cacti does it and do a similar thing.
# 4  
Old 11-12-2014
Can I suggest using gnuplot. Have a look at this thread: GnuPlot in Bash where I discuss using gunplot to plot filesystem freespace - very similar concept to your requirement.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. War Stories

Once upon an uptime.

Hi All, Having recently started a new job, a Data Center Migration in fact I have been tasked with looking at some of the older Solaris boxes when I came across this little gem. nismas# uname -a SunOS nismas 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-1 nismas# uptime 10:37am up 2900... (2 Replies)
Discussion started by: gull04
2 Replies

2. Red Hat

Difference between uptime and who -b

Hi Folks, I have been checking on a redhat server for patching, when I tried the output for uptime and who -b both are not matching. I do not know the reason what happened and why it seems like this. Please assist someone and explain in detail. I would appreciate if I get the right... (5 Replies)
Discussion started by: seenuvasan1985
5 Replies

3. Shell Programming and Scripting

Extract the uptime from the output of the uptime command

Hi! I want to extract the uptime from the output of the uptime command. The output: 11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43 I just need the "3:02" part. How can I do this? Dirk (6 Replies)
Discussion started by: Dirk Einecke
6 Replies

4. Linux

uptime options

Hi All is there a way that i can return uptime if the machine has been on for longer than 4 days thanks ab (3 Replies)
Discussion started by: ab52
3 Replies

5. UNIX for Dummies Questions & Answers

create graph with detail info

hey, i want to create a graph. The graph should show how many IPs are connected to a pool. But the graph should also show which IPs are connected. Does anyone know a tool which is able to do that? I already worked with PNP but I think this can't work because of rrd. (6 Replies)
Discussion started by: vostro
6 Replies

6. UNIX for Dummies Questions & Answers

linux rrdtool help create graph

I need some help with creating graphs using the rrdtool. I have never used it before. I installed by yum install rrdtool. Basically I have a txt file with these values 432 542 234 531 1004 Does anyone know the syntax of rrdtool to automatically take the values from the txt file and... (1 Reply)
Discussion started by: borderblaster
1 Replies

7. UNIX for Dummies Questions & Answers

Uptime

hello folks! how can I display just the uptime without the current time, the word "up", and the load averages using the uptime command or some other command I do not know about? (13 Replies)
Discussion started by: MastaFue
13 Replies

8. UNIX for Dummies Questions & Answers

uptime

On HP-UX, the 13th argument of uptime is sometime the load and sometime the word AVERAGE:??? 14 Jun 06 5:00pm up 44 days, 54 mins, 0 users, load average: 0.00, 0.02, 0.03 14 Jun 06 5:15pm up 44 days, 1:09, 0 users, load average: 0.00, 0.01, 0.01 When the time is in minutes, then the load... (1 Reply)
Discussion started by: qfwfq
1 Replies

9. UNIX for Dummies Questions & Answers

Getting uptime

I'm trying to get the uptime of my computer (Mac OS X) and I can go into the terminal and type "uptime" OK, and that gives me a string with the uptime in it. The problem is that the string changes a lot, and its very difficult to get the data I'm trying to extract out cleanly. Now I have 3... (2 Replies)
Discussion started by: Freefall
2 Replies

10. UNIX for Dummies Questions & Answers

uptime

Hi Folks uptime 12:24pm up 2 days, 3:12, 4 users, load average: 0.00, 0.00, 0.00 what does the load average figure mean.. regards Hrishy (2 Replies)
Discussion started by: xiamin
2 Replies
Login or Register to Ask a Question