Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
A simple plugin that check the status of the UFW firewall. Tested under Ubuntu 10
Current Version
1.0
Last Release Date
2015-05-06
Owner
Edouard Lamoine
License
Other
Plugin made by Edouard Lamoine
This plugin check the local UFW status. Copy the plugin in the nagios plugins directory (here we assume it's /usr/lib/nagios/plugins/)
Usage: ./check_ufw
Return OK if UFW is active, CRITICAL if unactive, UNKNOWN if unable to detect UFW status.
-Note: you'll need to run the script as root. For running as Nagios user, call the plugin with root privileges.
-> /usr/bin/sudo /usr/lib/nagios/plugins/check_ufw
-You'll have to add permissions in sudoers file: -> visudo
Below the line: root ALL=(ALL:ALL) ALL
add
nagios ALL=(root) NOPASSWD: /usr/lib/nagios/plugins/check_ufw
-And of course be sure Nagios user is allowed to access the plugin (use chmod to make it readable by Nagios user)
Let me know if you experience any problem with it.
You must be logged in to submit a review.
To:
From: