Monday, April 06, 2009

Expired certificates on Hyper-V

If you have a message that you cannot connect to the VM because the certificate is expired, the solution is here : http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/1a3e8f1b-379b-4569-9b39-bb568d2a7e3f/ (Thanks to Mark).

I have summarize the steps just if the link is dead :

  • Stop the Hyper-V Management service
  • Run mmc, add the certificates, choose "Services", and browse for Hyper-V management
  • Go to Personal, delete the certificate
  • Restart the Hyper-V Management service
  • Check in the certificates console if you see the new certificate (Refresh)

Wednesday, April 01, 2009

Zabbix trapper

Zabbix is a great tool, I'm currently trying to put in place, the snmp trap management. I have followed the manual for the installation, but I have seen that the script snmptrap.sh is not complete.

For my version (1.6.2), there are some missing parameters as -z -k -o etc. You need to update the script. The recommended solution is certainly to put at the last line a "echo" and redirect the ouput to a file to see if the zabbix script is called by snmptrapd, and if the new command is well builded.

echo $ZABBIX_SENDER $ZABBIX_SERVER $ZABBIX_PORT $HOST $KEY "str" /tmp/snmpresult.txt

When you have the result in snmpresult.txt, you can modify and add the missing parameters.

$ZABBIX_SENDER -z $ZABBIX_SERVER -p $ZABBIX_PORT -s $HOST -k $KEY -o "$str"

The best solution came from Pierky (http://pierky.wordpress.com/2009/01/30/zabbix-snmp-traps-mapped-to-the-right-host/).

Tuesday, February 17, 2009

RedHat installation dev tools

Just a reminder for me (I'm not a regular user of the RedHat distribution) :
yum install gcc gcc-c++ autoconf automake

Monday, January 12, 2009

Reset MySQL root password

For Redhat,
Just a reminder for a working solution.

  • service mysqld stop
  • mysqld_safe --skip-grant-tables &
  • mysql -u root mysql
  • UPDATE user SET Password=PASSWORD('new_password') WHERE user='root';
  • FLUSH PRIVILEGES;
  • exit
  • service mysqld start