Plugin for NT

Garrett Anestos GANESTOS at fisinc.com
Fri Nov 15 01:00:35 CET 2002


Hello all-

I have a question about the installation of the NSClient on NIX.

I have installed the service successfully on a NT box and it appears to be
running.

Once you unzip the file you download it creates a directory called
UnixSource.  In that directory are the following files:

Check_nt.c      
readme.txt
makefile.am

I'm assuming that you just copy the Check_Nt.c file to the
/usr/local/libexec/nagios direcory and rename it to check_nt (without the
.c)  

Then copy the following line into your
/usr/local/etc/nagios/checkcommands.cfg

command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -l $ARG1$
command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v UPTIME
command[check_nt_clientversion]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CLIENTVERSION
command[check_nt_process]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
PROCSTATE -l $ARG1$
command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -l $ARG1$
command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE
-w $ARG1$ -c $ARG2$
command[check_nt_pagingfile]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
COUNTER -l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%"
-w $ARG1$ -c $ARG2$


I attempted to do this and got this error:

netsaint# ./check_nt
./check_nt: /COPYRIGHT: permission denied
check_breeze: not found
check_breeze: not found
check_breeze: not found
check_breeze: not found
check_breeze: not found
./check_nt: 7: Syntax error: "(" unexpected

I changed the permission on the file to mirror the other check_ files, but
still receive the error.

What am I missing?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021114/767787b1/attachment.html>


More information about the Users mailing list