AW: whats wrong with these definitions ? help plea se!

Thomas.Zimmer at oppenheim.de Thomas.Zimmer at oppenheim.de
Wed Nov 30 12:30:00 CET 2005


Std. "check_command" definition in "sample-config":
 
"$USER1$/check_dns -H www.yahoo.com <http://www.yahoo.com>  -s
$HOSTADDRESS$"
 
should be change to s.th. like
 
"$USER1$/check_dns -H $ARG1$ <http://www.yahoo.com>  -s $ARG2$"
 
then use it with:
 
....
check_command    check_dns!<hostname>!<hostaddress>
....
 
I assume, you have defined real contact-groups vor "blabla" and an existing
host?
 
The possibilities of a plugin can be discovered by calling the plugin from
the command shell, respectively calling it with "<plugin_name> --help".
 
Pls. refer to the excellent Nagios-documentation:
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html
<http://nagios.sourceforge.net/docs/2_0/xodtemplate.html> , also delivered
with your Nagios installation in "<nagios_install>/share/docs/", or browse
the archives of this list.
 
Your problems are novice-probs (and no real probs), and should be better
resolved by reading the docs than by penetrating this list!
 
Greetz,
Thomas Zimmer 
Produktservice & Betrieb 
Betrieb & Support 
Sal. Oppenheim jr. & Cie., Frankfurt a. Main 
Internet: http://www.oppenheim.de <http://www.oppenheim.de/>  
E-Mail: thomas.zimmer at oppenheim.de 

-----Ursprüngliche Nachricht-----
Von: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Mehmet
Fatih AKBULUT
Gesendet: Mittwoch, 30. November 2005 12:09
An: nagios-users at lists.sourceforge.net
Betreff: [Nagios-users] whats wrong with these definitions ? help please!


hi all.

# Service definition
define service{
    use                                   generic-service        ; Name of
service template to use
    host_name                       blablabla
    service_description          DNS
    is_volatile                         0
    check_period                   24x7
    max_check_attempts     3
    normal_check_interval    3
    retry_check_interval        1
    contact_groups                blablabla
    notification_interval         120
    notification_period            24x7
    notification_options          w,u,c,r
    check_command              check_dns /* is it necessary to add something
here ?*/ 
    }

# Service definition
define service{
    use                generic-service        ; Name of service template to
use
    host_name            blablabla
    service_description        LDAP
    is_volatile            0
    check_period            24x7
    max_check_attempts        3
    normal_check_interval        3
    retry_check_interval        1
    contact_groups            blablabla
    notification_interval        120
    notification_period        24x7
    notification_options        w,u,c,r
    check_command            check_ldaps /* is it necessary to add something
here ?*/ 
    }

why these services dont appear on nagios ? do i have to add anything after
check_dns & check_ldaps ???

and is this command definition below correct ?

# 'check_ldaps' command definition
define command{
    command_name    check_ldaps
    command_line    /usr/local/nagios/libexec/check_ldaps /*do i have to add
something here?*/
    }

help me please ...



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051130/a066e6a1/attachment.html>


More information about the Users mailing list