Plugin for NT

Garrett Anestos GANESTOS at fisinc.com
Fri Nov 15 17:53:14 CET 2002


Kurt-
 
Thanks for the help.......can you point me to a RTFM for compiling?  I try
to compile it and I believe it is looking for the gcc source.....maybe I
don't have it install.  Although I did find it in my /usr/bin directory.
 
netsaint# gcc -o check_nt check_nt.c
check_nt.c:34: config.h: No such file or directory
check_nt.c:35: common.h: No such file or directory
check_nt.c:36: netutils.h: No such file or directory
check_nt.c:37: utils.h: No such file or directory
netsaint#

Garrett
-----Original Message-----
From: Kurt Inge Smådal [mailto:kurt at emsp.no]
Sent: Friday, November 15, 2002 12:41 AM
To: Garrett Anestos
Cc: nagios-users at lists.sourceforge.net
Subject: SV: [Nagios-users] Plugin for NT


The check_net.c file is a C source code. 
So you have to compile it.
 
gcc -o check_nt check_nt.c should do it.
 
Copy the output file ( check_nt ) to the libexec directory.
 
--
Kurt Inge 
 
-----Opprinnelig melding-----
Fra: Garrett Anestos [mailto:GANESTOS at fisinc.com] 
Sendt: 15. november 2002 01:01
Til: nagios-users at lists.sourceforge.net
Emne: [Nagios-users] Plugin for NT
 
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/20021115/8e62771b/attachment.html>


More information about the Users mailing list