Whilst I don't know of a direct method of interuppting the output from a Nagios script, there are always ways to call scripts from Patrol, you can even call scripts without using PSL at all, although PSL is not at all hard to code, being very Perl/C like.
A question what is Nagios returning that patrol can use?.
Most useful is a number, this can then be used to set the value of a graph, can also look for a text string in the output and set a value as being OK or not OK based on whether the string is present or not.
Could you provide some examples of what is returned?, and what should be called?
You should bear in mind that processing in Patrol is very efficient compared to shell scripts, so it's normal to move processing to psl. I once converted a script developed by a "well known Computer company associated with a primary colour", and calculated that by using the capabilities of psl the script was being called once instead of a thousand times for each polling cycle (they were measuring a hunded objects, and got different things from the script every time they called it), BMC call this consumer-collector technology.
I was bored (we've got loads of snow in the UK), so to prove how easy it is to write such a KM to run Nagios scripts I have written such a KM that will run one or more Nagios scripts. I based this on information I got from here: http://www.ibm.com/developerworks/aix/library/au-nagios/
It may take a bit of time to get approval, send me a private message if you need a copy earlier.
If you find this KM useful, please set this thread to question answered.
Any news on this? have you tried out the KM I provided?
3 of 3 people found this helpful
Since version 9.2 of Monitoring Studio, Sentry Software offers the ability to use natively any of the free Nagios plugins in your TrueSight environment without rewriting all over again and in just a few clicks.
For more information about this new feature, you can read the following posts:
- 10 Minutes to Migrate Nagios to BMC TrueSight Operations Management
- Leverage Nagios Plugins in BMC TrueSight Operations Management