Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check last backup data
i'm trying to monitor the last backup file data on a windows machine with the pandora agent but i don't know how to do!!
Can someone help me please?


The easy way to monitoring this files, is monitoring with DIR command the backup directory and check the last changes.

I've try but i'm not much able to work with strings in dos...
i saw that with this commad i can sort my *.TIB files in invert alphabetic order

dir *.tib / OD

but i dont understand how to use it in a module
can you help me please?

Check with this configuration

module_name test
module_type generic_data_string
module_exec dir /OD /TW | grep tib | tail -1

Thanks Mario,
i used your suggestion to resolve my problem like this

module_name Ultimo-Backup
module_type generic_data_string
module_exec dir c:\programmi\pandora_agent\ /OD /TW | grep tib | tail -1 | cut -b -10
module_description Data Ultimo Backup Acronis

in this way i have only the date without any other info, like i want!!

now if i want to check if the last backup is older than 2 days and set an allert how can i do?


It's a bit convoluted setup, but it is possible

1º Create a Alert Template with this configuration:
    - Name: Not Change
    - Priority: (The one you want)
    - Condition type: On change and uncheck the box "Trigger when matches the value"
    Below, the text appears >>> The alert would fire when the module value does not change

In the second step you need to configure:
    Time threshold > 2 days, F.e. 1 week
    Min. number of alerts .- It's the most important setting for this alert. If your module interval is 5 minutes, this module run 12 times in an hour, 12x24= 288 times in a day and 288x2=576 times in 2 days. You have to set 576 in this field.
    Max number of alerts. Any number > to Min number of alerts

After this setting, you can now associate the module with this template.

Wow! you are great!
now i set up all you explained me

i attached the template!

now i' m checking a fake file than never change the last modification date, i hope that the alert fired tomorrow

thanks a lot, i tell you how it's work

Attached Files

.jpg   IMM1.jpg (Size: 56.66 KB / Downloads: 165)
.jpg   IMM3.jpg (Size: 33.4 KB / Downloads: 158)
.jpg   IMM4.jpg (Size: 108.6 KB / Downloads: 153)
.jpg   IMM5.jpg (Size: 87.27 KB / Downloads: 166)

I recommend, that you use a higher threshold to 2 days (50 hours for example). Thus, in case that a delay occurs in any execution of the module and not run the times that have been set in the time threshold.

Thanks, regards
I've set the threshold to 3 days but it's sent me a lot of mail alert...
the backup run every morning at 2 AM
[quote='fonta link' pid='7691' dateline='1388398318']
I've set the threshold to 3 days but it's sent me a lot of mail alert...
the backup run every morning at 2 AM

Checkout, in the advanced parameters of the module, "Generate Unknown Events" of the module, that could be triggering false alert recovery events. Disable that checkbox and see if works for you.


Users browsing this thread: 1 Guest(s)

(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | |

Theme © MyBB Themes