[Solved] graf and alert on data from temperature weblog
-
Hi
i have a temperature monitoring device that logs temperature to an onboard log file accessible over web like this : http://ipadress/spilog.txt
i logs the temperature ever 5 minutes in this format:
2012/03/23;09:35:00;0;3;3;1;0;2;0;3;0;
2012/03/23;09:35:00;0;4;2;151;0;152;0;
2012/03/23;09:40:00;0;0;1;59300;276;
2012/03/23;09:40:00;0;3;3;1;0;2;0;3;0;
2012/03/23;09:40:00;0;4;2;151;0;152;0;
2012/03/23;09:45:00;0;0;1;59300;276;
2012/03/23;09:45:00;0;3;3;1;0;2;0;3;0;
2012/03/23;09:45:00;0;4;2;151;0;152;0;
2012/03/23;09:50:00;0;0;1;59300;277;
2012/03/23;09:50:00;0;3;3;1;0;2;0;3;0;
2012/03/23;09:50:00;0;4;2;151;0;152;0;
2012/03/23;09:55:00;0;0;1;59300;276;
2012/03/23;09:55:00;0;3;3;1;0;2;0;3;0;
2012/03/23;09:55:00;0;4;2;151;0;152;0;
2012/03/23;10:00:00;0;0;1;59300;275;
2012/03/23;10:00:00;0;3;3;1;0;2;0;3;0;
2012/03/23;10:00:00;0;4;2;151;0;152;0now i would like to collect info from: where i can identify the temp monitor and current value
2012/03/23;10:00:00;0;0;1;59300;275;
device---------------------------^
current value----------------------------^ <- in this case the temperature is 27,5 degrees celciuswhat approach is the best in order log log and alert based upon these values?
regards
-
I would create a script which will get the file, parse it, and push values to NetXMS server using nxpush command. Then you can work with the values as usual - set thresholds, show history, etc.
Best regards,
Victor -
-
I ended up solving it via externalparameter, wrote a vb script to parse the value from the weblog and returning it to the node works like a charm allthough i had to restart the Netxms core server before i could "rearm" the value when falling below configured threshold.
-
@goriem said in [Solved] graf and alert on data from temperature weblog:
I ended up solving it via externalparameter, wrote a vb script to parse the value from the weblog and returning it to the node works like a charm allthough i had to restart the Netxms core server before i could "rearm" the value when falling below configured threshold.
Can you show me configuration of your thresholds? That should not require server restart.
Best regards,
Victor -
-
What events are generated on activation and deactivation of the threshold? Could you check than in case when value goes back to normal level deactivation event is generated or not?
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