[Nagiosplug-help] Define in checkcommands.cfg

Andreas Ericsson ae at op5.se
Wed Mar 30 23:01:33 CEST 2005


eugene wrote:
> Hi,
> 
> Anyone have idea to define plugins in checkcommands.cfg? Are the below the correct way? 

In a manner of speaking, yes. The check_{swap,load} plugins are however 
local plugins and doesn't have the -H switch.

> Can it be use as check_LAN_swap and check_LAN_load
> 

Yes, but it will fail with UNKNOWN because of the -H switch and it also 
won't do what you expect it to. Read up on nrpe, check_by_ssh and how to 
run plugins on other servers than the local one.

> --------------------------------------------------------------------------------------------------------------------------------------
> # 'check_local_swap' command definition
> define command{
>         command_name    check_LAN_swap
>         command_line    $USER1$/check_swap -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
>         }
> 
> # 'check_local_load' command definition
> define command{
>         command_name    check_LAN_load
>         command_line    $USER1$/check_load -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
>         }
> --------------------------------------------------------------------------------------------------------------------------------------
> 
> Anyone has idea, please help
> Thank You....
> 
> Eugene Than 
> HelpDesk Support, Network and System
> MNC Wireless Berhad (635884-T)
> No. 45, Block A, Level 3, Unit 3.03,
> Medan Setia 1, Plaza Damansara,
> Bukit Damansara, 50490 Kuala Lumpur
> 
> M: +6012-613 4855 
> T: +603-2095 6063
> F: +603-2093 5909
> E: eugene at mnc.com.my
> W: www.mnc.com.my
> Mobile Portal: www.gospecial.com
> 
> --------------------------------------------------------------------------------
> This email is intended only for the use of the individual or entity named above and may contain information that is confidential and/or privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying of, or other use of, or taking of any action in reliance upon this email is strictly prohibited. When addressed to our clients, any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing MNC client engagement letter. If you have received this email in error, please notify us immediately by return email or telephone +603-2095 6063 and destroy the original message. Thank you. 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Help mailing list