leirn / check_hyperbackup

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

Exit with code => 400 #4

Closed Benoit34590 closed 1 year ago

Benoit34590 commented 1 year ago

Hi, Here is the error I have: Can you help me ?

DSM 7.2-64570 Update 3

root@preprod:/opt/centreon/centreon-plugins# ./check_hyperbackup.php -H 192.168.1.100 Error while getting http://1192.168.1.100:5000/webapi/entry.cgi?api=SYNO.API.Auth&method=Login&version=6&account=administrateur&passwd=jean@mich&session=HyperBackup=&format=sid . stdClass Object ( [error] => stdClass Object ( [code] => 400 )

[success] =>

)

=> {"error":{"code":400},"success":false}

thanks

Benoit34590 commented 1 year ago

Ok Wrong password.

see error code here; https://global.download.synology.com/download/Document/Software/DeveloperGuide/Os/DSM/All/enu/DSM_Login_Web_API_Guide_enu.pdf