Cb Response 5.x
How to remove the check for duplicates caused by multiple DNS Names for a single sensor.
psql -d cb -p 5002 -c "SELECT id,computer_name,computer_dns_name,last_checkin_time,registration_time FROM sensor_registrations ORDER BY computer_name;"
cp /usr/share/cb/plugins/default_new_sensor_registration_callback.py /usr/share/cb/plugins/custom_new_sensor_registration_callback.py
#.filter(SensorRegistration.computer_dns_name == sensor_dns_name) \
Note: Make sure tabbing in the file remains the same.
python /usr/share/cb/plugins/custom_new_sensor_registration_callback.py
NewRegistrationCallbackModulePath=/usr/share/cb/plugins/default_new_sensor_registration_callback.py
NewRegistrationCallbackModulePath=/usr/share/cb/plugins/custom_new_sensor_registration_callback.py
service cb-enterprise restart
/usr/share/cb/cbcluster stop/usr/share/cb/cbcluster start