- Go to your nagios top level directory, /usr/local/nagios.
- Use the check_http command line tool and make sure it works: ./libexec/check_http -H your.server.hostname -p 8443 -S Here the port is 8443. -S is the option to use SSL.
- Add a command, "check_https", to your etc/objects/commands.cfg file:
# 'check_https' command definitiondefine command{command_name check_httpscommand_line $USER1$/check_http -I $ARG1$ -p $ARG2$ -S}
- Add the host to be checked to the appropriate config file (see my previous post for an example, or see below).
- Make sure your don't have any typos: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
- Reload nagios: /etc/rc.d/init.d/nagios reload
Wednesday, February 10, 2010
Resetting Old Media Wiki Passwords in MySQL
I needed to reset a forgotten user password in an older version of Mediawiki that predates the changePassword.php utility. Also, email notifications were disabled. These are some clarifications of the instructions from http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_reset_a_password.3F. Here are the steps:
- Look at your LocalSettings.php file to remind yourself of the DB name, the DB prefix, user name and password associated with your Mediawiki installation. Let's say they are mywikidb, mywikiprefix, mywikiuser, and mywikipass, respectively.
- Login from the command line to your mysql: mysql -u mywikiuser -pmywikipass
- Change to the database at the mysql prompt: USE mywikidb;
- Verify things: SHOW columns FROM mywikiprefixuser;
- Verify more things: SELECT user_name, user_id, user_real_name, user_email FROM mywikiprefixuser;
- Change the password: UPDATE mywikiprefixuser SET user_password = MD5(CONCAT(user_id, '-', MD5('newpass'))) WHERE user_name="someuser";
Subscribe to:
Posts (Atom)