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_synology.php

Rating
0 votes
Favoured:
0
Current Version
1.20210124
Last Release Date
2021-01-24
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Hits
465
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 Synology NAS over SMTP.
You need to install php-snmp!

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m system -t temperatur -w 35 -c 45
Warning - 36,00 °C | Temperatur=36,00;35;45

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m system -t update -c ~2 -w 2
OK - DS720+ , XXXXXXXXXXXXX , DSM 7.0-41222 , Unavailable

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m system -t status
OK - System: OK , Powerstatus: OK , Fan: OK , CpuFan: OK

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m cpu -t usage -w 80 -c 90
OK - 9% (User: 7% System: 2% I/O Wait: 2% Idle: 89%)|Cpu=9%;80;90;; User=7 System=2 IOWait=2 Idle=89

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m memory -t usage -w 80 -c 90
OK - 40,8% (4092376KB | TOTAL=10031480KB;;;; USED=4092376KB;;;; FREE= 218228KB;;;; CACHES=5720876KB;;;;

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m disk -t status -n 2
OK - Disk 2: WD80EFAX-68KNBN0 (SATA) , Normal

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m disk -t temperatur -w 25 -c 30
Critical - 35,00 °C | Temperatur=35,00;25;30

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m raid -t status
OK - Volume 1: Normal

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m raid -t usage -w 50 -c 90
WARNING - Free: 2432,381 MB , Used: 4717,251 MB , Total: 7149,632 MB| used=4717,251MB;3574,500;6434,100

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m ups -t usage -w 50 -c 25
OK - Charged: 100% (Minutes: 1171) | Charged=100%;50;25;;

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m service -t CIFS -w 5 -c 10
Warning - CIFS: 9

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 3 -m service -t CIFS -w 5 -c 10 -u nagios -p nagiossnmp -a MD5 -x DES -X nagiossnmp
Warning - CIFS: 9

/usr/bin/php ./check_synology.php -H 192.168.2.200 -P 2 -C public -m system -V
Array
(
[iso.3.6.1.4.1.6574.1.1.0] => INTEGER: 1
[iso.3.6.1.4.1.6574.1.2.0] => INTEGER: 36
[iso.3.6.1.4.1.6574.1.3.0] => INTEGER: 1
[iso.3.6.1.4.1.6574.1.4.1.0] => INTEGER: 1
[iso.3.6.1.4.1.6574.1.4.2.0] => INTEGER: 1
[iso.3.6.1.4.1.6574.1.5.1.0] => STRING: "DS720+"
[iso.3.6.1.4.1.6574.1.5.2.0] => STRING: "XXXXXXXXXXXXX"
[iso.3.6.1.4.1.6574.1.5.3.0] => STRING: "DSM 7.0-41222"
[iso.3.6.1.4.1.6574.1.5.4.0] => INTEGER: 2
)