Nagios service on host name

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Nagios service on host name

Postby anusha » Tue Feb 13, 2018 12:46 am

Hi ,

By default the sever status is showing ping status and can display it as jvm status instead of ping. Can someone please help me with this
anusha
 
Posts: 21
Joined: Mon Sep 11, 2017 4:38 am

Re: Nagios service on host name

Postby kyang » Tue Feb 13, 2018 12:49 pm

Could you show us a screenshot to clarify what you mean?

Thanks!
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!
kyang
Support Tech
 
Posts: 1792
Joined: Tue Jul 25, 2017 3:35 pm

Re: Nagios default service on hostname

Postby anusha » Wed Feb 14, 2018 4:30 am

Hi Kyang,

By default we are getting server PING status for all the hosts but I want to change it one of the service status instead of ping status. Can you please let me know how to do it.
anusha
 
Posts: 21
Joined: Mon Sep 11, 2017 4:38 am

Re: Nagios service on host name

Postby mcapra » Wed Feb 14, 2018 2:20 pm

This is done by altering the host's check_command, which would be redundant if you are already checking the JVM as a service.

A host's check_command cannot be "symbolically linked" or made to reference to a service check definition. Similarly, a host's status cannot be directly tied to the status of a service. This is a limitation of the objects themselves.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3313
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios service on host name

Postby tgriep » Wed Feb 14, 2018 5:41 pm

Thanks @mcapra for the help.
Pretty much all you would have to do is to edit the host check and make it the same as the existing service check.
If you need help doing this, please post the current host and service configuration so we can view the settings.

If you do figure out how to do this, since the host check is doing the same check as the service check, you may want to disable the service check as it is redundant.
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
tgriep
Madmin
 
Posts: 6804
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios service on host name

Postby anusha » Wed Feb 14, 2018 11:35 pm

Hi trgiep,

Thank you for your quick response. I have changed the check command form check_host_alive to check_jvm in templates.cfg under linux servers and it is working.

Thank you for your help....:) :)
anusha
 
Posts: 21
Joined: Mon Sep 11, 2017 4:38 am

Re: Nagios service on host name

Postby npolovenko » Thu Feb 15, 2018 5:27 pm

@anusha, Do you have any other questions for us before I go ahead and lock this thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
npolovenko
Support Tech
 
Posts: 1833
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios service on host name

Postby anusha » Sun Feb 18, 2018 10:49 pm

Yes you can lock this thread.

Thank you for your support...:)
anusha
 
Posts: 21
Joined: Mon Sep 11, 2017 4:38 am


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 11 guests