Almost there please assist...

Calvin Crutchfield ccrutchfield at incodewireless.com
Wed Apr 13 23:09:55 CEST 2005


OK.  Took me 2.5 days but I have NAGIOS and the interface running.  What I'm
trying to do is to get a simple localhost ping working..  I have read plenty
but not quite putting 2 and 2 together yet.

Solaris 9
Latest Nagios and plugins

Assumptions.

*Commands can only be defined once amongst your included config files

I created a hosts.cfg file containing:

define host{
        host_name                       nagios_server
        alias                           nagios server
        address                         localhost
        check_command                   check_myhost
        max_check_attempts              5
        process_perf_data               0
        retain_nonstatus_information    0
        contact_groups                  router-admins
        notification_interval           30
        notification_period             24x7
        notification_options            d,u,r
        }


I have a test command definition in the same file like such:

define command{
        command_name    check_myhost
        command_line    /space/nagios/libexec/check_ping -H 127.0.0.1 -w
200,20% -c 300,30% -p 5
        }

Questions:

Should this work?
If I were to use the $ARGn$ method of definition where do the args go?  The
way I understand it, the args would go under the host definition on the
ccheckl_command line like this:
    check_command   check_myhost  arg1 arg2

But then I get "not defined" errors..

I am so psyched about getting this to work just for a simple ping...Thanks
in advance.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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