NS Client Page file
Jeff Bolden
Jeff.Bolden at sterlingsavings.com
Fri Sep 27 18:26:20 CEST 2002
> Hey Jeff,
>
> What does your command look like - I'm trying to pull
> anything out of the counters and I get an error on all of them.
>
> Just trying it
> ./check_nt -H usmnls16 -v COUNTER -l "System\\Processor Queue Length"
>
> This is my commands.cfg file entry:
> $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l
> "Paging File(_Total)\% Usage","Paging File usage is %.2f %%"
> -w $ARG1$ -c $ARG2$
>
> All of my attempts enter an error into the event log and give
> me a big ole' 0.
>
> Thanks for your help!
> Andy
Here's a bunch of my NT checks from the checkcommand.cfg file. Sorry,
some of the lines are wrapped due to length...
#### NT SERVER CHECKS
###########################################################
####
# 'check_nt_disk' command definition
define command{
command_name check_nt_disk
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
}
# 'check_nt_cpuload' command definition
define command{
command_name check_nt_cpuload
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -l $ARG1$
}
# 'check_nt_uptime' command definition
define command{
command_name check_nt_uptime
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
UPTIME
}
# 'check_nt_clientversion' command definition
define command{
command_name check_nt_clientversion
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CLIENTVERSION
}
# 'check_nt_process' command definition
define command{
command_name check_nt_process
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
PROCSTATE -l $ARG1$
}
# 'check_nt_service' command definition
define command{
command_name check_nt_service
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -l $ARG1$
}
# 'check_nt_memuse' command definition
define command{
command_name check_nt_memuse
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
MEMUSE -w $ARG1$ -c $ARG2$
}
# 'check_nt_fileage' command definition
define command{
command_name check_nt_fileage
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$
}
# 'check_nt_pagingfile' command definition
define command{
command_name check_nt_pagingfile
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
COUNTER -l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f
%%" -w $ARG1$ -c $ARG2$
}
# 'check_nt_msgsent' command definition
define command{
command_name check_nt_msgsent
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
COUNTER -l "\\MSExchangeIS Mailbox(_Total)\\Messages Sent/min","%.f
messages sent per minute" -w $ARG1$ -c $ARG2$
}
# 'check_nt_msgsubmit' command definition
define command{
command_name check_nt_msgsubmit
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
COUNTER -l "\\MSExchangeIS Mailbox(_Total)\\Messages Submitted/min","%.f
messages Submitted per minute" -w $ARG1$ -c $ARG2$
}
# 'check_nt_msgdelivered' command definition
define command{
command_name check_nt_msgdelivered
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
COUNTER -l "\\MSExchangeIS Mailbox(_Total)\\Messages Delivered/min","%.f
messages Delivered per minute" -w $ARG1$ -c $ARG2$
}
# 'check_nt_sendque' command definition
define command{
command_name check_nt_sendque
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
COUNTER -l "\\MSExchangeIS Mailbox(_Total)\\Send Que Size","%.f messages
waiting in Send Que" -w $ARG1$ -c $ARG2$
}
########################################################################
#
Here's the entries in my services.cfg file that correspond with the
above...
#### LOCAL NT HOST CHECKS
#### UPTIME
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description Uptime
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 1440
notification_period none
notification_options c,r
check_command check_nt_uptime
}
#### MEM USAGE
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description Memory Usage
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt_memuse!80!90
}
#### PAGEFILE USAGE
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description Pagefile Usage
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt_pagingfile!80!90
}
#### CPU LOAD
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description CPU Load
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command
check_nt_cpuload!10,80,95,60,80,95,1440,80,95
}
#### C:\ DISK UTILIZATION
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description Disk Usage - C:\
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt_disk!c!80!90
}
#### D:\ DISK UTILIZATION
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description Disk Usage - D:\
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt_disk!d!80!90
}
## E:\ DISK UTILIZATION
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description Disk Usage - E:\
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt_disk!e!80!90
}
#### NT CRITICAL SERVICES CHECKS ################################
# Service definition
define service{
use generic-service ; Name
of service template to use
host_name host1
service_description Critical Services
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_nt_service!DHCPServer,WINS
}
#################################################################
There you have it. It works really well here in my NT-centric
environment. We are a Win2k/Novell shop here, the only Linux we have at
the moment is what I'm using for monitoring via Nagios, MRTG, Ntop, and
a few other things. Learning as I go... =)
Jeff Bolden
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list