Welcome to Pandora FMS Community › Forums › Community support › module_tcpcheck on linux agents?
-
module_tcpcheck on linux agents?
Posted by opike on December 20, 2010 at 20:38Windows agents can use module_tcpcheck and I tried using the same module with a linux agent but it doesn’t seem to be recognized. Just want to confirm if module_tcpcheck is available with linux agents and if not, what is the equivalent that people generally implement?
luismi replied 14 years, 1 month ago 3 Members · 4 Replies -
4 Replies
-
-
-
::
#!/usr/bin/perl $command="ping -c 1 ".$ARGV[0]." 1>out 2>error "; system($command); open(INFILE, "out") or die "Cannot open out: $!.n"; $success=0; while(my $line = ) { Â Â Â Â if ($line =~ m/1 received/) Â Â Â Â { Â Â Â Â Â Â Â Â $success=1; Â Â Â Â } } print $success."n"; close INFILE;
-