Monitoring Rundeck's job on Nagios

939 views
Skip to first unread message

Emad Hallaq

unread,
Jul 25, 2016, 11:32:14 AM7/25/16
to rundeck-discuss
Hi

I am a new user in Rundeck, but I read the RunDeck User Manual. I have a job working on Rundeck, which I need to monitor on Nagios. I searched in the internet to find out a way could help me in doing that, but unfortunately I didn't find anything useful.
Is there any good guide may help in monitoring a job on Nagios.

Thanks in advance.

Regards,
Emad

Alex Honor

unread,
Jul 25, 2016, 12:08:08 PM7/25/16
to rundeck...@googlegroups.com
Hi Emad,

One idea is to create a notification plugin that generates a Nagios alert if the job fails. Can you say more about the job you need to monitor? Is it scheduled, long running, etc?

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/f9a1ea4f-cb2b-4684-b537-b13cab823843%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Alex Honor

[SimplifyOps, Inc | a...@simplifyops.com ]

Be sure to comment and vote on Rundeck Feature Development!

Emad Hallaq

unread,
Jul 26, 2016, 10:02:46 AM7/26/16
to rundeck-discuss
Hi Alex

Thank you for your prompt reply. My job is scheduled with single execution once a day, and send a notification if it has a failure. Could you please give me more info about the plugin?

Regards,
Emad

Alex Honor

unread,
Jul 26, 2016, 10:12:35 AM7/26/16
to rundeck...@googlegroups.com
Hi Emad,

You can find developer info for notification plugins here. Besides getting an email if the job fails, how else would you like to monitor it?

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Willem D'Haese

unread,
Jul 26, 2016, 11:35:01 AM7/26/16
to rundeck-discuss
Emad, Alex, 

I made a very basic Nagios plugin to monitor ther last execution of a job in /var/log/rundeck/rundeck.executions.log

You can find the plugin here:


Example how to xecute:

./check_rundeck_job.sh -P DAF -J DAF-Nagios-Apply-Schedule-Bi-Daily

Grtz

Andrzej Penkowski

unread,
Aug 3, 2016, 10:43:24 AM8/3/16
to rundeck-discuss
Beside configuring notification on fail in job definition, another idea may be to create nagios checks querying project api endpoints and check for increased failure counts.

Willem D'Haese

unread,
Aug 3, 2016, 12:20:59 PM8/3/16
to rundeck-discuss
Seems like a good idea, but I haven't got any experience yet with the api. Could you give me an example sanitized api query and result? 
Reply all
Reply to author
Forward
0 new messages