NotePage, Inc. Forum Index

Monitoring the number of pages

 
Post new topic   Reply to topic    NotePage, Inc. Forum Index -> PageGate Support
View previous topic :: View next topic  
Author Message
Bit1001001



Joined: 13 Oct 2017
Posts: 5

PostPosted: Fri Oct 13, 2017 8:33 am    Post subject: Monitoring the number of pages Reply with quote

Hi. I am trying to incorporate monitoring of the PageGate software into Solarwinds. I have the services monitored, but is there a way I can monitor the number of pages that are queued up?


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4351

PostPosted: Fri Oct 13, 2017 10:02 am    Post subject: Reply with quote

Hi,

I want to look into possible options for that, but I'm not a Solarwinds expert.

Can it monitor registry key values?



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
Bit1001001



Joined: 13 Oct 2017
Posts: 5

PostPosted: Fri Oct 13, 2017 11:17 am    Post subject: Reply with quote

I believe it can and will certainly try whatever you recommend.


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4351

PostPosted: Fri Oct 13, 2017 11:44 am    Post subject: Reply with quote

We don't currently write the pending value to the registry (or any other status values), but I think it would be easy enough for us to do.

However, before I get development people involved, can you confirm on your end that it is possible.

We would be putting the pending messages value in:
HKEY_LOCAL_MACHINE\SOFTWARE\NotePage\PageGate\Status\
The value name would be: Pending
The value type would be: DWORD

Try creating that key and value in the registry on your computer and see if SolarWinds can monitor changes you make manually to that value



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
Bit1001001



Joined: 13 Oct 2017
Posts: 5

PostPosted: Fri Oct 13, 2017 11:49 am    Post subject: Reply with quote

let me see what I can come up with.


Back to top
View user's profile
Bit1001001



Joined: 13 Oct 2017
Posts: 5

PostPosted: Fri Oct 13, 2017 12:00 pm    Post subject: Reply with quote

Ashamedly my powershell abilities aren't what they should be.

Script Argument: HKEY_LOCAL_MACHINE\SOFTWARE\NotePage\PageGate\Status, DWORD

param(

[string]$reg,

[string]$Key,

$target_value

)

$reg_value = Get-ItemProperty $reg -name $Key



Write-Host "Message: '$reg' is currently set to '$reg_value'"

if ($reg_value -match "$key=$target_value") {

Write-Host "Statistic: 0"

} else {

Write-Host "Statistic: 1"

}

Exit 0

----------------------

I ran this and got a value of one.


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4351

PostPosted: Fri Oct 13, 2017 2:18 pm    Post subject: Reply with quote

I think you need to call it with

HKEY_LOCAL_MACHINE\SOFTWARE\NotePage\PageGate\Status, Pending, 2

where 2 is the value you are looking for

You might also want to reverse you logic in the IF statement so it returns 0 for no match and 1 for a match.

Ultimately you might also want a <= or >= in the match part, as I'm assuming you are looking for values greater or less than a setpoint value.

I don't know anything about powershell, but hopefully that will help.



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
Bit1001001



Joined: 13 Oct 2017
Posts: 5

PostPosted: Fri Oct 13, 2017 3:08 pm    Post subject: Reply with quote

Looked in registry and I cannot find that path you specified.


Back to top
View user's profile
Tech Support



Joined: 25 Aug 2003
Posts: 4351

PostPosted: Fri Oct 13, 2017 3:12 pm    Post subject: Reply with quote

For your testing you will have to create that key in the registry and manually change values for testing.

PageGate doesn't currently update it, but we can add that and get you an update that will in a few days time.

I just want to be sure you can actually monitor the registry value changing with SolarWindows before I commit development time to add the feature.



_________________
Tech Support
support@notepage.com
http://www.notepage.net
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    NotePage, Inc. Forum Index -> PageGate Support All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
Theme created by Vjacheslav Trushkin