check for the absence of a service

Richard Remington rremington at messagevision.com
Fri Jul 10 16:54:30 CEST 2009


Dear Mr. Dippery, 

The method I use is the check_nmap_scan plug-in by Serg Belokamen, which I've attached to this email. It is written in perl and requires that you have nmap installed on your nagios host. 

Basically, you define what ports should be open (and not open) on a given host and then it runs a regular check to see if the ports you define as open or closed really are open or closed and reports on discrepancies. Very handy.

Regards, 

Richard Remington
Unix Systems Administrator

Kyle Dippery wrote:
> Is there an easy way to use nagios to check for the absence of a
> service?
> 
> I want to have nagios monitor SMTP and a few other services on hosts
> that aren't supposed to be running them, and tell me if they
> suddenly get turned on.
> 
> Is there a plugin for this, or a way to trick an existing plugin to
> make it work?  I suppose if nothing else I can write a wrapper for
> check_smtp or check_tcp to swap the OK and CRITICAL return values,
> but it'd be much easier if someone else has already done it...
> 
> Cheers,
> Kyle

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_nmap_scan
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090710/c8f0e24f/attachment.ksh>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
-------------- next part --------------
_______________________________________________
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