I am wondering if there is any way to use API calls to add robots to an Infrastructure Group using LUA or any language would be ok?
Perhaps you can have a look at http://forum.nimsoft.com/t5/General-Development/VB-NET-Silently-install-Windows-based-robots/td-p/7037 to do same in VB.NET.
EDIT : I am assuming that you are looking for installation of robots which will result them in getting added automatically under equivalent hub. If robot is already there and you want to add them in some group, I am not sure how to do that.
Yes, that thread will give you what you need for automatically adding robots, additionally, once the robots are added you'll leverage the Request.cfg file to automatically add your nodes to specific groups based off user_tags, you can do this by having the request.cfg pull in a custom probe that sets the user tags. User Tags are the groups you'll want to use right now - in the future these will be replaced by the USM groups, if you need additiona info on User Tags and their benefits, watch my video.
You'll need a few things to set this up... First, if not already enabled set the Group Server to create groups on user tags on the "General" tab, next, create a custom probe based on a robot and edit the CFX in the Archive to something like this:
os_user1 = Database
os_user2 = MySQL
Following the example above, give it a name of User_Tag_MySQL and in your request, modify it to this:
packages = cdm, processes
Hope this helps!
No not for installing robots, but for Robots that are alreay installed and running I am wanting to run LUA code and check for certain monitor points and then if it meets my criteria then Add it to an Infrastructure Group that we could then use for deployment of Probes. Where is the Infrastructure Groups information stored?
I wouldn't leverage the Infrastructure Groups too heavily, they just don't scale that well - I recommend watching the video I posted earlier to look into User Tags/Dynamic Groups.
Also, you should check out the USM, the way it works with building dynamic groups based off filters and uses monitoring templates is VERY cool - I used it all last week and really loved it, the only "gotcha" with it is that only 25 probes are supported in it today, expect to see many more probes added/supported within the next couple of months.
Retrieving data ...