check if not port open then OK

Philipp Geschke nagios at pgmail.net
Wed Dec 5 16:47:46 CET 2007


Sjaak Nabuurs VSM Hosting schrieb:
> Hi nagios users
> 
> I've a win 2003 server online as terminal server ;-(
> with nagios I check through nsclient++ cpu/mem ...... this al works fine.
> 
> But now I like to check if the firewall for this winbox is okay and up.
> So I like to use check_ping (or any other check) to the winbox and if no 
> result "critical" then everything is OKE.
> only ports 12489 and RDP ports are open to some IP's
> 
> Can somebody give me an advice how to do this.
> with negate it's not the way to do this, i guess !
> 

If I did get you right, then negate is absolutely the way to go.

Pick out a Port that would be open, if the firewall was down.
Now configure a check_tcp check for this port, and negate it.

The service will be ok as long as the port is closed, an critical if the
port is open (and your firewall down).

As I said, only if I did get you right.


Regards,
Philipp

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list