Re: New to writing plugins.
Brian Wilson <[email protected]>
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 10 Oct 2002, Shawn Jones wrote: > I want to write some custom plugins, but I have some ?'s. And since I am a > sys admin and not a programmer, I am not sure if I am biting off more than > I can chew. Basically, I want to know if I can write shell scripts and use > them as plugins. If so, how do I pass output from the script into Netsaint > where current status and status information will be posted? If this is not > possible please tell me what language I need to use to develop my own > plugins. > You can write scripts in whatever you please, as long at they return what netsaint/nagios is expecting. Try running some of the default plugins from the command line and seeing what they return. It's pretty much as simple as outputting "MYCHECK OK" or "MYCHECK CRITICAL" in your script. HTH, Brian -- Brian Wilson <[email protected]> Network Analyst Communication Technologies, ATD W: 919.513.3472 North Carolina State University www.ncstate.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf