SV: Plugin for NT
Pascal Miquet
p.miquet at hafiba.fr
Fri Nov 15 10:35:13 CET 2002
Command to compile it should be gcc -o check_nt check_nt.c
But it seems that you do not have all plugin installed.
I suggest you go to the plugin directory, and then read the README file,
and the INSTALL.
Regards
Le ven 15/11/2002 à 09:41, Kurt Inge Smådal a écrit :
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/6bc88b79/attachment.html>
More information about the Users
mailing list