Hi! Your datasource has outputtype Performance!System.Performance.Data But your monitortype expects property bag.
You have to have a datasource for Performance data and one for property bag. You can define the script as propetype Venlig hilsen Henrik Andersen X86 infrastructure Direkte +4563636158 Mobile +4521579037 [email protected] [cid:[email protected]] JN Data A/S · Havsteensvej 4 · 4000 Roskilde Telefon 63 63 63 63/ Fax 63 63 63 64 www.jndata.dk [cid:[email protected]] Fra: [email protected] [mailto:[email protected]] På vegne af Gareth Miles Sendt: 27. august 2015 11:48 Til: [email protected] Emne: [msmom] Monitor in cookdown script is not changing state - Help please Hi I have a cookdown vb script that gets property bag per SQL Instance, with a collection of values for each SQL Job. I have a perf collection rule to collect the "last completed run status" of the job, and I have a monitor to go healthy if the lastrunstatus is 1 or 5, and critical if the lastrunstatus is 0. The cookdown script collects the data as expected, and the rule is writing to the DB as expected. The monitor is not changing state though, it shows all the jobs as healthy, although one is not. It doesn't seem to be picking up the value collected by the DataGenericMapper module. I've attached the management pack, this is what it consists of. The Timed Script Property Bag Provider is hard coded with Interval and SynTime as I didn't want these overridden. Data Source (To collect the data) GarethCookDownSQLJob.VBScript * (Data Source) Timed Script Property Bag Provider * (Conditon Detection) Performance DataGenericMapper Data Source (To Filter on the jobs) GarethCookDownSQLJob.VBScriptFiltered * (Data Source) GarethCookDownSQLJob.VBScript * (Conditon Detection) System Expression Filter MonitorType * (Data Source) GarethCookDownSQLJob.VBScriptFiltered * (Conditon Detection) System Expression Filter (Healthy) * (Conditon Detection) System Expression Filter (Critical) Monitor (To monitor Job Last Run Status) Rule (To collect Job Last Run Status) Any help would be appreciated Kind Regards [ITServiceAssurance_Logo (2)] Gareth Miles System Center Technical Lead Phone: +27 31 580 1582 Mobile: +27 83 648 8559 ________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Furthermore, the information contained in this message, and any attachments thereto, is for information purposes only and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of the company. ________________________________
