Nagios-users digest, Vol 1 #2136 - 25 msgs
Ranga Nathan
RNathan at baxglobal.com
Tue Jul 20 19:26:24 CEST 2004
I am running Nagios on Linux and I am not monitoring any windows boxes!
There seems to be some confusion here.
check_nt40 is a program.
checkcommands.cfg defines commands that execute this program with
specified parameters.
services.cfg refers to the commands defined in checkcommands.cfg, NOT the
original program.
I am not sure if 'check_nt40' is defined in your checkcommands.cfg.
Services.cfg can only refer to those defined in checkcommands.cfg.
__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services;
BAX Global Inc. Irvine-California
Tel: 714-442-7591 Fax: 714-442-2840
"Paul Aviles" <paviles at adjoined.com>
07/20/2004 09:49 AM
To: "Ranga Nathan" <RNathan at baxglobal.com>
cc:
Subject: RE: Nagios-users digest, Vol 1 #2136 - 25 msgs
a bit better, I changed the service to say check_nt40 and now I get on the
nagios screen..
check_nt: Unknown argument: (null)
What is the normal configuration I should have for nsclient, can you send
me a snapshot of your current files?
Thanks
-pa
-----Original Message-----
From: Ranga Nathan [mailto:RNathan at baxglobal.com]
Sent: Tuesday, July 20, 2004 12:39 PM
To: Paul Aviles
Subject: RE: Nagios-users digest, Vol 1 #2136 - 25 msgs
Ok, I think you meant to say:
check_nt40_cpuload -H 192.168.100.32 -p 1248 -v CPULOAD -l
10,80,95,60,80,95,1440,80,95
because in your checkcommands.cfg, you do not have a "check_nt40" but you
do have "check_nt40_cpuload"
Could it be just that? Try and let me know.
Good luck.
__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services;
BAX Global Inc. Irvine-California
Tel: 714-442-7591 Fax: 714-442-2840
"Paul Aviles" <paviles at adjoined.com>
07/20/2004 07:58 AM
To: <RNathan at baxglobal.com>
cc:
Subject: RE: Nagios-users digest, Vol 1 #2136 - 25 msgs
Ranga,
I am coming up with the same error.
Running pre-flight check on configuration data...
Checking services...
Error: Service check command 'check_nt40' specified in service 'CPU
Load' for host 'szmia000' not defined anywhere!
Checked 22 services.
Here are my file definitions. Is there something I am missing?
Thanks
-pa
Service.cfg
define service{
use generic-service ; Name
of service template to use
host_name szmia000
service_description CPU Load
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups windows-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt40 -H 192.168.100.32 -p
1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95
}
Hosts.cfg
define host{
use generic-host
host_name szmia000
alias Miami VPN
address 192.168.100.32
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
Checkcommands.cfg
# WINDOWS STUFF
#
define command{
command_name check_nt40_disk
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
}
define command{
command_name check_nt40_cpuload
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -l $ARG1$
}
define command{
command_name check_nt40_uptime
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
UPTIME
}
define command{
command_name check_nt40_clientversion
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
CLIENTVERSION
}
define command{
command_name check_nt40_process
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
PROCSTATE -l $ARG1$
}
define command{
command_name check_nt40_service
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -l $ARG1$
}
define command{
command_name check_nt40_memuse
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
MEMUSE -w $ARG1$ -c $ARG2$
}
define command{
command_name check_nt40_fileage
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
FILEAGE .l $ARG1$ -w $ARG2$ -c $ARG3$
}
define command{
command_name check_nt40_pagingfile
command_line $USER1$/check_nt40 -H $HOSTADDRESS$ -p 1248 -v
COUNTER -l "\\Paging File(_Total)\\%% Usage","Paging File usage is %.2f
%%" -w $ARG1$ -c $ARG2$
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040720/96a2d5b1/attachment.html>
More information about the Users
mailing list