configure a new plugin(check_load) ?

Joe Morris morris at unc.edu
Thu Sep 4 19:27:50 CEST 2003


On Thu, 4 Sep 2003, Achim Altmann wrote:

| i have some new entries create in
| "services.cfg
| steht nun folgendes (plugins sind installiert unter libexec)
|
| define service{
|         use                             generic-service         ; Name of
| service template to use
|
|         host_name                       test.domain.de
|         service_description             check_load
|         is_volatile                     0
|         check_period                    24x7
|         max_check_attempts              3
|         normal_check_interval           5
|         retry_check_interval            1
|         contact_groups                  linux-admins
|         notification_interval           120
|         notification_period             24x7
|         notification_options            c,r
|         check_command                   check_load -w WLOAD1,WLOAD5,WLOAD15 -c
| CLOAD1,CLOAD5,CLOAD15
|         }

| i have alos create some entries in
|  checkcommands.cfg
| see the following lines
|
| # 'check_load' command definition
| define command{
|         command_name    check_load
|         command_line    $USER1$/check_load -w $ARG1$ -c $ARG2$
|         }

| if i start nagios with
| /usr/local/nagios/bin/nagios -v nagios.cfg
| the comes this error-message
| Error: Service check command 'check_load -w WLOAD1,WLOAD5,WLOAD15 -c
| CLOAD1,CLOAD5,CLOAD15' specified in service 'check_load' for host '
| test.domain.de' not defined anywhere!

In your service definition you need exclamation marks (!) to tell Nagios
to parse out what the command is and the arguments.  You are also
confusing the arguments in general.  So, it should read...

  check_load!-w 0,1,2!-c 2,3,4

...as in...

  check_load!ARG1!ARG2

Check the documentation again as this is spelled out.

_______________________________________________
Joe Morris, Web Systems Manager
Academic Technology and Networks
The University of North Carolina at Chapel Hill


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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