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_esg_health

Rating
0 votes
Favoured:
0
Current Version
1.1.0
Last Release Date
2023-05-22
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
1137
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 vmware esg health via nsx rest api [PERL]
check_esg_health

check vmware esg health via nsx rest api [PERL]

prerequisites

This script uses theses libs : REST::Client,Data::Dumper,Getopt::Long,MIME::Base64,LWP::UserAgent,IO::Socket::SSL

to install them you can use cpan :

sudo cpan REST::Client Data::Dumper Getopt::Long MIME::Base64 LWP::UserAgent IO::Socket::SSL

Use case

check_esg_health 1.1.0
Usage: check_esg_health.pl [-v] -U -P -H -N [-S] [-F] [-B ]
-v, --verbose
print extra debugging information
-h, --help
print this help message
-S --SSL
Use SSL
-H, --Host=
Hostname or IP of the nsx server
-U, --User=
User for webservice authentication
-P,--Password=
Password for webservice authentication
-N --Name=
Name of the edge to check
-B --Blacklist=
list of service to ignore ex sslvpn, ipsec, nat, routing, syslog, highAvailability, firewall, routing
-F --Forcecritical
Force critical state when edge status is yellow

sample :

check_esg_health.pl -U Username -P Password -H MYNSX_IP_OR_FQDN -S -N EDGENAME -B sslvpn,ipsec,nat

you may get :

OK EDGENAME vm Name EDGENAME-1 OK, vm Name EDGENAME-2 OK, service routing is Applied, service syslog is up, service highAvailability is up, service firewall is Applied