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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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?
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
Thanks for the info, but along with John I would like some assistance on how to compile this source code. Thanks.
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.
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
This worked. Sorry for the long delay in the update. Thanks for all of the help.