RPWimmer / zabbix-templates-arcserve-udp

Zabbix-Templates Arcserve UDP VM Backups
0 stars 0 forks source link

Returning always zero, no error #6

Open ncarreira opened 2 years ago

ncarreira commented 2 years ago

Hello good morning

We are runing the Arcserve_UDP_VMCount.ps1 , in the arcserve udp 8.1 rps server, we have about 10 vms in that hyperv server to monitor backups. When i run the script i get no error but it returns averithing has zero. Can you help, we are using zabbix 6, below print from the data returned after runing in power shell.

Created new session jobID: 59655 jobStatus: Canceled nodeName: hvserver jobType: 0 jobTime: 12/02/2022 13:00:51 - 12/02/2022 13:0 8:30

Name Value


JobMissedCount 0 JobInProgressCount 0 JobIncompleteCount 0 JobCancelledCount 0 JobSuccessCount 0 JobIdleCount 0 Timestamp 1644636449 JobOtherCount 0 JobWaitingCount 0 JobFailedCount 0

uevertonsouza commented 2 years ago

I have the same problem

V-Vesely commented 1 year ago

Hi, I have same problem as well

RPWimmer commented 1 year ago

Hello all, I can see in the first message the "jobType: 0". The number 0 for jobType is for a Client-Backup (BACKUP) NOT for a VM_BACKUP. The script select only VM_BACKUPS with the code"if ($record.jobType -eq 3)..."

The correct number for VM_BACKUP is the jobType number 3, and for CATALOG the jobType is the number 32

try to change the variables $RecentJobID for the correct VM_BACKUP job :

You must try to set the right JobID for the VM job (try it first with 1):

$RecentJobID = 2

If you want to check Client Backups change the script code to "if ($record.jobType -eq 0) for Client-Backups.

Exampel in Debug mode for VM_BACKUP: Agent: WebServiceProxy.UDPService agent.login(, , SRV03) Created new session jobID: 6622 jobStatus: Finished nodeName: srv02.demo.local jobType: 32 jobTime: 22.11.2022 23:40:30 - 22.11.2022 23:40:35 jobID: 6621 jobStatus: Finished nodeName: srv01.demo.local jobType: 32 jobTime: 22.11.2022 23:20:19 - 22.11.2022 23:20:31 jobID: 6619 jobStatus: Finished nodeName: srv02.demo.local jobType: 3 jobTime: 22.11.2022 22:00:15 - 22.11.2022 23:40:26 jobID: 6620 jobStatus: Finished nodeName: srv01.demo.local jobType: 3 jobTime: 22.11.2022 22:00:15 - 22.11.2022 23:20:12 .... Name Value


JobMissedCount 0 JobInProgressCount 0 JobIncompleteCount 0 JobCancelledCount 0 JobSuccessCount 2 JobIdleCount 0 Timestamp 1669671994 JobOtherCount 0 JobWaitingCount 0 JobFailedCount 0

V-Vesely commented 1 year ago

Hi, I´m sorry, but I have question - I have issue, when I tried run script with different variants of $RecentJobID and $JobTypes (values according comments in the script) in each time it returns me 0 in the results

Created new session

Name Value


JobMissedCount 0
JobInProgressCount 0
JobIncompleteCount 0
JobCancelledCount 0
JobSuccessCount 0
JobIdleCount 0
Timestamp 1670285278
JobOtherCount 0
JobWaitingCount 0
JobFailedCount 0

Basicaly I understand that I should use JobType 3 and RecentJobID 1 I´m not sure what can I do wrong

thank you

RPWimmer commented 1 year ago

Hi, in your output is no a list off jobs found.

First check the follwing point if you can open the URLs in browser on the server that have Arcserve UDP installed: http://localhost:8015/services/UDPService?wsdl or https://localhost:8015/services/UDPService?wsdl

Depending on this first question set in the script $protocol = "http" or $protocol = "https"

You should see the following: image

If not, is it possible you use an other port not 8015?

br RPWimmer

V-Vesely commented 1 year ago

Hi, thank you for your answer. Now when I use http it is redirected to https and port 8015 is right.

Thank you

Vlada Vesely

Od: RPWimmer @.> Odesláno: úterý 6. prosince 2022 16:40 Komu: RPWimmer/zabbix-templates-arcserve-udp @.> Kopie: Vladislav Vesely @.>; Comment @.> Předmět: Re: [RPWimmer/zabbix-templates-arcserve-udp] Returning always zero, no error (Issue #6)

Hi, in your output is no a list off jobs found.

First check the follwing point if you can open the URLs in browser on the server that have Arcserve UDP installed: http://localhost:8015/services/UDPService?wsdl or https://localhost:8015/services/UDPService?wsdl

Depending on this firts question set in the script $protocol = "http" or $protocol = "https"

You should see the following: [image]https://user-images.githubusercontent.com/23420219/205954166-cded82ee-7836-4fc9-a0c6-ffde8647e535.png

If not, is it possible you use an other port not 8015?

br RPWimmer

— Reply to this email directly, view it on GitHubhttps://github.com/RPWimmer/zabbix-templates-arcserve-udp/issues/6#issuecomment-1339569532, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3XAO4ZZRZL7OWRANISLSBDWL5M5ZANCNFSM5OG2N5QA. You are receiving this because you commented.Message ID: @.**@.>>