Plugin for NT

Subhendu Ghosh sghosh at sghosh.org
Fri Nov 15 06:22:23 CET 2002


Sorry - renaming the file will not do - .c indicates it is a source file 
and need to be compiled.

there is a LinuxBin directory that contains a linux binary that can be 
copied and dropped into the libexec dir.


Just noticed that there is no proper makefile for check_nt

Rubiyz - does this mean you want to put check_nt back in the plugin 
distribution?

-sg


On Thu, 14 Nov 2002, Garrett Anestos wrote:

> 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!
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html




More information about the Users mailing list