just wondering if there is a way to trigger an alarm/alert if a new robot gets added / joins the domain..
I think this has been discussed before too. Probably the easiest way to do it is to check db cm_nimbus_robot or scan hubs with a NAS script.
Haven't looked into it, but you might be able to do it by subscribing to audit messages too.
If you attempt to script a check for new robots, another option would be to use the getrobots callback on each hub. In the response, the details for each robot include a created field that contains the timestamp of when the robot first registered with the hub. The timestamp is an integer--"Unix time"--but this is the same format as timestamps in Lua, which would make it easy to use. This only works well if you do not enable automatic unregister on the robots, and I am not sure how it would look when a robot fails over from its primary to its secondary hub.
If using the getrobots method, make sure to take into consideration that robots may bounce between hubs.
Another way could be to make a package with a post-install command running nimalarm with some parameters. This package could be installed (and run) using request.cfg in your robot install. The viability of this approach depends on what you actually mean with "new robot gets added/joins the domain".
For package installation your best bet is probably the request.cfg file.
Retrieving data ...