Monitoring jenkins Slaves
Posted: Thu Mar 17, 2016 7:26 am
Good afternoon,
Does anyone here have any experience of monitoring Jenkins slaves using Nagios Core?
Some of my build servers can have a Jenkins slave on more than one Jenkins master, and i want to be able to monitor them individually, rather than just monitor java.exe.
Here's what I have so far (with certain key information changed), copying the command information from the Processes tab within Task Manager on my Jenkins slave PC:
With this, Nagios returns:
I'm not sure if it's simply a matter of re-positioning some quotes and/or double quotes, or whether check_nt simply can't accept a command parameter of this complexity.
Thanks in advance for your assistance
Pete
Does anyone here have any experience of monitoring Jenkins slaves using Nagios Core?
Some of my build servers can have a Jenkins slave on more than one Jenkins master, and i want to be able to monitor them individually, rather than just monitor java.exe.
Here's what I have so far (with certain key information changed), copying the command information from the Processes tab within Task Manager on my Jenkins slave PC:
Code: Select all
define service{
use generic-service
host_name MySlaveComputer
service_description Java Slave process on jenkins-build
check_command check_nt!PROCSTATE! -d SHOWALL -l 'c:\\program files\\java\\jre1.8.0_60\\bin\\java.exe -Xrs -jar "E:\\Jenkins-Slave\\slave.jar" -jnlpURL https://MyBuildServerURL/computer/MySlaveComputer/slave-agent.jnlp -noCertificateCheck -jnlpcredentials MyJenkinsAccount:MyJenkinsAccountPassword'
}
Code: Select all
e: - total: 279.36 Gb - used: 18.24 Gb (7%) - free 261.12 Gb (93%)
Java Slave process on jenkins-build
CRITICAL 03-17-2016 12:18:57 0d 0h 43m 17s 3/3 c:\program files\java\jre1.8.0_60\bin\java.exe -Xrs -jar "E:\Jenkins-Slave\slave.jar" -jnlpURL https://MyBuildServerURL/computer/MySlaveComputer/slave-agent.jnlp -noCertificateCheck -jnlpcredentials MyJenkinsAccount:MyJenkinsAccountPassword: not running
Thanks in advance for your assistance
Pete