Pandora FMS Community

Check last backup data

fonta · 3 oct 2013, 17:55 · 14 mensajes · 93 visitas

  1. Inicio del debate

    Hi, 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? Thanks

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

  3. 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? Thanks

  4. Hi Check with this configuration module_begin module_name test module_type generic_data_string module_exec dir /OD /TW | grep tib | tail -1 module_end Regards

  5. Thanks Mario, i used your suggestion to resolve my problem like this module_begin module_name Ultimo-Backup module_type generic_data_string module_exec dir c:programmipandora_agent /OD /TW | grep tib | tail -1 | cut -b -10 module_description Data Ultimo Backup Acronis module_end 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?

  6. Hi 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. Regards

  7. 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 Bye

    [

    ](//pandorafms.com/community/media/forum/0/16075=590-IMM1.jpg)

    [

    ](//pandorafms.com/community/media/forum/0/16075=591-IMM3.jpg)

    [

    ](//pandorafms.com/community/media/forum/0/16075=592-IMM4.jpg)

    [

    ](//pandorafms.com/community/media/forum/0/16075=593-IMM5.jpg)

  8. Great! 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

  9. 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

  10. 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.

  11. Hi Sancho! in the advanced parameters of the module i've no "Generate Unknown Events" voice i attach you the picture

    [

    ](//pandorafms.com/community/media/forum/0/16163=598-module.jpg)

  12. Umm, that is for 5.0 version, I suppose you're running 4.1. Never mind. Can you send me a screenshot of the full definition of the module, including the thresholds for CRITICAL/WARNING ?. If the alert is done with manual data thresholds, put here the screenshot also.

  13. this is the agent module definition and run every 5 minutes # Controllo data ultimo backup module_begin module_name Ultimo-Backup module_type generic_data_string module_exec dir y: /OD /TW | grep TIB | tail -1 | cut -b -10 module_description Data Ultimo Backup Acronis module_end i check the date of the last TIB files on y: i attach the 3 tabs for the alert template

    [

    ](//pandorafms.com/community/media/forum/0/16185=602-IMM2.jpg)

    [

    ](//pandorafms.com/community/media/forum/0/16185=603-IMM3.jpg)

    [

    ](//pandorafms.com/community/media/forum/0/16185=604-IMM4.jpg)

  14. It's strange. Try with this alternative configuration: In Alert Template: Time threshold : 3 days Min number of alerts: 0 Max Number of Alerts: 600 Default Action: None In Module Alert Configuration Module: Ultimo Backup Template: Backup Actions: Mail to XX / Min number of alerts: 576 / max Number of Alerts 600 / Threshold: 259200

Entra en tu cuenta para publicar.