Ohh, in the files section on sourceforge there is a separate download, check the folder "check_nc_net.c " in the files list. The latest version is in a .rar file instead of a .zip file though.
Personally I compile the nagios-plugins package from source and just replace check_nt.c with check_nc_net.c before compiling but there's probably a simpler way to just compile check_nc_net only.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The current build of NC_NEt is 64 bit compatible.
It is NOT optimized for either 64bit or 32bit
As for check_nc_net.c, As Jeremy pointed out,
the easiest way to install it is:
download and compile the official Nagios plugins.
Then replace check_nt.c with check_nc_net.c
I usually make a backup of check_nt.c and then use mv
then run MAKE and it will detect the changes in check_nt.c and recompile.
Check_nc_net.c is forked from check_nt.c but it includes some extra fixes, as well as,
ability to remotly administer nc_net (except for the startup.cfg and ip restriction list)
the help system has been enhanced, and it is fully compatble with all systems that talk through check_nt.
NC_net also contains NSCA instead of NRPE
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Downloaded the nagios plugins and extracted them.
Changed into the folder and ran ./configure -with-nagios-user=nagios -with-nagios-group=nagios
Make
Copied the check_nc_net.c.new to nagios-plugins-1.4.11/plugins/check_nt.c
Make
The original check_nt file has the same size as the check_nt of the check_nc_net after make.
This is not correct or am i wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Trying it with a make clean between results in this errors:
check_nt.c:967: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c: In function âprint_helpâ:
check_nt.c:1291: error: âUT_EXTRA_OPTSâ undeclared (first use in this function)
check_nt.c:1291: error: (Each undeclared identifier is reported only once
check_nt.c:1291: error: for each function it appears in.)
check_nt.c:1291: warning: format not a string literal and no format arguments
check_nt.c: In function âprint_command_COUNTERâ:
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
make: *** Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get the same error on a Ubuntu Server 10.10 x64.
Can anyone help?
check_nt.c: In function âmainâ:
check_nt.c:183: warning: assignment makes pointer from integer without a cast
check_nt.c:493: warning: format â%uâ expects type âunsigned intâ, but argument 3 has type âlong unsigned intâ
check_nt.c:495: warning: format â%uâ expects type âunsigned intâ, but argument 3 has type âlong unsigned intâ
check_nt.c:497: warning: format â%uâ expects type âunsigned intâ, but argument 3 has type âlong unsigned intâ
check_nt.c:195: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c:197: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c:965: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c:967: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c: In function âprint_helpâ:
check_nt.c:1291: error: âUT_EXTRA_OPTSâ undeclared (first use in this function)
check_nt.c:1291: error: (Each undeclared identifier is reported only once
check_nt.c:1291: error: for each function it appears in.)
check_nt.c: In function âprint_command_COUNTERâ:
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
make: *** Error 1
make: Leaving directory `/root/downloads/nagios-plugins-1.4.11/plugins'
make: *** Error 1
make: Leaving directory `/root/downloads/nagios-plugins-1.4.11'
make: *** Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just a question bevore i explain everything.. Is the plugin 64bit compatible?
nc_net is not a plugin, it is a nagios client, for Windows
you want to use NRPE
In the installation of Nc_Net is the plugin check_nc_net included
Ohh, in the files section on sourceforge there is a separate download, check the folder "check_nc_net.c " in the files list. The latest version is in a .rar file instead of a .zip file though.
Personally I compile the nagios-plugins package from source and just replace check_nt.c with check_nc_net.c before compiling but there's probably a simpler way to just compile check_nc_net only.
The current build of NC_NEt is 64 bit compatible.
It is NOT optimized for either 64bit or 32bit
As for check_nc_net.c, As Jeremy pointed out,
the easiest way to install it is:
download and compile the official Nagios plugins.
Then replace check_nt.c with check_nc_net.c
I usually make a backup of check_nt.c and then use mv
then run MAKE and it will detect the changes in check_nt.c and recompile.
Check_nc_net.c is forked from check_nt.c but it includes some extra fixes, as well as,
ability to remotly administer nc_net (except for the startup.cfg and ip restriction list)
the help system has been enhanced, and it is fully compatble with all systems that talk through check_nt.
NC_net also contains NSCA instead of NRPE
Tony
Thank you for your answer!
I made the steps you mentioned:
Downloaded the nagios plugins and extracted them.
Changed into the folder and ran ./configure -with-nagios-user=nagios -with-nagios-group=nagios
Make
Copied the check_nc_net.c.new to nagios-plugins-1.4.11/plugins/check_nt.c
Make
The original check_nt file has the same size as the check_nt of the check_nc_net after make.
This is not correct or am i wrong?
Trying it with a make clean between results in this errors:
check_nt.c:967: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c: In function âprint_helpâ:
check_nt.c:1291: error: âUT_EXTRA_OPTSâ undeclared (first use in this function)
check_nt.c:1291: error: (Each undeclared identifier is reported only once
check_nt.c:1291: error: for each function it appears in.)
check_nt.c:1291: warning: format not a string literal and no format arguments
check_nt.c: In function âprint_command_COUNTERâ:
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
make: *** Error 1
I get the same error on a Ubuntu Server 10.10 x64.
Can anyone help?
check_nt.c: In function âmainâ:
check_nt.c:183: warning: assignment makes pointer from integer without a cast
check_nt.c:493: warning: format â%uâ expects type âunsigned intâ, but argument 3 has type âlong unsigned intâ
check_nt.c:495: warning: format â%uâ expects type âunsigned intâ, but argument 3 has type âlong unsigned intâ
check_nt.c:497: warning: format â%uâ expects type âunsigned intâ, but argument 3 has type âlong unsigned intâ
check_nt.c:195: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c:197: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c:965: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c:967: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result
check_nt.c: In function âprint_helpâ:
check_nt.c:1291: error: âUT_EXTRA_OPTSâ undeclared (first use in this function)
check_nt.c:1291: error: (Each undeclared identifier is reported only once
check_nt.c:1291: error: for each function it appears in.)
check_nt.c: In function âprint_command_COUNTERâ:
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
check_nt.c:1450: warning: unknown conversion type character â|â in format
check_nt.c:1450: warning: unknown conversion type character â;â in format
make: *** Error 1
make: Leaving directory `/root/downloads/nagios-plugins-1.4.11/plugins'
make: *** Error 1
make: Leaving directory `/root/downloads/nagios-plugins-1.4.11'
make: *** Error 2