[Nagiosplug-help] Problem with check_dhcp
Ira Harkness
ira at mse.ufl.edu
Wed Jun 25 10:12:32 CEST 2003
I found many extra plugins that weren't installed with the normal installer.
Look for where you untared your standard plugs. You untar the
nagios-plugins-1.3.0.tar.gz and get a new directory. In that directory you
will find a contrib directory. Inside "contrib" there are a bunch of .c
files that you can compile for new plugins. Then copy the newly created
plugin to your libexec and run it ./check_whatever -h to see the
information.
Anyone have a reponse for my check_dhcp problem?
-----Original Message-----
From: JoanPorta at lidl.es [mailto:JoanPorta at lidl.es]
Sent: Wednesday, June 25, 2003 12:03 PM
To: Ira Harkness
Subject: Re: [Nagiosplug-help] Problem with check_dhcp
Hi,
I'm looking for extra plugins to download.
when you say "contrib directory", which site are you talking?
thanks
Joan Porta
Sistemas de Información
Lidl Supermercados S.A.
Av. Alcalde Barnils 64-68, Ed. Testa Núcleo B
08190 Sant Cugat del Vallés
Teléf. +34-935816477
Fax. +34-935441980
"Ira Harkness" <ira at mse.ufl.edu>
Enviado por: nagiosplug-help-admin at lists.sourceforge.net
25/06/2003 17:22
Para: <nagiosplug-help at lists.sourceforge.net>
cc:
Asunto: [Nagiosplug-help] Problem with check_dhcp
I found check_dhcp.c in the contrib directory.
I typed "make check_dhcp" and it made the "check_dhcp" file.
I then copied the check_dhcp file to libexec.
Added it as a service definition then added the two DHCP servers built on
that definition.
Did a "../bin/nagios -v nagios.cfg"
Error: Service check command 'check_dhcp' specified in service 'DHCP' for
host 'xxxxx' not defined anywhere!
Error: Service check command 'check_dhcp' specified in service 'DHCP' for
host 'xxxxx' not defined anywhere!
What do I need to do?
In the services.cfg I used this as the DHCP template
----start template----
# Service Template for DHCP
define service{
use generic
name generic-dhcp
register 0 ; keeps this template from being
registered
service_description Check DHCP
check_command check_dhcp
contact_groups admins
}
-----end template----
See anything wrong? Do I need more with the check_dhcp command... probably
something similar to the check_ping!100.0,20%!500.0,60%
Thank you for your help!
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20030625/ac2aac0f/attachment.html>
More information about the Help
mailing list