Page 1 of 1

Mail notification for Script Completes

Posted: Thu Nov 08, 2012 3:18 am
by gm_rajkumar
I'm running from local windows shell script to take SharePoint backup. Its auto scheduled in Windows Task manager.
We would like to have an email alert through Nagios, whether backup success or failed . Is this possible to do it Nagios??

Regards,
Raj.

Re: Mail notification for Script Completes

Posted: Thu Nov 08, 2012 12:56 pm
by scottwilkerson
there are a couple ways to do this.

One would be to use a script to call a script from NSClient to check that you have files that are new enough in your backup directory
http://exchange.nagios.org/directory/Pl ... TK/details

Another method would be to have your backup script report the error to your XI server via NSCA or NRDP
http://exchange.nagios.org/directory/Ad ... nt/details

Re: Mail notification for Script Completes

Posted: Fri Nov 16, 2012 1:02 pm
by gm_rajkumar
Its quite impressive, i wanted to know further into this..
http://exchange.nagios.org/directory/Pl ... TK/details

I have downloaded the check_win file and executed in the client machine and its working fine. I just wanted how this would be communicated with Nagios server and let me know the steps configure whether its NSC.ini file or somewhere. Thanks!!


Regards,
Rajkumar M.

Re: Mail notification for Script Completes

Posted: Fri Nov 16, 2012 2:21 pm
by slansing
This plugin would be called from the Nagios system much like any other NRPE plugin, you would follow the same steps to add it to the plugins folder on your windows machine, then define it like the others in your NSC.ini file, and call it using check_nrpe on the nagios machine.

Re: Mail notification for Script Completes

Posted: Mon Nov 26, 2012 10:51 pm
by gm_rajkumar
Hi,

Thanks for the plugin first, i wanted to have further in this. In the backup folder, there are multiple folders that are created in the name of Current date (27-11-2012) backup files were stored on this. I wanted to make this script to check the folder name (date) should be created or not and files.

This specific script validate the files whether created on date and file counts. Is there any option to check the folder name??

Thanks!
Regards,
Raj.

Re: Mail notification for Script Completes

Posted: Tue Nov 27, 2012 1:22 pm
by scottwilkerson
Do you mean check if the folder exists?

Re: Mail notification for Script Completes

Posted: Tue Nov 27, 2012 9:57 pm
by gm_rajkumar
I wanted to check whether folder is present which matches with my constrain (current date 27-11-2012), this plugin helps to count files only with limited features.
Do you have any plugin to check folder present on specific path & age??
Regards,
Raj.

Re: Mail notification for Script Completes

Posted: Wed Nov 28, 2012 10:21 am
by scottwilkerson
I couldn't find any, you certainly could create one...