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

check_srx_cluster

Current Version
1.1
Last Release Date
2013-01-22
Compatible With
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
48834
Files:
FileDescription
check_srx_clusterVersion 1.0 - 2013.01.22
check_srx_clusterVersion 1.1 - 2015.02.06
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Check Juniper SRX firewall cluster status by SSH
This check plugin is intended to check Juniper SRX firewall cluster status. I needed this as I couldn't read the documented SNMP id (e.g. .1.3.6.1.2.1.15.3.1.2) as this is not present on my equipment somehow. (SRX240B)

This script is an expect script so you have to have expect and ssh installed.

Syntax of the script:
check_srx_cluster {HOSTADDRESS} {prompt} {loginuser} {loginpassword}
e.g.: ./check_srx_cluster 1.2.3.4 srxfw nagios verysecret
Hhere is the example for the prompt:
nagios@srxfw>
in this case {prompt} will be 'srxfw'

You need to configure a command in nagios:
define command {
command_name check_srx_cluster
command_line $USER2$/check_srx_cluster $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
}

And a service for the firewall host:
define service {
service_description CLUSTER_STATUS
host_name srxfw
use generic-service
check_command check_srx_cluster!srxfw!nagios!verysecret
check_interval 15
stalking_options o,w,c
}


Hope you enjoy this! :)
Reviews (1)
Command line is working OK - but connection timed out at GUI.

I have turned on extensive debug login - couldnt find any issue on the command execution but its showing connection timed out at GUI.

Could anyone please help on this?