I need to create a custom test within the Service Performance Manager module in Spectrum, which as far as I know, needs SystemEDGE to actually execute the script. The thing is, I need to run a query to a remote database and depending on the result, the script would tell SPM to raise an alarm in the SPM test. I think this use case is very common. Does anybody have an example of something like this? What are the requeriments? I though about these ones:
On the other hand, how do I tell Spectrum when a certain result is obtained?
Does it have to be within SPM, or is your goal just to create an alarm based on a certain script result?
Thanks for your answer. Actually, I've been thinking about this and SPM won't suit my needs, because I need to create an alarm based on a certain result, and not to raise an alarm depending on the time it took for the script to return the result. I think I will have to create the script and when the condition is met, the script would send a trap to Spectrum, then I willl process it there and generate the alarm in the corresponding model.
In that case there are several ways to do it. One way is like you suggested to use the script to send a trap to spectrum. In a similar way you could also do it using xml and the southbound gateway. Another option is to insert the script into an SNMP agent on the server and create a new OID for it which you can monitor with Spectrum. It is more work, but it would get you regular active polling instead of the passive waiting for a trap to be received. Which way to go depends on your environment, exact needs and also in part personal preference.
Yes, you're absolutely right. Those are the ways I had in mind in order to achieve the goal. In this particular case we're going to make the script to send a trap and to process it in Spectrum. It's not that critical to use SBG and there's no real need to poll the result. Recieving a trap is enough.
Thanks for your useful tips!
Great, sounds like it's resolved then. The trap is the easiest way to go if it's not that critical.
Happy to help.