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

check_unifi.php

Rating
2 votes
Favoured:
0
Current Version
1.20210118
Last Release Date
2021-01-18
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
MIT
Hits
2098
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Nagios Plugin to check a Unifi Controller (Accesspoints and Switch).
Api Version 1.1.63
Thanks to https://github.com/Art-of-WiFi
Model: https://ubntwiki.com/products/software/unifi-controller/api

/usr/bin/php ./check_unifi.php -H 192.168.2.213 -P 8443 -u nagios -p nagios -s -m uplink -a AP02 -w 200 -c 100
OK - Uplink: AP01 signal=-67% tx_rate=234 Mbps rx_rate=526.5 Mbps | tx_rate=234;rx_rate=526.5;signal=67

/usr/bin/php ./check_unifi -H 192.168.2.213 -P 8443 -u nagios -p nagios -s -m uptime -a AP02
OK - UniFi AP-AC-Lite - 4.3.26.11358 - 2 days, 0 hours, 16 mins.

/usr/bin/php ./check_unifi -H 192.168.2.213 -P 8443 -u nagios -p nagios -s -m cpu AP02 -w 80 -c 90
OK - 10.4% (load average: 0.01, 0.05, 0.05) | load=0.01;;;; load5=0.05;;;; load15=0.05;;;;
Reviews (1)
byjohnripper, December 24, 2020
0 of 1 people found this review helpful
Downloaded the files and adjusted the clients.php
But then the skript does nothing. I can even use the example:
# usr/bin/php usr/local/nagios/libexec/check_unifi.php -H 192.168.2.1 -u USER -p PASS -P 8443 -s -m uplink -a AP01 -w 200 -c 100
And get nothing.
Any ideas?
(sorry, rating required)
Owner's reply

Unfortunately I don't know which version is in use. A config.php is no longer required.