postschedulecmd

nitwit

Newcomer
Joined
Jul 27, 2009
Messages
1
Reaction score
0
Points
0
Hi,

I wish to set up a Nagios passive check for all my scheduled TSM client sessions.

To this end I thought that I could define a POSTS or postschedulecmd directive that would point to a script which simply would execute a send_nsca with the status of the just executed dsmc backup session in every client's dsm.sys file.

I have read carefully the online docs by dsmc help for the postschedulecmd.
But it hasn't become at all clear to me how I can pass in the status of the finishing dsm backup session to my postschedulecmd script,
so that in case of failure I could trigger a critical passive check result via send_nsca to my Nagios server.
 
I doubt you'd get what you want via the postschedcmd. If the scheduled activity doesn't complete, then the postschedcmd doesn't run. So getting an RC=12 on a schedule would prevent the script from running and reporting that you got an RC=12.
 
Back
Top