Monitor NM status using Uptime Robot / free

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Updated.

Monitor NM status using Uptime Robot : https://uptimerobot.com/

1) Monitor status + balance or status
Monitoring Url : http://drk.poolhash.org/poolhashrate/blocks/masterstatus.txt
Monitoring Type : Keyword :
a) Darkcoinaddress:6:5 ---> if flag or blance is changed, you will get alert.
b) Darkcoinaddress:6 ----> if flag is changed, you will get alert.

2) Monitor balance
Monitoring Url : http://drk.poolhash.org/poolhashrate/blocks/masterpaystatus.txt
Monitoring Type : Keyword :
a) Darkcoinaddress:5 ---> if blance is changed, you will get alert.


http://drk.poolhash.org/poolhashrate/blocks/masterstatus.txt for status + balance or status monitoring.
(status : updated every 3 min, balance :updated every 3 hours)

Code:
Xbx8VZiN9Y7HzronzzcNQGwJMvs5WMbJ2e:6:3
Xc21oizE7sNJVkSmfZm22CoP4G8Zvcrywg:6:3
Xc2PJQ7wGcbKD91Cxm6aAphYsW1crDX52b:0:0
Xc5pZ62EwWcYXXr3LXaPDBuaLDV7WzLXtz:6:3
Xc93sH82sCtfhzZDTWsduzmC9Kxb2jyJ8g:6:2

http://drk.poolhash.org/poolhashrate/blocks/masterpaystatus.txt for balance monitoring.
(balance updated every 3 hours)
Code:
XbEsSx94YaAwytFnPsjnGS4SEqihKq1Y9R:-
XbG2YFnMfM262nNDe1DmDd577d7zn7s2YP:0
XbGThzt5qkBVmUhpHP51ipFYQyPfFJuTEx:3
XbKsgzt85gNw3uxaqm6ADY8g3QSKXpfhHj:4
XbMnau4AKFvKKJNbUT9QrpvwFB973wuoZP:5
XbV2dcpuT8HdcUzfmMSKCBVL6hrNGnQPB8:0
XbZE2PjKwLvZY7HcsV4pzTLdSLuaJH8JYu:6




With keyword XbZE2PjKwLvZY7HcsV4pzTLdSLuaJH8JYu:7
Code:
Latest Events (up, down, start, pause)  Export Logs
Event    Date-Time    Reason    Duration
Down    03-07-2014 00:15:33    Keyword Not Found    0 hrs, 5 mins
Started    02-07-2014 23:50:31    OK    0 hrs, 25 mins
Up    02-07-2014 23:50:28    Keyword Found    0 hrs, 0 mins
Twitter mention 'Monitor is DOWN: Masterstatus' received.



Udated :Balance is changed to 'no of selected payee from block height 91796' == actual payee in a block (not including expected payee).
Updated : every 3 min.
 
Last edited by a moderator:
  • Like
Reactions: vertoe and AjM

AjM

Well-known Member
Foundation Member
Jun 23, 2014
1,335
571
283
Finland
Suggestion:
Maybe to "My Settings" page can have setting to set time +/- xx hours, so everyone can tune site time (logs) to own country time.
Now site time is 2 hours late to my own country time.
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Suggestion:
Maybe to "My Settings" page can have setting to set time +/- xx hours, so everyone can tune site time (logs) to own country time.
Now site time is 2 hours late to my own country time.
'My Settings' has Timezone setting.

I have GMT+0
 

weirdgod

Well-known Member
Foundation Member
Jun 4, 2014
91
51
168
Slovenia, EU
Awesome.

BUT - can someone help expaining, why after few days, one of my MN dropped from :6 to :4 ...
also when doing "masternode list" this node sees only 500MNs, while at other :)6) MN i get around 530 MNs in list?
all hosts have identical setup procedure/configuration.. and are on same IP block, so i can rule out weird network issues...

??
 

philipmicklon

New Member
May 24, 2014
18
4
3
Thank you!
I had written a PHP script to check if my masternodes were running, but this is a much nicer solution :)
 

fernando

Powered by Dash
Dash Core Team
Moderator
Foundation Member
May 9, 2014
1,527
2,058
283
Thanks, this is perfect!
 

Stray

Member
May 27, 2014
43
14
48
Hi Chaeplin! I want to thank you for all the work you've put into your tools, they've been very useful!

I don't know if you take requests, but if it isn't difficult, would it be possible to allow http://drk.poolhash.org/masternode.html to take querystring parameters with the payee address that would auto populate the filter? That would make bookmarking the url exceedingly simple i.e. http://drk.poolhash.org/masternode.html?filter=MasternodePayeeAddress

Thank you either way, your work is great as usual!
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Hi Chaeplin! I want to thank you for all the work you've put into your tools, they've been very useful!

I don't know if you take requests, but if it isn't difficult, would it be possible to allow http://drk.poolhash.org/masternode.html to take querystring parameters with the payee address that would auto populate the filter? That would make bookmarking the url exceedingly simple i.e. http://drk.poolhash.org/masternode.html?filter=MasternodePayeeAddress

Thank you either way, your work is great as usual!
Why not, I will.
 
  • Like
Reactions: fernando

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133

fernando

Powered by Dash
Dash Core Team
Moderator
Foundation Member
May 9, 2014
1,527
2,058
283
That is presidentially awesome! Running some script on that file should be easy :)
 

