Page 1 of 1

check_jenkins_cron.pl is not detecting succesful builds

Posted: Thu Jun 13, 2019 6:13 am
by puni21davari
Hi there,

Urgent help needed.

I am trying to monitor Jenkins jobs which are triggered periodically using NagiosXI trial version.

My configuration is as follows:
check_jenkins_cron.pl -j jenkinsjobname -l jenkinsurl -w 60 -c 120

And I have set jenkins job to trigger every minute for testing purpose and its successful.

Still the plugin outputs as below:

CRITICAL - 'jenkinsjobname' has not run successfully for 15h 56m 31s. No runs since. http://jenkins:8080/job/jobname/59/

Anyone knows whats wrong with it?

Thanks in Advance,
Poonam Davari

Re: check_jenkins_cron.pl is not detecting succesful builds

Posted: Thu Jun 13, 2019 3:18 pm
by scottwilkerson
Are the times synced on the XI server and the Jenkins server?

run the following on each from the CLI

Code: Select all

date
do they match including timezone?

Re: check_jenkins_cron.pl is not detecting succesful builds

Posted: Fri Jun 14, 2019 12:20 am
by puni21davari
Now it seems working fine.
I haven't changed anything in setup and as I checked both servers time is in sync.
Yesterday I did not check that, so not sure what was the issue before.

Re: check_jenkins_cron.pl is not detecting succesful builds

Posted: Fri Jun 14, 2019 6:23 am
by scottwilkerson
puni21davari wrote:Now it seems working fine.
I haven't changed anything in setup and as I checked both servers time is in sync.
Yesterday I did not check that, so not sure what was the issue before.
That's odd but glad it's working.

Locking thread