View previous topic :: View next topic |
Author |
Message |
Bit1001001
Joined: 13 Oct 2017 Posts: 5
|
Posted: Fri Oct 13, 2017 8:33 am Post subject: Monitoring the number of pages |
|
|
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 |
|
Tech Support
Joined: 25 Aug 2003 Posts: 4355
|
Posted: Fri Oct 13, 2017 10:02 am Post subject: |
|
|
Hi,
I want to look into possible options for that, but I'm not a Solarwinds expert.
Can it monitor registry key values? |
|
Back to top |
|
Bit1001001
Joined: 13 Oct 2017 Posts: 5
|
Posted: Fri Oct 13, 2017 11:17 am Post subject: |
|
|
I believe it can and will certainly try whatever you recommend.
|
|
Back to top |
|
Tech Support
Joined: 25 Aug 2003 Posts: 4355
|
Posted: Fri Oct 13, 2017 11:44 am Post subject: |
|
|
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 |
|
Back to top |
|
Bit1001001
Joined: 13 Oct 2017 Posts: 5
|
Posted: Fri Oct 13, 2017 11:49 am Post subject: |
|
|
let me see what I can come up with.
|
|
Back to top |
|
Bit1001001
Joined: 13 Oct 2017 Posts: 5
|
Posted: Fri Oct 13, 2017 12:00 pm Post subject: |
|
|
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 |
|
Tech Support
Joined: 25 Aug 2003 Posts: 4355
|
Posted: Fri Oct 13, 2017 2:18 pm Post subject: |
|
|
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. |
|
Back to top |
|
Bit1001001
Joined: 13 Oct 2017 Posts: 5
|
Posted: Fri Oct 13, 2017 3:08 pm Post subject: |
|
|
Looked in registry and I cannot find that path you specified.
|
|
Back to top |
|
Tech Support
Joined: 25 Aug 2003 Posts: 4355
|
Posted: Fri Oct 13, 2017 3:12 pm Post subject: |
|
|
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. |
|
Back to top |
|
|