mostafamemariani / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
0 stars 0 forks source link

Use of nc in shell commands #154

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The use of nc in the scripts/ss_get_by_ssh.php command assumes that netcat is 
installed on the system (which is perfectly fine) but if the system chooses to 
use nmap's ncat command instead (as a newer alternative with the exact same 
syntax) this command should use that instead.

It's simply a matter of changing nc to ncat in the cases where nc is used but 
maybe better logic can be put in place that will try one then the other?

Original issue reported on code.google.com by alund...@gmail.com on 31 Aug 2010 at 3:33

GoogleCodeExporter commented 8 years ago
I have noticed that there are several versions of nc in use on various Linux 
distributions, even modern ones.  They have different command-line options 
(such as some of them lacking -q) and behave differently (such as quitting 
automatically or hanging forever).  If you can provide code that detects which 
is in use and selects the program's name and options, that would be very 
welcome.

Original comment by baron.schwartz on 15 Jan 2011 at 6:02

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r534.

Original comment by baron.schwartz on 15 Jan 2011 at 6:17