Page 1 of 2
How to add new service to "Service Status" in Nagios xi?
Posted: Tue Oct 06, 2020 3:30 am
by Nayananr
Hi,
I am trying to add new service monitoring via SNMP in "Service Status" component (Home Menu -> Details -> Service status).
Steps that tried :
1. Added the service script in path : /nagios/libexec/.
1. Created the service command in CCM(_commands).
2. Created Host as per required(with ip address).
3. Created new service for new host as per the example available in server.
But still the service is not visible on the "Home -> Details -> Service status " tab.
Attached the img for reference, the place where i want to add new service with new host.
Can any one just guide me how to solve above issue.
Regards,
Nayana
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Tue Oct 06, 2020 3:29 pm
by benjaminsmith
HI,
Thanks for testing out Nagios XI. Happy to help answer any questions for you as you learn the product.
After adding the host and service(s) in the CCM, did you Apply Configuration, and were there any errors? If there was an error it would revert back to the initial configuration.
Run through the following steps in Configure > CCM > Tools > Config File Management
1. Delete Files
2. Write Files
3. Verify Files ( if you see any errors follow the message to correct and repeat steps 1-3 until it passes)
4. Restart Nagios Core
If you have any issues, please post a screenshot so we can review the errors. Thanks, Benjamin
Also, here's a couple of links to the CCM documentation.
Using The Core Config Manager For Host Management
Using The Core Config Manager For Service Management
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Wed Oct 07, 2020 1:20 am
by Nayananr
Hi,
Thank you for the support.
[quote="After adding the host and service(s) in the CCM, did you Apply Configuration, and were there any errors? If there was an error it would revert back to the initial configuration.[/quote]
Yes, i applied configuration after adding new Command, hosts and services.
benjaminsmith wrote:If you have any issues, please post a screenshot so we can review the errors
I have fallowed the steps that suggested and restarted the core and i have not observed any Errors in the Validation.
Attached screen shot for reference.
But still i didn't see any changes in "Service status" component screen.
Example for my requirement:
Original : IMG1 attached shows the original "Service status" screen that when Nagiosxi installed.
Required : IMG2 shows the requirement that i want to add in "Service status screen".
Attached IMG's for reference.
Regards,
Nayana
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Wed Oct 07, 2020 5:29 am
by Nayananr
Hi,
One more doubt i have regarding the components in "Home -> Details" section, actually i have added the one new component in "Details" section and upon click server is taking almost 15sec to open the page.
Can you give me some details for above?
Regards,
Nayana
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Wed Oct 07, 2020 3:53 pm
by benjaminsmith
Hi Nayana,
Since you're having some performance issues, let's get a system profile from you server and take a look at the logs.
A couple of other questions:
1. Are you logged in as admin or user. For a user account, please post a screenshot of the user permission or make sure you have selected the
Can see all hosts and services: option for this user.
user-perms.png
2. What is the exact name of the new service?
3. To send us your system profile:
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
Thanks!
Benjamin
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Thu Oct 08, 2020 12:36 am
by Nayananr
Hi Benjamin,
Find the details below for your question :
1.
benjaminsmith wrote:Are you logged in as admin or user
Yes, i have logged in as Admin and attached screen shot for reference(user.odt)
2.
benjaminsmith wrote:2. What is the exact name of the new service?
Service name : Device Receiver attenuation using SNMP(Written own script compatible with my device).
3.
benjaminsmith wrote:3. To send us your system profile:
Attached zip file for reference.
Regards,
Nayana
Moderator's Note: The profile has been shared with the support team but has been removed from the public forum
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Thu Oct 08, 2020 3:33 pm
by benjaminsmith
Hi Nayana,
There's an issue with the configuration files. The objects.cache file contains all of the configurations stored in the monitoring engine's(Nagios Core) memory, and right now it only shows the default localhost and its services.
I'm unable to find
Device Receiver attenuation using SNM in the configuration files, so it's likely in the database but was not written out to the files due to an error. However, I do see the following hosts in your file:
-- CyientHW1
-- CyientHW2
If you are not able to resolve this by going through the following steps:
Configure > CCM > Tools > Config File Management
1. Delete Files
2. Write Files
3. Verify Files ( if you see any errors follow the message to correct and repeat steps 1-3 until it passes)
4. Restart Nagios Cor
Please run the following command and PM the nagios configuration database to me.
Code: Select all
mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
Regards,
Benjamin
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Fri Oct 09, 2020 12:50 am
by Nayananr
Hi Benjamin
1.
benjaminsmith wrote:I'm unable to find Device Receiver attenuation using SNM in the configuration files, so it's likely in the database but was not written out to the files due to an error. However, I do see the following hosts in your file:
I have attached screen shot for reference to show new services with new host details.
2.
benjaminsmith wrote:If you are not able to resolve this by going through the following steps:
Configure > CCM > Tools > Config File Management
1. Delete Files
2. Write Files
3. Verify Files ( if you see any errors follow the message to correct and repeat steps 1-3 until it passes)
4. Restart Nagios Cor
No, I didn't observe any changes after fallowing above steps.
3.
benjaminsmith wrote:Please run the following command and PM the nagios configuration database to me.
CODE: SELECT ALL
mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
Attached the "nagiosql.sql" file after running above command.
Regards,
Nayana
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Fri Oct 09, 2020 2:58 pm
by benjaminsmith
Hi,
Thanks for the file. So all the services for the host, CyientHW1, do not have the host assignment.
config-error.png
So you'll just need to go through the list of services.
add-host-list.png
And then assign the host in the CCM.
add-host.png
Lastly, those same services are missing the max check attempts as well.
BER.png
You can use the Bulk Mods tool to quickly add this value to all of those services. In the CCM, go to Tools > Bulk Mods and select the
Change a single configuration option.
Let us know if you're able to get it resolved.
Regards,
Benjamin
Re: How to add new service to "Service Status" in Nagios xi?
Posted: Mon Oct 12, 2020 6:59 am
by Lakshminaidu cyient
Hi Benjamin,
I am Nayana, i am using different login due to trail version has expired for my login.
1.
benjaminsmith wrote:assign the host in the CCM.
I have assigned host name and templates as suggested.
2.
benjaminsmith wrote:Lastly, those same services are missing the max check attempts as well.
I have added checks also.
Attached the same for reference(nagiosql.sql).
Note:'
For checking purpose i have configured only "Attenuation" service with full details and other services are just reference.
That's why config details are missed.
The services are added in CCM->Monitoring->Service are working as before and giving response with device connected by running "Run check command".
But same services are not reflecting on Home->Details->Service Status.
Regards,
Nayana