Menu

Compiling Nc_Net on ubuntu 10.04 64 Bit

Help
2010-05-25
2013-04-25
  • TheUntouchable

    TheUntouchable - 2010-05-25

    Just a question bevore i explain everything.. Is the plugin 64bit compatible?

     
  • Jeremy

    Jeremy - 2010-05-25

    nc_net is not a plugin, it is a nagios client, for Windows

    you want to use NRPE

     
  • TheUntouchable

    TheUntouchable - 2010-05-27

    In the installation of Nc_Net is the plugin check_nc_net included

     
  • Jeremy

    Jeremy - 2010-05-27

    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.

     
  • tony

    tony - 2010-05-28

    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

     
  • TheUntouchable

    TheUntouchable - 2010-06-02

    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?

     
  • TheUntouchable

    TheUntouchable - 2010-06-02

    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

     
  • G H

    G H - 2010-10-28

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.