Hello Nagios Support
I tried some RDS external script (displaying sessions status), but how to get alerted if say number of the active RDS sessions is 20 or more?
- same script or the performance counter?
- see nothing specific in Wizards or else :-\\
Thanks
Way to monitor/alerts for a number of active RDS session
Re: Way to monitor/alerts for a number of active RDS sessio
Can you post the script, or a link to the script?
This should be trivial if the script is telling you how many sessions there are. If not, it might be a little more complicated.
This should be trivial if the script is telling you how many sessions there are. If not, it might be a little more complicated.
Former Nagios Employee.
me.
me.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Way to monitor/alerts for a number of active RDS sessio
I developed this plugin some time ago:
https://exchange.nagios.org/directory/P ... fo/details
However it was more for information gathering purposes so I never added warning or critical thresholds.
My vbscripting is rusty, but after the function around line 470 you could check TotalActive, TotalIdle, TotalDisconnected to see if they exceed a threshold (like 20 perhaps).
And change the last line:
to
This is pretty rough code ...
https://exchange.nagios.org/directory/P ... fo/details
However it was more for information gathering purposes so I never added warning or critical thresholds.
My vbscripting is rusty, but after the function around line 470 you could check TotalActive, TotalIdle, TotalDisconnected to see if they exceed a threshold (like 20 perhaps).
Code: Select all
Dim ExitCode
If TotalActive > 20 Then
ExitCode = 2
End IfCode: Select all
WScript.Quit(0)Code: Select all
WScript.Quit(ExitCode)As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Way to monitor/alerts for a number of active RDS sessio
Box293 wrote:I developed this plugin some time ago:
https://exchange.nagios.org/directory/P ... fo/details
However it was more for information gathering purposes so I never added warning or critical thresholds.
My vbscripting is rusty, but after the function around line 470 you could check TotalActive, TotalIdle, TotalDisconnected to see if they exceed a threshold (like 20 perhaps).
And change the last line:Code: Select all
Dim ExitCode If TotalActive > 20 Then ExitCode = 2 End IftoCode: Select all
WScript.Quit(0)This is pretty rough code ...Code: Select all
WScript.Quit(ExitCode)
This worked, thank you very much!
Re: Way to monitor/alerts for a number of active RDS sessio
Glad to see this worked. I will now close this thread out, but feel free to open another one in the future if you ever need assistance.
Former Nagios Employee