ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ File Transfer Edition » Deleting the MFT monitor

Post new topic  Reply to topic
 Deleting the MFT monitor « View previous topic :: View next topic » 
Author Message
varunraot
PostPosted: Sat Feb 18, 2017 8:53 am    Post subject: Deleting the MFT monitor Reply with quote

Acolyte

Joined: 01 Jun 2011
Posts: 63

Is there any other way to delete monitor specific to an agent provided if below methods are already been tried and still monitors does not get deleted

1. fteDeleteMonitor
2.fteCleanAgent
3.fteDeleteAgent

Even after trying above methods, fteListAgents still shows the monitors associated with deleted monitor.
Back to top
View user's profile Send private message
tomleend
PostPosted: Tue Feb 21, 2017 10:21 am    Post subject: Reply with quote

Acolyte

Joined: 24 Jan 2014
Posts: 51

Hi varunraot,

I assume you mean they are still listed via the fteListMonitors command (rather than the fteListAgents command)?

So, it is important to understand that the definition/configuration of an MFT Resource Monitor is held in two messages on SYSTEM.FTE.EVENT.<agent_name> queue for the MFT agent that was running the Resource Monitor. For example, if I had defined a Resource Monitor to run on an agent called "AGENT1", then there would be two messages on the SYSTEM.FTE.EVENT.AGENT1 queue (one to hold the Resource Monitor definition, and one to hold runtime/history information for that Resource Monitor - so it does not trigger on the same files twice, for example).

If those messages are deleted by the host agent, after running the fteDeleteMonitor command, or forcefully removed from the queue by the fteCleanAgent command, then the Resource Monitor will no longer be run by the agent on which it was defined.


The fteListMonitors command subscribes to the SYSTEM.FTE/monitors topic on the coordination queue manager to get information about Resource Monitors that have been defined in an MFT topology. Retained publications are used by MFT agents to report information about Resource Monitors they are running.

Now, if a Resource Monitor has been forcefully deleted (before manual removal of messages from the SYSTEM.FTE.EVENT queue) or a recreate of an agent's queue manager, then the state of resource monitor messages and their retained published status can become out-of-sync.

So, if you are in this case, you just need to do a bit of manual clean-up of the topic tree space on the coordination queue manager.

This can be done using an MQSC command, run against the coordination queue manager:

Code:
  CLEAR TOPICSTR('SYSTEM.FTE/monitors/#') CLRTYPE(RETAINED)


This will clean the entire topic tree nodes of retained messages from 'SYSTEM.FTE/monitors’ down. If you only have a few deleted resource monitors that are still being displayed but have other non-deleted resource monitors displayed, then a more targeted MQSC command might be necessary. In which case, add the name of the resource monitor that was deleted:

Code:
CLEAR TOPICSTR('SYSTEM.FTE/monitors/<MONITOR_NAME>/#') CLRTYPE(RETAINED)
Back to top
View user's profile Send private message
varunraot
PostPosted: Wed Feb 22, 2017 12:54 am    Post subject: Reply with quote

Acolyte

Joined: 01 Jun 2011
Posts: 63

Thanks. After executing the command CLEAR TOPICSTR('SYSTEM.FTE/monitors/#') CLRTYPE(RETAINED), I dont see any monitors getting listed when issued with

fteListMonitors -v -p <Coordination Queue Manager Name>

BFGCL0242W: No monitors exist that match the current selection criteria.

Monitors exist in the background as I could see file transfer happening. How do I bring back those invisible monitors to visibility?
Back to top
View user's profile Send private message
tomleend
PostPosted: Wed Feb 22, 2017 3:54 am    Post subject: Reply with quote

Acolyte

Joined: 24 Jan 2014
Posts: 51

Agents hosting Resource Monitors will publish state about them when they are started and stopped. So, stopping and then starting your agents should result in a new trained message being published to the SYSTEM.FTE/monitors topic on the coordination queue manager that can then be picked up by the fteListMonitors command.
Back to top
View user's profile Send private message
Manuel
PostPosted: Fri Jun 09, 2017 4:37 am    Post subject: Reply with quote

Newbie

Joined: 09 Jun 2017
Posts: 3

Hi.

I'm having the same problem.
Deleted agent
Deleted queues
Deleted monitors

ftelistmonitors keep listing the delete monitor.

I already did the clear topicstr and the problem persists.

Any idea?
Back to top
View user's profile Send private message
Manuel
PostPosted: Fri Jun 09, 2017 4:38 am    Post subject: Reply with quote

Newbie

Joined: 09 Jun 2017
Posts: 3

Examples in the following images:

http://imgur.com/a/JA9rF
http://imgur.com/a/9HBil

Thanks
Back to top
View user's profile Send private message
Manuel
PostPosted: Tue Jul 04, 2017 3:11 am    Post subject: Reply with quote

Newbie

Joined: 09 Jun 2017
Posts: 3

Any help?
Back to top
View user's profile Send private message
varunraot
PostPosted: Sun May 06, 2018 10:06 pm    Post subject: Reply with quote

Acolyte

Joined: 01 Jun 2011
Posts: 63

I am "reinitiating" this thread as there is no evident solution to this MQ MFT annoying bug

Its unfortunate and annoying bug of MQ MFT where below first 3 methods of deleting the monitor just does not work ( applicable only in few cases and not always) and there is no mention of it in Info Center either and not been addressed with subsequent releases.

1.fteDeleteMonitor
2.fteCleanAgent
3.fteDeleteAgent
4.CLEAR TOPICSTR('SYSTEM.FTE/monitors/<MONITOR_NAME>/#') CLRTYPE(RETAINED)

The CLEAR TOPICSTR('SYSTEM.FTE/monitors/#') CLRTYPE(RETAINED) would work, however it would make all monitors to disappear from the MQ MFT Plug in in WebSphere MQ Explorer as well as in fteListMonitors command.

It would be dumb suggestion to restart agents to make it appear as this is not viable solution in production environment and if you have

1. Many agents under a coordination queue manager ( You can not keep restarting all agents in production environment)

2. If you would like to edit the monitor (How would you edit the monitor if its not rendered in MQ MFT plug in or in command line)

Any definite way of addressing this weird feature is highly appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ File Transfer Edition » Deleting the MFT monitor
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.