build custom rpm with nagios-plugins and nagios-plugins-extras
Andreas Ericsson
ae at op5.se
Fri May 7 15:38:50 CEST 2004
Chris Armstrong wrote:
> Questions:
> -------------------------------------------------
> -> Does this mean that check_snmp and all of these plugins got included in to the nagios-plugins tar.gz file?
>
Yes. The reason for putting them in different packages is that some
require packages to be installed that aren't on all systems. check_snmp
requires net-snmp (or at least snmpget) to be present, so it's not
included with the 'standard' plugins. This all gets sorted by the
./configure script though, so when building from source it's not a
problem. When installing from rpm, the Requires: list would get loooong.
> -> Or where can i get the nagios-plugins-extras tar.gz file?
>
There is none. See above.
> -> What do i need to build these extra plugins?
>
net-snmp 5.x, qstat (if you mean to monitor gameservers running quake3
engines), fping (for check_fping, although I submitted a new program for
that just a couple of minutes ago)
> When i use the nagios-plugins.spec file that is included in the nagios-plugins source, then i get following error:
>
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd nagios-plugins-1.3.0
> + DOCDIR=/var/tmp/nagios-plugins-buildroot/usr/share/doc/nagios-plugins-1.3.0
> + export DOCDIR
> + rm -rf /var/tmp/nagios-plugins-buildroot/usr/share/doc/nagios-plugins-1.3.0
> + /bin/mkdir -p
> /var/tmp/nagios-plugins-buildroot/usr/share/doc/nagios-plugins-1.3.0
> + cp -pr INSTALL README REQUIREMENTS COPYING ChangeLog command.cfg /var/tmp/nagios-plugins-buildroot/usr/share/doc/nagios-plugins-1.3.0
> + exit 0
> Processing files: nagios-plugins-extras-1.3.0-1.9
> error: File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_mysql
> error: File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_pgsql
> error: File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_snmp
> error: File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_hpjd
>
>
> RPM build errors:
> File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_fping
> File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_mysql
> File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_pgsql
> File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_snmp
> File not found: /var/tmp/nagios-plugins-buildroot/usr/lib/nagios/plugins/check_hpjd
>
> When i read the INSTALL file from the source of nagios-plugins i see that you can specify different extras by using ./configure --enable-<something>. So i have tried to compile manually as following: ./configure --enable-check_snmp but this didn't work.
> I have additionally read that the enable options are documentated in the README file but couldn't find a description about this options.
>
> Can you give me some hints on this?
>
Good reading for you;
REQUIREMENTS (in the nagiosplugins-1.3.0 directory)
http://www.rpm.org/RPM-HOWTO (in your favorite browser)a
These plugins aren't being built because you don't have the development
libraries and headers for postgresql and mysql, the net-snmp package and
the fping binary installed.
> Thanks
You're welcome.
> Chris Armstrong
>
--
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
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