Re: [BackupPC-users] Capture Metrics from wget
Hi,
i do this in debian shell:
jobstatus3=`sudo -u backuppc /usr/local/BackupPC/bin/BackupPC_serverMesg
'status host('$hostname')' | awk -F',' '{ for( i=1; i<=NF; i++) print
$i}' |grep activeJob`
filecount3=`sudo -u backuppc /usr/local/BackupPC/bin/BackupPC_serverMesg
'status host('$hostname')' | awk -F',' '{ for( i=1; i<=NF; i++) print
$i}' |grep xferFileCnt | awk -F ' ' '{print $3}' |grep -o '[[:digit:]]*'`
Just My 2Cents
Taste
Am 01.12.24 um 20:40 schrieb Norbert Hoeller via BackupPC-users:
I was able to fetch my backuppc v4 Server Status page by passing --user=
and --password= to the wget command.
On November 30, 2024 4:50:01 p.m. EST, [email protected] wrote:
Is there any way to pass the username/password in the request, or some other
way to get metrics?
___
BackupPC-users mailing list
[email protected]
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
___
BackupPC-users mailing list
[email protected]
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] Capture Metrics from wget
I was able to fetch my backuppc v4 Server Status page by passing --user= and --password= to the wget command. On November 30, 2024 4:50:01 p.m. EST, [email protected] wrote: > >Is there any way to pass the username/password in the request, or some other >way to get metrics? ___ BackupPC-users mailing list [email protected] List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
Re: [BackupPC-users] Capture Metrics from wget
Try using curl and or BeautifulSoup. Cheers, H vinum vesco valens viscus On November 30, 2024 4:14:59 PM wrote: I'd like to capture metrics from BackuPC and send them to a monitoring system, specifically Quest Foglight. When I try wget http://nas2:8080/BackupPC_Admin?action=metrics I see --2024-11-30 13:46:03-- http://nas2:8080/BackupPC_Admin?action=metrics Resolving nas2 (nas2)... 192.168.75.51 Connecting to nas2 (nas2)|192.168.75.51|:8080... connected. HTTP request sent, awaiting response... 401 Unauthorized Username/Password Authentication Failed. Is there any way to pass the username/password in the request, or some other way to get metrics? Thanks in advance! Clay Jackson ___ BackupPC-users mailing list [email protected] List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/ ___ BackupPC-users mailing list [email protected] List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/
