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_pctgroup New!

Rating
0 votes
Favoured:
0
Current Version
0.0.6
Last Release Date
2024-10-03
Compatible With
  • Nagios XI
Owner
License
MIT
Hits
87
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
A monitoring plugin to check status of hostgroup members that are in a down state and alert if a percentage threshold is crossed.
Download both the plugin and yaml file.

Edit the yaml file to include either the FQDN or IP address of the nagios instance where the script will execute.

Edit the yaml file to include the apikey of a nagiosxi user with API permissions.

Upload both the script and yaml file to the NagiosXI Instance /usr/local/nagios/libexec/ directory.

Create the NagiosXI command for check_pctgroup

pyhon3 $USER1$/check_pctgroup.py -e $ARG1$ --hostgroup "$ARG2$" -c $ARG3$ $ARG4$

Create a Service Check to utilize the check_pctgroup command.

A R G 1 contains the nagiosxi environment (dev/prd)
A R G 2 contains the nagiosxi hostgroup name you want to evaluate.
A R G 3 contains the critical threshold
A R G 4 used for passing the optional variables -w/--warning and -p used to enable nagios perfdata output.

Command Line Execution Example
python3 check_pctgroup.py -e dev --hostgroup "dev-linux-web" -c 10 -w 5 -p