Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Active2Passive

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 3.x
License
Other
Hits
13573
Files:
FileDescription
active2passive.shActive2Passive script
active2passive.cActive2Passive C source
active2passive_install_el5_x86_64.runActive2Passive binary installation
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This lightweight script convert an active check to passive.
Allows the use of an active plugin with NSCA.
--------------------------------------------------------------------------------

THIS PLUGIN IS PROVIDED "AS IS", WITHOUT ANY WARRANTY, AND WITHOUT ANY SUPPORT.

--------------------------------------------------------------------------------

This lightweight script convert an active check to passive, without changing the plugin.
Allows the use of an active plugin with NSCA.

This check is write in bash (Linux).
Test with : CentOS 5


--------------------------------------------------------------------------------

USAGE :
./active2passive.sh plugin hostname service 'arg1 arg2 arg3'

plugin : check to run
hostname : host in nagios
service : service in nagios
arg : plugin arguments


example :
./active2passive.sh "/usr/local/nagios/libexec/check_disk" Server1 Disks '80 90' | send_nsca


--------------------------------------------------------------------------------

LICENCE : CC BY-SA 3.0
http://creativecommons.org/licenses/by-sa/3.0/

--------------------------------------------------------------------------------