How to use check_mysql_health plugin on windows? - mysql

How to use check_mysql_health plugin on windows, please list down all the steps.

This link - http://labs.consol.de/nagios/check_mysql_health/
explains the installation of check_mysql_health
Assuming you have Nagios setup ready
Assuming you have followed all the steps mentioned my the excellent gentleman who created the plugin
assuming you have allowed MySQL through windows firewall
assuming you have user who can access all the USAGE information of MySQL (you can use root user)
assuming you can access the windows MySQL server from the Nagios machine (using the same user in step above)
The task is accomplished. (Or I have not understood question at all)
Do you still need steps ?

Related

How to access a database on mySQL on Windows Server 2012

I have no idea how Windows Server works. All I want to do is gain access to a database in mySQL on Windows Server. Is there a phpmyadmin like there is on Cpanel? I have no idea where to go.
It's a Windows Server 2012 that runs Apache and mySQL on which Wordpress is installed.
Someone please help.
Personally, for accessing mysql databases in a windows app, I use HeidiSQL.. But we don't do recommendations for software on SO, so you're free to choose whatever you want and I'm not going to focus on particular software in this answer
To access the mysql instance you'll need to know the username and password of a user with sufficient privileges to do what you want. If you don't know this username/password, a good place to sart looking is in the config files of any apps (like your apache web apps, wordpress etc) that use the db and see if you can read the password out in plain text there.. With luck the person who set all this up will have left behind the username/password in a config file and yu're away. If your question is about how to break into a database where you don't know the password, make an edit so this is more clear
You might check to see if PHPMyAdmin or MySQL workbench is installed; both are great tools for managing MySQL databases and popular with Wordpress developers
Thanks guys. Yes the server happened to have HeidiSQL installed on it and I was able to access the database.
Thanks for your help.

Apache Drill Authentication in Windows

I am new in Apache Drill.I am running drill in embedded mode with window 10 operating system.
My question is how to authenticate drill. I want if any one start drill, it will ask for user name and password to start drill.
I know that drill use PAM Authentication. But I don't know how to use PAM in window 8.1 operating system & where and how to store username & password.
Please Suggest me or if possible give me some example how to restrict user to access drill in window 8.1 operating system.
Is Windows security supported, and if not: what would be the recommended route for adding Windows security?
You should be able to use custom authentication and configure in override.conf example class is specified in documentation
https://drill.apache.org/docs/configuring-user-authentication/
If you are trying to give access to few folders on your machine. Remove dfs.root from storage plugin and give access to the folders you would like to share.

2 factor authentication (2 step verification) with Google compute engine

Is there a possibility to enable 2 factor authentication (or 2 step verification a-la Google terminology) for Google compute engine?
I'm interested in protecting my VMs, cloud storage and the developers console.
I've tried using the Google Authenticator (libapm) referring to this article Securing SSH with two factor authentication using Google Authenticator on a VM but it didn't succeed (I managed to login with the gcloud compute shell with no additional code).
[Jan 12th]
Some updates:
Google developer console works perfectly. Thanks.
For 2-step verification with the compute-engine SSH access, I retried everything all over again. Followed the instructions mentioned in the links provided, and did the following:
I created a new Google-Cloud project.
I used 2 different OS instances - Debian 8.2 and Ubuntu 15.10.
All of these tests failed - there was no prompt for a verification code.
I looked around in the Google compute-engine documentation, and they mention explicitly they support only certificate authentication (rather than username/password), so I cannot verify whether this is the root cause.
Is there anyone using 2-step verification with Google compute-engine?
Thanks
At last - a solution (thanks for Google cloud support).
A couple of updates on top of the document I have referred to:
Apart of adding a line to /etc/pam.d/sshd, one should also comment out the #include common-auth line. So it should be something like:
auth required pam_google_authenticator.so # from the original instructions
# #include common-auth # commenting out is new...
Apart of changing the ChallengeResponseAuthentication property in /etc/ssh/sshd_config, one should also add AuthenticationMethods publickey,keyboard-interactive in the following line:
ChallengeResponseAuthentication yes # from the original instructions
AuthenticationMethods publickey,keyboard-interactive # this is new...
Of course, this is on top of the regular instructions of installing libpam-google-authenticator, changing the sshd and sshd_config (as mentioned above), restarting the ssh/sshd service, and setting up the google-authenticator for the account.
Finally, a few more points:
Consider this carefully - from restarting the ssh/sshd account, no one can login without proper 2FA. So make sure anyone who should have ssh access - configured it properly.
I'm contemplating whether this is the proper solution for us, as it requires setup the VMs (each VM separately), and manual setting up the authenticator per each account and each VM manually. Not sure how scalable is this alternative. I would appreciate your thoughts...
Last but not least - the setup of libpam-google-authenticator may be simplified by using apt-get, no need for manually installing all dependencies and building it. Worked for me by running:
sudo apt-get install libpam-google-authenticator
Good Luck!

Extracting couchbase password for community edition 3.0

I'm following the instructions from https://stackoverflow.com/a/16183654/1682047 to get the default password for the web administration interface for Couchbase community edition 3.0 on Mac OSX.
The output I'm getting is:
{"Administrator",
{password,
{<<238,136,67,75,141,237,40,59,33,177,155,180,223,187,81,66>>,
<<192,248,28,234,200,221,64,180,227,97,224,218,72,185,178,209,10,
35,227,195>>}}}]},
How do I interpret this?
Alternatively is the default password listed somewhere (doesn't show up when googling)? Links to couchbase forums from Google also seem to be broken.
The default account details are:
User: Administrator
Password: password
You can also use the cbreset_password tool to change forgotten passwords.
Oops, this was due to me having a data directory around from a previous install. To fix this I just deleted the existing directory at /Users/your_user_name/Library/Application Support/Couchbase.

How do I allow a user to install MySQL on a user's machine more easily so they can connect to it via a Java application?

Let's say I have written an application in Java that is programmed to use a MySQL database. The user of the Java application needs to have MySQL on their machine in order for the application to work.
What can I do to make sure that the user has the correct version of MySQL on their machine and if they don't then install it so they can properly run the Java application?
Note: I had sent some links to setup Java and MySQL for a business analyst of a program I am working on and he was not able to decipher the madness that is installing MySQL. He is not computer technical and wouldn't even know what to enter into the forms of the MySQL installation. What could I do to ease this task for the end user?
Update: Unfortunately, for security reasons that are a requirement for this project we have to use MySQL and not SQLite or Derby. Unless there is a way to make sure that no one deletes the SQLite database file or switches it out for another one. We need to guarantee data integrity and I find that using MySQL gives me the best chance at doing that.
What is the target platform?
Assuming something UNIXish, you can either:
1) Include a shell script to download, install, and setup mysql. Complicated, but not impossible.
2) Use an embedded Derby database. On my current project, we have a version where the user can just "download and go." That version uses an embedded Derby database that writes to a file, similar to hsqldb or sqlite3. Any of those are fine options.
The easiest thing for the user is to embed the database in the Java application. No setup required. There's MySQL OEM (not free), so you might consider switching to SQLite instead, which is the de facto standard embedded database. (See this question for more on that.)