on 06-26-2007 6:01 PM
I'm having trouble getting metrics and alerts working in my 11.5 SP3 installation.
My server is running SQL Server 2005 and I have an ActivePortal database created. I've run the table creation script. My QualityPortal database is working OK so I don't think it's a SQL Server 2005 issue.
I've created a category, a metric, a monitor and subscribed to the monitor. I configured the monitor to be sure to generate an alert. I put the metric in the 5 min scan group. The scheduled task runs on the server without error. The ActivePortal tables are populated with the appropriate configuration information.
I get no indication of an error but my AlertLog is empty.
Any ideas?
I assume that you made both the metric and the monitor Active?
Are you getting values for the Metric?
Have you logged out and back in after you subscribed to the monitor?
Thanks,
Joe Montagna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joe,
Both metric and monitor are active. As far as values I'm not sure. When I 'Load Sample Data' in the metric editor, I get a value back which is correct but nothing is being posted in the 'MetricCurrent' or 'MetricHistory' tables. (The other tables have rows corresponding to the metric and monitor configuration but I'm assuming the 'MetricCurrent' and 'MetricHistory' tables store the results.)
I've logged out and back in (which I did after I rebooted the server).
Thanks for the help.
David
Hey Joe,
How are you?
David,
I think I know what you may be missing.
Did you schedule this metric.?
Based on the scan group it needs to run as a Windows Scheduled task.
Refer to Running Metrics & Monitors under Metric/Alerts in help.
Another alternative to above is schedule a BL transaction but right now I do not have the details as to what goes in that transaction.
Joe, I created a query template to retrieve L1Speed. I created a metric, put L1Speed in for the expression and assigned it to the 5min scan group. I created a Monitor assigned to the L1Speed metric that triggers when the value is >= zero. I subscribed to the monitor. Both metric and monitor are marked as 'Active'.
The configuration information for the new metric and monitor are in the appropriate ActivePortal tables and - after the scheduled task ran for the first time - the MetricCurrent table has a record in it (MetricID=5, EventTime=2007-06-26 13:42:21.610, MetricValue=0, Valid=N). Subsequent running of the scheduled task did not add additional rows to the MetricCurrent table. My AlertLog is still blank.
Good news and bad news but I think we're making progress.
When setting up the scheduled task - make sure that you enter the correct password to allow it to run.
You can eneter the password for the task by right-clicking the task from the scheduled tasks window and choosing properties. On the Task tab you should see a "set password" button. click it and enter your password. You will only need to do this one time.
Let me know if that works.
Joe
Joe,
The Scheduled Task status field is blank, the last result field is 0x0, the last run time is 2:40 pm, the next run time is 2:45pm.
So the MetricCurrent table jives with what you just said about one row per metric but the MetricHistory table is blank (no rows) and I'm historizing both metrics.
David
Try checking the general log for any messages.
There is a System Alert Log (I am not sure if this is different from the Alert manager/Alert Log ) that lists out any errors corresponding to the Metrics that you configure.
Try checking this log and also let me know if System Alert Log & the Alert log are the same thing.
I re-rentered the password for the scheduled task and re-ran the task. The AlertLog is still blank and the MetricHistory table is record-less.
I should mention that the account I'm using for the scheduled task is an ActiveDirectory account, not a local server account. The account is in the server's local administrator's group.
David
Hi Udayan,
No. I've tried several other things but to no avail. Everything seems to be set up OK for the metric and monitor. Both are Active, both are assigned to the Everyone role. The scheduled tasks run without visible error on the server but nothing shows up in the Alert Log and nothing gets posted in the ActivePortal database.
I'm heading out for a week off. Maybe my mind will be clearer when I return on July 9th. I appreciate your help with this?
Regards, David
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.