check_jenkins_cron.pl is not detecting succesful builds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
puni21davari
Posts: 2
Joined: Wed Jun 12, 2019 3:45 am

check_jenkins_cron.pl is not detecting succesful builds

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_jenkins_cron.pl is not detecting succesful builds

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
puni21davari
Posts: 2
Joined: Wed Jun 12, 2019 3:45 am

Re: check_jenkins_cron.pl is not detecting succesful builds

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_jenkins_cron.pl is not detecting succesful builds

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked