Help compiling check_cluster2

Marc Powell marc at ena.com
Fri Feb 9 15:24:02 CET 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net]
> Sent: Friday, February 09, 2007 4:05 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Help compiling check_cluster2
> 
> 
> Hello everybody,
> 
> 
> 
> I just have download the nagios-plugins-1.4.6 dev package to get the
> check_cluster2 plugin (I only need to compile this plugin) but I'm
having
> problems trying to compile it. I modified the Makefile adding manually
the
> check_cluster2 where needed (I guess...) but it seems I mess
something...
> 
> 
> 
> Can anybody tell me exactly how to compile it from the command line?

No need for make. --

# gcc -o check_cluster2 check_cluster2.c 
# ./check_cluster2 --help
./check_cluster2: unrecognized option `--help'
Invalid arguments supplied

Host/Service Cluster Plugin for Nagios 2
Copyright (c) 2000-2004 Ethan Galstad (nagios at nagios.org)
Last Modified: 03-11-2004
License: GPL

Usage: ./check_cluster2 (-s | -h) [-l label] [-w threshold] [-c
threshold] [-d val1,val2,...,valn]

Options:
   -s, --service  = Check service cluster status
   -h, --host     = Check host cluster status
   -l, --label    = Optional prepended text output (i.e. "Host cluster")
   -w, --warning  = Specifies the number of hosts or services in cluster
that must be in
                    a non-OK state in order to return a WARNING status
level
   -c, --critical = Specifies the number of hosts or services in cluster
that must be in
                    a non-OK state in order to return a CRITICAL status
level
   -d, --data     = The status codes of the hosts or services in the
cluster, separated
                    by commas


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list