leirn / check_hyperbackup

Synology Hyperbackup check for Nagios
MIT License
6 stars 1 forks source link

No longer working since DSM 7 Upgrade #3

Open flo-assling opened 2 years ago

flo-assling commented 2 years ago

Hi, worked perfectly until we upgraded our Synologies to DSM 7. Those who are still on DSM 6 continue to work. For DSM 7 I get the following output: Error while getting http://xyz:5000/webapi/entry.cgi?api=SYNO.API.Auth&method=Login&version=6&account=backupuser&passwd=xyz&session=HyperBackup=&format=sid Is there any way to also monitor the newer Synology OS versions? Thanks a lot, Florian

zig-lh commented 1 year ago

It works for me, but i commented this lines:

// Check username //if(!isset($options['u'])) {echo "Username not defined.\n";print_help();exit;} else $login = $options['u'];

//Check password // if(!isset($options['p'])) {echo "Password not defined.\n";print_help();exit;} else $pass = $options['p'];

And create 2 lines:

$login="my user"; $pass="my passwd";

To check i just type this: check_hyperbackup.php -H myhost

Regards.