You also have the possibility to use the negate plugin (in offcial plugins). This is an already written wrapper to swap OK and CRITICAL return values ;-)
Olivier Jan http://nagios-fr.org Richard Remington <rreming...@messagevision.com> a écrit : > 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 ------------------------------------------------------------------------------ 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 _______________________________________________ Nagios-users mailing list Nagios-users@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