|
Re: Plugins Output: msg#00049network.nagios.plugins
On Mon, 26 Jan 2004, Feng HE wrote: > Hello > > i am writing a Nagios plugin and want to know, how should a output to > Nagios looks like?or it must implement as Passive service checks in > format llike this: [<timestamp>] > PROCESS_SERVICE_CHECK_RESULT;<host_name>;<description>;<return_code>; > <plugin_output> > > best regards! > > AeoLus Normally plugins are coded as if they are going to be used as active plugins. For a passive plugin, you need at least 3 arguments in addition to those required for the plugin to work: 1. hostname (as in Nagios config) 2. servicename (as in Nagios config) 3. /path/filename of the command file (usually /usr/local/nagios/var/rw/command) The plugin must also output the return code on the status line. Also the plugin must be running on the same system as Nagios and as a user who has permission to write to the Nagios command file. It may just be easier to write a standard plugin and use nsca to send a passive response... -- -sg ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: nagios for win2k: 00049, Subhendu Ghosh |
|---|---|
| Next by Date: | check_nt NSClient Socket Timeouts: 00049, L. Mark Stone |
| Previous by Thread: | Plugins Outputi: 00049, Feng HE |
| Next by Thread: | nagios for win2k: 00049, artemis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |