Menu

Cant Get RUNSCRIPT To WOrk

Help
2009-11-04
2013-04-25
  • Jason Shaffer

    Jason Shaffer - 2009-11-04

    I am trying to get a script to work on a remote system via RUNSCRIPT, but I am unable to call it. I know the script itself works, as I double click the bat file and it works properly. This is what I get when I type it on my nagios server:

    $ ./check_nt -H huberheights10 -v RUNSCRIPT -l avfileage.bat
    check_nt: Could not parse arguments
    Usage:check_nt -H host -v variable    

    any ideas?

     
  • Jeremy

    Jeremy - 2009-11-04

    that looks like the stock version of check_nt, not the special check_nc_net version

    if you just pass it the -V argument what version info does it spit out?

     
  • Anonymous

    Anonymous - 2009-11-05

    Hey guys, I get the same thing when installing nagios 3 with apt-get.  Like Jeremy said its probably that you are trying to use the original check_nt

    The C for check_nt is available on the nc_net sourceforge page.  Does anyone have a guide for how to compile this in? 

    Cheers

     
  • Jason Shaffer

    Jason Shaffer - 2009-11-05

    Thanks for the info, but along with John I would like some assistance on how to compile this source code. Thanks.

     
  • Jeremy

    Jeremy - 2009-11-05

    I've always compiled nagios-plugins from source (also on sourceforge), I just replace its plugins/check_nt.c file with this check_nc_net.c file before compiling it.

    You could just do ./configure and make but not "make install" and then copy the compiled check_nt binary wherever you need it, /usr/lib/nagios/plugins/ in Ubuntu I believe.

     
  • tony

    tony - 2009-11-06

    Check_nc_net was originally just bug reports to the official check_nt about 5 years ago.  As nc_net grew so did the remote command set. particularly on the enumeration commands and the internal check_nc_net help system -help=

    So I usually compile in a simiar maner as Jeremy.
    I compile the official plugins, make. then make a backup of the origial check_nt just in case It is needed.  then I rename check_nc_net.c to check_nt.c.
    then run make again.  this will detect the difference in check_nt and recompile just that. 
    I usually rename the new compiled again so that I do not get it confused.  then I copy only the plugins I plan on using into nagios/plugins

    Tony

     
  • Jason Shaffer

    Jason Shaffer - 2009-12-02

    This worked. Sorry for the long delay in the update. Thanks for all of the help.

     

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.