drakee

New Member
Aug 3, 2014
25
13
3
Denver, CO
wolfgirl.bandcamp.com
Thanks again el presidente for supplying us with these great MN resources!

I asked this in a different thread, but I didn't get an answer, and I think this might be the better place to ask...

Could someone tell me what each field represents in the file:
http://drk.poolhash.org/poolhashrate/blocks/masterstatus.txt

Is the second field the number of confirmations (out of 6) the MN has received?
Is the last field the number of payments received total, or out of some period of time?

I ask because I'm scripting a monitoring solution that uses that file (masterpaystatus.txt seems to have the exact same information, minus the second field, if I'm not mistaken) and will make it available as a simple service or app if I complete it (I don't like having to reset uptime robot everytime I get a payment ;)) - I just want to make sure I understand exactly what's in there. Thanks!
 

UdjinM6

Official Dash Dev
Dash Core Team
Moderator
May 20, 2014
3,638
3,538
1,183
I'm guessing:
Is the second field the number of confirmations (out of 6) the MN has received?
It's number of svXX masternodes that have this particular masternode listed as active
Is the last field the number of payments received total, or out of some period of time?
And this one is for "no of selected payee _last 7 days"
You can use http://drk.poolhash.org/masternode.html?srch&nmstr=XbfJ1b8A7DYX9o68FMJ3ZS2qVR5EnzUN1b for investigation ;)
 
  • Like
Reactions: drakee and chaeplin

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Thanks again el presidente for supplying us with these great MN resources!

I asked this in a different thread, but I didn't get an answer, and I think this might be the better place to ask...

Could someone tell me what each field represents in the file:
http://drk.poolhash.org/poolhashrate/blocks/masterstatus.txt

Is the second field the number of confirmations (out of 6) the MN has received?
Is the last field the number of payments received total, or out of some period of time?

I ask because I'm scripting a monitoring solution that uses that file (masterpaystatus.txt seems to have the exact same information, minus the second field, if I'm not mistaken) and will make it available as a simple service or app if I complete it (I don't like having to reset uptime robot everytime I get a payment ;)) - I just want to make sure I understand exactly what's in there. Thanks!
Sorry not updating properly.

Balance was changed to 'no of selected payee _last 7 days' == actual payee in a block (not including expected payee).

I think it's not good for monitoring with last 7 days.

Have changed to from block height 91796.
 
Last edited by a moderator:
  • Like
Reactions: drakee

drakee

New Member
Aug 3, 2014
25
13
3
Denver, CO
wolfgirl.bandcamp.com
Thanks for the information UdjinM6 and chaeplin! So to clarify, the masterstatus.txt has been modified so that the 3rd field now reflects number of total payments, and no longer represents only the last 7 days? Thanks again!
Edit: credited the correct commenter
 

acidburn

Active Member
May 26, 2014
467
175
113
Nice application. I have android app coming soon which will do the same thing but just notify users when a payment has been received to a given address. Saves me checking everyday to see if I've been paid.
 
  • Like
Reactions: italx and drakee

drakee

New Member
Aug 3, 2014
25
13
3
Denver, CO
wolfgirl.bandcamp.com
I took the lazy way out and just wrote a script to scrape El Presidente's masterpaystatus.txt and output it to a monitoring friendly format every 10 minutes.

If you point Uptime Robot to monitor the URL:
http://edrake.net/drk/mnpaystatus.txt

And alert when "Keyword Not Exists" for your MN address followed by a ":-":
XaiLY9M9PjhYg26jzxuMhLxKkMdeZuG9yv:-

With "Monitoring Interval" every 5 minutes, it should alert you whenever you get a payment, then reset automatically after the next check or two.

When it detects a new payment, my script will change your address line to show number of payments instead of "-", but will then revert to "-" after the next poll. This basically means that you don't have to log into Uptime Robot and edit your "Keyword Not Exists" field every time you get a payment.

It seems to work for me, but I've only tested it on a couple payments, so let me know if you have any feedback!
 

stonehedge

Well-known Member
Foundation Member
Jul 31, 2014
696
333
233
I took the lazy way out and just wrote a script to scrape El Presidente's masterpaystatus.txt and output it to a monitoring friendly format every 10 minutes.

If you point Uptime Robot to monitor the URL:
http://edrake.net/drk/mnpaystatus.txt

And alert when "Keyword Not Exists" for your MN address followed by a ":-":
XaiLY9M9PjhYg26jzxuMhLxKkMdeZuG9yv:-

With "Monitoring Interval" every 5 minutes, it should alert you whenever you get a payment, then reset automatically after the next check or two.

When it detects a new payment, my script will change your address line to show number of payments instead of "-", but will then revert to "-" after the next poll. This basically means that you don't have to log into Uptime Robot and edit your "Keyword Not Exists" field every time you get a payment.

It seems to work for me, but I've only tested it on a couple payments, so let me know if you have any feedback!
Nice one. Giving it a go now.
 
  • Like
Reactions: drakee

tungfa

Administrator
Dash Core Team
Moderator
Foundation Member
Masternode Owner/Operator
Apr 9, 2014
8,894
6,723
1,283
El Presidente !
Amazing as always !

So is there anything like this where i can check stats, uptime/ payments from my iPhone ??
That would be even better ?!
Please let me know
Tx