Unzip and go to tar zvxf nagios-plugins-1.4.15.tar.gz && CD nagios-plugins-1.4.15
Compiling the installation
./configure--with-nagios-user=nagios--with-nagios-group=nagios
Make
# # encounters an error
# # Show
# # # in file included from localcharset.c:26:0:
# # # /stdio.h:456:1: Error: ' gets ' is not declared (not inside the function)
# # # _gl_warn_on_use (gets, "gets is a security hole-use fgets instead");
### ^
# # Make[4]: * * * [LOCALCHARSET.O] Error 1
# # # Make[4]: Leave directory "/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL"
# # Make[3]: * * * [all-recursive] Error 1
# # # Make[3]: Leave directory "/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL"
# # Make[2]: * * * [ALL] Error 2
# # # Make[2]: Leave directory "/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL"
# # Make[1]: * * * [all-recursive] Error 1
# # # Make[1]: Leave directory "/nagios/nagios-plugins-1.4.15"
# # # Make: * * * [ALL] Error 2
# # # Solution
# # CD/NAGIOS/NAGIOS-PLUGINS-1.4.15/GL
# # # Sed-i-E '/gets is a security/d './stdio.in.h
# # # then re-make
Error installing nagios-plugins-1.4.15