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

Runtime errors #2

Open
hashfaster opened this issue Dec 7, 2015 · 6 comments
Open

Runtime errors #2

hashfaster opened this issue Dec 7, 2015 · 6 comments

Comments

@hashfaster
Copy link

All looks well, runs, grabs data, creates the status files with real data.. but on the second run I get:

[root@ovmm01 graylog]# sh mysql-status.sh
Warning: Using a password on the command line interface can be insecure.
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
Runtime error (func=(main), adr=9): Divide by zero
/root/graylog

@arikogan
Copy link
Owner

arikogan commented Dec 8, 2015

Hi,
You are supposed to have two files,
status.last
status.current
Could you please run grep Uptime <file> on both files and paste the contents here?
Thanks.

@hashfaster
Copy link
Author

It looks like current gets removed. At end of script the mv command does that.

On December 8, 2015 3:32:47 AM EST, Ariel Kogan [email protected] wrote:

Hi,
You are supposed to have two files,
status.last
status.current
Could you please run grep Uptime <file> on both files and paste the
contents here?
Thanks.


Reply to this email directly or view it on GitHub:
#2 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@arikogan
Copy link
Owner

arikogan commented Dec 9, 2015

You are right. Can you run the following at take a look if Update changes?
watch -n 60 grep Uptime status.last
Only thing I can think of for now is that files are not being changed and Uptime stays the same.

@hashfaster
Copy link
Author

Appears to be updating.

Every 60.0s: grep Uptime status.last

                                Wed Dec  9 15:58:08 2015

Uptime 517710
Uptime_since_flush_status 517710

On 2015-12-09 05:51, Ariel Kogan wrote:

You are right. Can you run the following at take a look if Update
changes?
watch -n 60 grep Uptime status.last
Only thing I can think of for now is that files are not being changed
and Uptime stays the same.

Reply to this email directly or view it on GitHub [1].

Links:

[1]
#2 (comment)

@arikogan
Copy link
Owner

@hashfaster Dave, apologies I haven't been able to look into this. I need to change the script to allow some debugging but I can't find the time to do it now. Let's leave this open, hope to work on that soon.

@tetrode
Copy link

tetrode commented Jul 9, 2016

When running with cron, make sure that your path to mysql is added to the script

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

No branches or pull requests

3 participants