[Nagiosplug-help] i'm trying to write my own plugin!
Freddy Frouin
freddy.frouin at fluxus.net
Mon Oct 7 05:27:04 CEST 2002
even if you think that you plugin is returning 0, did you tryed to use
it in a shell with the user used to run nagios and to test the return code
like "echo $?" ? are you sure the command is correctly defined in the
nagios configuration file ?
I hope this help, Freddy.
On Mon, 07 Oct 2002 13:40:39 +0200
irfaan <irfaan at tlabs.ac.za> wrote:
> Hi all!
>
> I write a little program that return an integer. I make it an executable
> and copy it to the /usr/local/nagios/libexec/
> Nagios runs the program, as i have configured it to use it in the config
> file. However, i dont get the correct return value!
>
> What am i doing wrong?
> Herewith is an attached file. What i'm doing is creating a shared object
> library, test.c and test_test.c uses the header file test.h where the
> function i need are declared. My shared object file reads an integer
> from a file, and the user program test_test reads that value and is
> supposed to return that value. i have forced it to return 0. However,
> Nagios gives me a "Warning" status!
>
> Please advise me!
>
> Thanks
> Regards
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>
--
Freddy Frouin
Responsable Supervision
Fluxus - British Telecom
30, rue du Château des Rentiers
75013 Paris
Tél: +33 (0)1 44 97 70 00
Fax: +33 (0)1 44 97 70 07
More information about the Help
mailing list