Compile Nagios Plugins.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
evisus
Posts: 82
Joined: Tue Apr 26, 2016 1:19 pm

Compile Nagios Plugins.

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Compile Nagios Plugins.

Post 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
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Compile Nagios Plugins.

Post 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!
Locked