Search found 5 matches

by Beandip408
Wed Jun 22, 2016 5:04 pm
Forum: Open Source Nagios Projects
Topic: Monitoring Jenkins slaves (PowerShell)
Replies: 8
Views: 4314

Re: Monitoring Jenkins slaves (PowerShell)

Yep, this is resolved. Thanks.
by Beandip408
Wed Jun 22, 2016 12:31 pm
Forum: Open Source Nagios Projects
Topic: Monitoring Jenkins slaves (PowerShell)
Replies: 8
Views: 4314

Re: Monitoring Jenkins slaves (PowerShell)

Okay i got it figured out. here is the script: $pCount = (Get-WmiObject Win32_Process -Filter "CommandLine like '%com.domain.reportgenerator.ReportGenerator%'").count if ($pCount -eq 3) { write-host "OK - Found $pCount processes" exit 0 } if ($pCount -eq 2) { write-host "WAR...
by Beandip408
Wed Jun 22, 2016 9:40 am
Forum: Open Source Nagios Projects
Topic: Monitoring Jenkins slaves (PowerShell)
Replies: 8
Views: 4314

Re: Monitoring Jenkins slaves (PowerShell)

Your plugin needs to output data (and perfdata if you want it) and an exit code for it to work properly: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/pluginapi.html So, you would modify the powershell script and have it do something like this: pCount = (Get-WmiObject Win32_Pr...
by Beandip408
Tue Jun 21, 2016 5:13 pm
Forum: Open Source Nagios Projects
Topic: Monitoring Jenkins slaves (PowerShell)
Replies: 8
Views: 4314

Re: Monitoring Jenkins slaves (PowerShell)

Did you already write the powershell script to perform the check? Are you already checking these servers with NRPE at all? You can go to Configure > Configuration Wizards > NRPE - Display Name: Whatever you'd like - Remote NRPE Command: check_pstate - Command Args: 'your unique commandline details'...
by Beandip408
Tue Jun 21, 2016 2:06 pm
Forum: Open Source Nagios Projects
Topic: Monitoring Jenkins slaves (PowerShell)
Replies: 8
Views: 4314

Monitoring Jenkins slaves (PowerShell)

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 is the original thread that i was follow...