Thank you for your reply and apologies for the delay in replying myself!
I have now installed JSON and set up my service definition as follows:
Code: Select all
define service{
use generic-service
host_name MyJenkinsServer
service_description MyJenkinsJobName
check_interval 1
check_command cjj!MyJenkinsServerName!MyJenkinsJobName!0!0!0!0
}
and my command like this:
Code: Select all
define command{
command_name cjj
command_line $USER1$/check_jenkins_job_extended.pl $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$
}
but the web interface is currently returning "(No output returned from plugin) "
Even though the username and password fields are optional, I'm just wondering if I should add two parameter separators to indicate that I'm not including username or password, like this:
Code: Select all
check_command cjj!MyJenkinsServerName!MyJenkinsJobName!!!0!0!0!0
if I include my username and password like this:
Code: Select all
check_command cjj!MyJenkinsServerName!MyUserName!MyPassword!MyJenkinsJobName!0!0!0!0
the result is the same.
Note - I'm using the jenkins server hostname, rather than its URL, because when I use (for example) "
https://jenkinsbuildserver", I get:
Error: Could not find any host matching '
https://jenkinsbuildserver'
Any suggestions, good Nagios folk?
Thanks in advance.
Pete