Page 1 of 1

Compile Nagios Plugins.

Posted: Mon Feb 05, 2018 6:57 am
by evisus
Hello, I need to customize the responses of check_snmp and for that I want to edit and compile the plugins again but I can not find the correct way to do it.

can you help me?

Thank you

Re: Compile Nagios Plugins.

Posted: Mon Feb 05, 2018 9:06 am
by mcapra
Here's the source:
https://github.com/nagios-plugins/nagios-plugins

Here's check_snmp:
https://github.com/nagios-plugins/nagio ... eck_snmp.c

Change check_snmp.c to your liking, then compile the project and the altered check_snmp binary should be produced.

Here's how to compile nagios-plugins from source:
https://support.nagios.com/kb/article/n ... e-569.html

Re: Compile Nagios Plugins.

Posted: Mon Feb 05, 2018 10:39 am
by dwhitfield
@evisus, this is not really the place for getting help in modifying the code, but if you have specific questions about what specific pieces of the code are doing, we'd be happy to help with that.

Thanks @mcapra!