Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
check_unifi.php
Current Version
1.20210118
Last Release Date
2021-01-18
Compatible With
- Nagios 3.x
- Nagios 4.x
Owner
Download URL
License
MIT
Hits
2098
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;;;;
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)
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)
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.