DCI Error issue
-
Hello,
I'm trying to implement service that downloads file from my servers and gives me time of download. I am doing this via ExternalParameter.
Of course if download time is bigger then ExecTimeout in agent config I get an << ERROR >>. I want to change this error value to integer.
For example, if my download time is greater then 45 seconds, then return 60. I've tried to add the following transformation script, but it doesn't work.
Will be grateful for any help.sub main () { if ($1 < 46) return $1; else return 60; } -
@rostyslav said in DCI Error issue:
Hello,
I'm trying to implement service that downloads file from my servers and gives me time of download. I am doing this via ExternalParameter.
Of course if download time is bigger then ExecTimeout in agent config I get an << ERROR >>. I want to change this error value to integer.
For example, if my download time is greater then 45 seconds, then return 60. I've tried to add the following transformation script, but it doesn't work.
Will be grateful for any help.sub main () { if ($1 < 46) return $1; else return 60; }history for this DCI?
-
-
@rostyslav said in DCI Error issue:
There is no history.
collect some raw value (without transformation)
-
Hi!
Basically, you cannot convert data collection error to value. You only can set threshold on that. For long-running external parameters I would recommend using external parameter provider instead: http://wiki.netxms.org/wiki/ExternalParametersProvider.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login