[Nagiosplug-help] problems with nagios plugin installation

srikanthm mallajy at gmail.com
Tue Jan 30 10:46:44 CET 2007


> Hi,
>
> I have installed nagios 2.7 from source using the following tarball
> nagios-2.7.tar.gz and using the exact instructions from the attached
> "installation document" I donwloaded from nagios.org
>
>  even the */usr/local/nagios/bin/nagios -v
> /usr/local/nagios/etc/nagios.cfg  *was not throwing any errors or
> warnings.
>
> After installing this I tried installing the Nagios plugins from source
> tarball i.e. nagios-plugins-1.4.5.tar.gz
>
> But it was throwing errors as in the attachment.
>
> So while I was in the /root/nagiosinstall directory itself, I copied the
> nagios plugins rpms and also the dependent rpms and installed them
> successfully with -Uvh option.
>
> i.e. nagios-plugins-1.4.5-1.el4.rf.i386.rpm and
> perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm
> perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm
> perl-Socket6-0.19-1.2.el4.rf.i386.rpm
>
> Problem 1: the Nagios web interface and nagios.log still complains that
> plugins are not installed although its installed
>
> # rpm -qav | grep nagios-plugin
> nagios-plugins-1.4.5-1.el4.rf
>
> [1170109335] Warning: Return code of 127 for check of service 'PING' on
> host 'localhost' was out of bounds. Make sure the plugin you're trying to
> run actually exists.
> [1170109356] Warning: Return code of 127 for check of service 'Current
> Load' on host 'localhost' was out of bounds. Make sure the plugin you're
> trying to run actually exists
> .
> [1170109395] Warning: Return code of 127 for check of service 'Root
> Partition' on host 'localhost' was out of bounds. Make sure the plugin
> you're trying to run actually exis
> ts.
> [1170109416] Warning: Return code of 127 for check of service 'Current
> Users' on host 'localhost' was out of bounds. Make sure the plugin you're
> trying to run actually exist
> s.
> [1170109455] Warning: Return code of 127 for check of service 'Total
> Processes' on host 'localhost' was out of bounds. Make sure the plugin
> you're trying to run actually exi
> sts.
>
> problem 2:why are the files *hosts.cfg, services.cfg* not created
> automatically and also these entries are commented out in* nagios.cfg *
> file
> **
> *cgi.cfg       htpasswd.users  nagios.cfg          resource.cfg
> commands.cfg  localhost.cfg   nagios-server.conf*
> *
> * are the only ones that are created.
>
> Looking forward for your help eagerly.
>
> Thanks in advance.
>
> cheers,
> SrikanthM
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070130/b24b4861/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Nagios Install on Redhat EL 4.doc
Type: application/msword
Size: 124928 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070130/b24b4861/attachment.doc>
-------------- next part --------------
make[2]: Entering directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins'
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap  -I/usr/include -I/usr/include/mysql  -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \
then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
check_mysql.c:51:19: mysql.h: No such file or directory
check_mysql.c:52:20: errmsg.h: No such file or directory
check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:73: error: `MYSQL' undeclared (first use in this function)
check_mysql.c:73: error: (Each undeclared identifier is reported only once
check_mysql.c:73: error: for each function it appears in.)
check_mysql.c:73: error: syntax error before "mysql"
check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function)
check_mysql.c:74: error: `res' undeclared (first use in this function)
check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function)
check_mysql.c:75: error: syntax error before "row"
check_mysql.c:91: error: `mysql' undeclared (first use in this function)
check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:146: error: `row' undeclared (first use in this function)
check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function)
check_mysql.c:165: error: `fields' undeclared (first use in this function)
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagiosinstall/nagios-plugins-1.4.5'
make: *** [all] Error 2


More information about the Help mailing list