Help with C plugin:
John Knepper <john.knepper-MoB+KFz38QNWk0Htik3J/[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <CALpQmkxs-6ZZ3K8H10-fecB+qOgtRNEscDxGtjr_7Zu=eVKSfg@mail.gmail.com> |
Hi,
I am currently trying to develop a plugin in C, and it runs fine on
the command-line, but Nagios is returning (null) as its output. After
research, and also reviewing the following article on developing plugins
with C (
http://nagiosplug.sourceforge.net/developer-guidelines.html#SYSCMDAUXFILES)
I found that it is because I lack the spopen() function; I think? I have
tried to include this in my C source, but I keep getting errors when trying
to compile it such as conflicts with some functions from the standard
library headers like string.h. Is there a compiler argument I need to use
in particular when compiling my plugin? Thanks!
Best,
John
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null