check_nrpe & check_disk & different port

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

check_nrpe & check_disk & different port

Postby crechet51 » Wed Aug 21, 2019 3:19 am

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
crechet51
 
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

Re: check_nrpe & check_disk & different port

Postby mbellerue » Wed Aug 21, 2019 4:05 pm

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

Re: check_nrpe & check_disk & different port

Postby crechet51 » Thu Aug 22, 2019 9:48 am

It works, thanks a lot
crechet51
 
Posts: 24
Joined: Mon Aug 05, 2019 9:41 am

Re: check_nrpe & check_disk & different port

Postby mbellerue » Thu Aug 22, 2019 9:58 am

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


Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 15 guests