```ruby
#!/bin/env ruby

require_relative '/var/www/miq/vmdb/gems/pending/bundler_setup'
require 'postgres_ha_admin/failover_monitor'

monitor = PostgresHaAdmin::FailoverMonitor.new
monitor.monitor_loop
```

Use manageiq-gems-pending gem instead of require_relative
user
```ruby
#!/bin/env ruby

require 'manageiq-gems-pending'
require 'postgres_ha_admin/failover_monitor'

monitor = PostgresHaAdmin::FailoverMonitor.new
monitor.monitor_loop
```
assistant