Page 1 of 1

check_nrpe & check_disk & different port

Posted: Wed Aug 21, 2019 3:19 am
by crechet51
Hello,

how can I use different port in a similar command:

Code: Select all

define service{
  use                             generic-service
  host_name                       some-host
  service_description             Disk Space
  notification_options            w,u,c,r
  check_command                   check_nrpe!check_disk!
}
like a:

Code: Select all

./check_nrpe -H some-host -p5656

Re: check_nrpe & check_disk & different port

Posted: Wed Aug 21, 2019 4:05 pm
by mbellerue
In Configure -> Core Configuration Manager -> Services, find the specific service in question, and add -p 5656 to $ARG2$

Re: check_nrpe & check_disk & different port

Posted: Thu Aug 22, 2019 9:48 am
by crechet51
It works, thanks a lot

Re: check_nrpe & check_disk & different port

Posted: Thu Aug 22, 2019 9:58 am
by mbellerue
You're welcome! Closing thread.