MySQL Forums
Forum List  »  German

Filter the output of show global status
Posted by: Marcel Pfiel
Date: November 23, 2018 07:27AM

i am trying to monitor a mysql database with Icinga. So Icinga runs a script with a sql statement and expect a single number as return code. When Icinga run following sql statement:

show global status like "Com_delete";

MariaDB returns 2 columns. Variable_name & Value. Like this:

| Variable_name | Value |
| Com_delete | 40927 |

How can i filter this statement that i just get this:

| Value |
| 40927 |

But i have to realize it only with sql to use it with Icinga. Can somebody please help. I dont have any idea how to google this :D

Options: ReplyQuote

Written By
Filter the output of show global status
November 23, 2018 07:27AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.