Not sure if this helps but we forward all our GAS events via SNMPTrap to our enterprise event management solution (in this case Netcool Omnibus).
This includes 'STATUS OF AGENT PLATFORM xxxxxxxx CHANGED TO UNAVAILABLE'.
Let me know if you want more information on this.
Run a cyclic job on CTM/server local agent machine with command
"ctmping -HOSTID <hostname> -discover N" and in On-Do send mail on failure.
Thanks Paul. We currently sending all SNMP alerts to a file. I was thinking to have a script looking for 'STATUS OF AGENT PLATFORM xxxxxxxx CHANGED TO UNAVAILABLE'.and email it to a particular group for resolution. I think "Case" statement should do it.
Thanks Samarth, I was thinking about what you suggested but we will have to have 150+ ON-DOs because that's have many servers we have in our Prod environment.
Then SNMP traps are best options.
Generate a "SNMP traps on xalerts". This way you don't have to create a job to monitor agent with "ctmping" command (saving on licensing part).
I don't think Agent status alerts come out in xAlerts, they come out in the general Global Alerts Server, so standard SNMPTrap setup should be fine. It is certainly a good idea to be trapping xAlerts and notifying someone though!
Agent information is stored in CMR_NODES table of ctm server database.
You can run below query to extract details of unavailable agents:
select nodeid,HOSTNAME,last_upd from CMR_NODES where agstat='U' and nodetype='N'
Hope this will help.
Generally there are server monitoring tools available almost in every environment, so you may like to check one of such tools in your environment. If you have some sort of monitoring tool than get control-m agent processes monitored. Monitoring tool can also send email alerts accordingly. Some of the tools are HPOV, BPPM etc
Here is the command : agent_list | grep 'Agent' | grep 'Un' to check if the agent is available or not.
And you can set an alert when status code '0'.
Kindly update back if it had help you out.