StoreOnce Backup Storage
1842014 Members
2889 Online
110185 Solutions
New Discussion

HPE StoreOnce rest api

 
titan231
New Member

HPE StoreOnce rest api

We have:

"platformType": "HPE StoreOnce 5250",

"softwareVersion": "4.3.7-2345.50",

and stor2rrd v7.92

Total alerts - 262. So stor2rrd showing in "Health status" not recent events but first, starting 0.

/home/stor2rrd/stor2rrd/bin/storeonceperf_v4.pl

line 60 - get_alerts("https://$ip/rest/alerts");

Can you change to show alerts starting "last first"? TIA

1 REPLY 1
Azr_geek
Regular Advisor

Re: HPE StoreOnce rest api

Hello @titan231,

Below is the simple and safe fix.

storeonceperf_v4.pl retrieves all alerts through: get_alerts("https://$ip/rest/alerts");

StoreOnce API returns alerts in ascending order (oldest → newest).
To display newest → oldest in STOR2RRD, you only need to reverse the array after it is retrieved.

Regards,
Azr_geek