Hi All,<br><br>I am using check_tcp to check status of a particular port on the server. This is working good. I would also need to monitor LISTEN status (SYN_RECV) of that port. for ex,<br><br>I have a ldap service running on port 3890, so the command <br>
<br>netstat  -anp  | grep 3890<br><br>tcp        0      0 <a href="http://0.0.0.0:3890">0.0.0.0:3890</a>                     0.0.0.0:*                           LISTEN             16029/java          <br>tcp        0      0 <a href="http://10.121.30.121:3890">10.121.30.121:3890</a>          <a href="http://10.121.6.1:8831">10.121.6.1:8831</a>                ESTABLISHED 16029/java          <br>
tcp        0      0 <a href="http://10.121.30.121:3890">10.121.30.121:3890</a>          <a href="http://10.121.6.1:61052">10.121.6.1:61052</a>              ESTABLISHED 16029/java          <br>tcp      228      0 <a href="http://10.121.30.121:3890">10.121.30.121:3890</a>          <a href="http://10.121.6.1:49440">10.121.6.1:49440</a>             ESTABLISHED 16029/java <br>
tcp        0      0 <a href="http://10.121.30.121:3890">10.121.30.121:3890</a>          <a href="http://10.121.6.1:11664">10.121.6.1:11664</a>               SYN_RECV    16029/java   <br><br>The establish connections are ok to allow, but we need to monitor SYN_RECV status. If there is any such(SYN_RECV) connection appears, we immediately get an alert from nagios. Is there any way to monitor such states with nagios or check_tcp?<br>
<br>I have written some shell script to monitor such events, but also I would like to integrate that scripts into nagios? Is that possible?<br><br>Please help me<br><br>Thanks<br><br><br>-- <br>Shankar<br>