Move MonIn calls to background
This commit is contained in:
parent
c4fbf7c1d9
commit
f3ad7adfa8
@ -18,7 +18,7 @@ Parm3:
|
||||
-For Metric updates this represents the numeric data that you wish to send.
|
||||
***************************************************************/
|
||||
|
||||
Declare Subroutine Errmsg, Error_Services, Delay, Mona_Services
|
||||
Declare Subroutine Errmsg, Error_Services, Delay, Mona_Services, Service_Services
|
||||
Declare function Get_Status, SRP_Datetime, Environment_Services, Httpclient_Services
|
||||
#pragma precomp SRP_PreCompiler
|
||||
|
||||
@ -44,17 +44,23 @@ Options STATES = 'OK', 'WARNING', 'CRITICAL'
|
||||
|
||||
Service SendStatus(MonitorName=MONITORS, StatusName, CurrentState=STATES)
|
||||
|
||||
Mona_Services("SendBufferedStatus", MonitorName, StatusName, CurrentState)
|
||||
Mona_Services("PostStatus", MonitorName, StatusName, CurrentState)
|
||||
|
||||
end service
|
||||
|
||||
Service PostStatus(MonitorName, StatusName, CurrentState=STATES)
|
||||
Service_Services('PostProcedure', 'MONA_SERVICES', 'SendBufferedStatus':@VM:MonitorName:@VM:StatusName:@VM:CurrentState)
|
||||
end service
|
||||
|
||||
Service SendMetric(MonitorName=MONITORS, MetricName, Number)
|
||||
|
||||
Mona_Services("SendBufferedAverageMetric", MonitorName, MetricName, Number)
|
||||
Mona_Services("PostAverageMetric", MonitorName, MetricName, Number)
|
||||
|
||||
end Service
|
||||
|
||||
Service PostAverageMetric(MonitorName, MetricName, Number)
|
||||
Service_Services('PostProcedure', 'MONA_SERVICES', 'SendBufferedAverageMetric':@VM:MonitorName:@VM:MetricName:@VM:Number)
|
||||
end service
|
||||
|
||||
Service SendBufferedStatus(MonaResource, StatusName, StatusValue)
|
||||
|
||||
@ -195,3 +201,4 @@ SwapResourceNames:
|
||||
|
||||
return
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user