how to check scheduler task in windows

Chris Beattie cbeattie at geninfo.com
Wed Apr 27 15:38:23 CEST 2011


ali abatourab wrote:
> 
> please i need help for checking my scheduler task in windows with nagios 
> , like task start ,task error 

You can check Windows scheduled tasks if you use the NSClient++ agent.

http://www.nsclient.org/nscp/wiki/CheckTaskSched/CheckTaskSched

In the monitored host's nsc.ini file, enable at least the 
NRPEListener.dll and the CheckTaskSched.dll.  Then add in the [External 
Alias] section something like this:

alias_checktasksched=CheckTaskSched +filter-exit-code==0 ShowAll 
MaxWarn=1 MaxCrit=2

Then add a command like this to Nagios' command.cfg:

define command{
	command_name	check_task_sched
	# Can only be used with nsclient++ and the right NSC.ini
	command_line	$USER1$/check_nrpe -H $HOSTADDRESS$ -c alias_checktasksched
}

Then you can create a service check or template in Nagios and assign 
that to the monitored host in your preferred way.

-- 
-Chris

------


Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately.
 

Thank you.


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list