Skip to main content

Posts

Showing posts with the label ubuntu

Windows Testing Using Kitchen Chef

Kitchen-Vagrant has the capability to spin up a windows instatance for testing. To make it make it work you will need the vagrant-winrm to be installted on the workstation. Installing vagrant-winrm ┌─[ahmed][zubair-HP-ProBook][~/work] └─▪ vagrant plugin install vagrant-winrm Once you have have installed you might still get the below error. ┌─[ahmed][zubair-HP-ProBook][~/work] └─▪ kitchen list ------Exception------- Class: Kitchen::UserError Message: WinRM Transport requires the vagrant-winrm Vagrant plugin to properly communicate with this Vagrant VM. Please install this plugin with: `vagrant plugin install vagrant-winrm' and try again. Please see .kitchen/logs/kitchen.log for more details Also try running `kitchen diagnose --all` for configuration Download Windows Box. There is a nice repos which creates windows vagrant box. git clone https: / /github.com/boxcutter /windows.git Here is the output. ┌─[ahmed][zubair-HP-ProBook][~/work] └─▪ git clone https://...

Issues - Monitoring MongoDB using Nagios XI.

Monitoring for mongodb using nagiosxi is straight forword but you might have some issues when we are setting up. Here are few issues which might come up using mongodb version 3 . Issue getting monitoring data in nagios . 1. ConnectionFailure object has no attribute strip [ahmed @localhost libexec] $ ./check_mongodb.py - H 192.168 . 94.137 - P 27017 -u admin -p admin Traceback (most recent call last) : File "./check_mongodb.py" , line 1372 , in < module > sys.exit(main(sys.argv[ 1 : ])) File "./check_mongodb.py" , line 196 , in main err, con = mongo_connect(host, port, ssl, user, passwd, replicaset) File "./check_mongodb.py" , line 294 , in mongo_connect return exit_with_general_critical(e), None File "./check_mongodb.py" , line 310 , in exit_with_general_critical if e.strip() == "not master" : AttributeError : 'ConnectionFailure' object has no attribute 'strip...