DX Infrastructure Management

 View Only

TECH TIP : How to automatically add "automatic" services to ntservices probe 

Nov 24, 2017 06:54 AM

If you want automatically add “automatic” services to ntservices probe

You can use the below key.

 

<setup>/auto_detect_new = yes

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Dec 06, 2017 02:11 PM

If you wanted to do this via MCS then you need to run a couple of queries to update/insert rows in the database, for that template...

 

You need to update the setup_ntservices template so that the default value is set to yes for delete_profile_section

update SSRV2Field set defaultvalue = 'yes' where cfgkey = '/setup/delete_profile_section' and template = (select templateId from SSRV2Template where templateName = 'Setup ntservices' and production = 1)

 

And add a dropdown value for the "active" field on the template

insert into SSRV2SelectOption values('Automatic', 'automatic', (select id from SSRV2Field where cfgkey = '/setup/default/active' and template = (select templateId from SSRV2Template where templateName = 'Setup ntservices' and production = 1)))

After that, bounce the mon_config_service and restart the USM webapp (in the ump wasp gui)

The login to UMP/MCS and select setup_ntservices.

Check the "automatically add new services"

Select "expected state" to Automatic

Save.

 

This will monitor all automatic services on hosts in that group.

btw you could change the "automatic" value with "running" if you so desire.

 

Note: if you reinstall the product with a clean database you will need to rerun these queries.

 

Nov 27, 2017 03:08 AM

Big Thanks ! Rowan.

Nov 24, 2017 10:42 AM

Ah…Yu,

When I told you that little top tip, I later found out it wasn't quite the whole story

 

You need a few more keys than that single one!

 

Put the following in a package, deploy to clean ntservices probe and it will work a treat – automatically monitor all your services which are set to ‘automatic'

 

<setup> overwrite

   auto_detect_new = yes

   delete_profile_section = yes

   <default> overwrite

      active = automatic

      action = report

      qos = no

      subsystem = 1.1.2.1

      severity = major

      alarm_on_action = yes

   </default>

</setup>

 

Needless to say this isn't documented anywhere and has taken me several hours of trial and error and testing to get this!!

A true Top Tip !

 

Cheers

Rowan

Related Entries and Links

No Related Resource entered.