check_nrpe & check_disk & different port

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
crechet51
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

check_nrpe & check_disk & different port

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: check_nrpe & check_disk & different port

Post by mbellerue »

In Configure -> Core Configuration Manager -> Services, find the specific service in question, and add -p 5656 to $ARG2$
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
crechet51
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

Re: check_nrpe & check_disk & different port

Post by crechet51 »

It works, thanks a lot
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: check_nrpe & check_disk & different port

Post by mbellerue »

You're welcome! Closing thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked