A couple of Nagios NEB plugin API questions

Razvan Cojocaru razvan.cojocaru at 1and1.ro
Thu Aug 9 08:39:26 CEST 2012


Hello,

I've read the "NEB Module API" document [1], and the nebstructs.h
header, but I'd like more details about the members of
nebstruct_notification_struct. The document shows the struct definition
with no comments, and no example, and there are no comments for the
individual members in the nebstructs.h header either.

Also, this article [2] suggests that you can pass configuration data to
your NEB module with this syntax:

broker_module=/usr/local/nagios/bin/testmodule.o
config_file=/usr/local/nagios/etc/testmodule.cfg

How does one access that configuration data from within the plugin? Via
a dedicated callback? By accessing some global data structure within the
Nagios core process that loads my module?

I thought I'd find this information in the PDF file, but "Appendix B:
Catalog of Global Nagios Data Structures" only says "TBA".


[1]
http://nagios.sourceforge.net/download/contrib/documentation/misc/NEB%202x%20Module%20API.pdf

[2]
http://searchenterpriselinux.techtarget.com/tip/Managing-events-with-Nagios-Event-Broker


Thanks,
-- 
Razvan Cojocaru

Linux Development Core Romania

1&1 Internet Development S.R.L. - Bucharest/Romania
Web: www.1und1.de


------------------------------------------------------------------------------
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-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list