Page 1 of 1
Nagios core 4.5.3 interfaz Services Status Totals
Posted: Fri Jul 19, 2024 4:03 am
by gaspar.udo
Hello community, is it possible to add/modify a service status? at the top of the interface screen
"Service Status Totals"
(OK,Warning,Unknown,Critical,Pending)
Re: Nagios core 4.5.3 interfaz Services Status Totals
Posted: Fri Jul 19, 2024 10:19 am
by gwesterman
Hi @gaspar.udo,
The "Service Status Totals" and "Host Status Totals" tables show the current statuses of your hosts and services. The individual statuses come from your configured hosts and services which can be removed by removing the host / service.
Are you wondering if you can remove one of the types of statuses (for example remove the "Pending" service cell)? There is no method of doing this within the interface, but, if you are comfortable, you can always edit the code to remove or hide any portion of the table.
If I misinterpreted your request of if you have any other questions, please let us know.
Thank you!
Re: Nagios core 4.5.3 interfaz Services Status Totals
Posted: Mon Jul 22, 2024 2:11 am
by gaspar.udo
My question is more focused on whether it is possible that these state services can be modified to our liking, such as adding more, with the name we need, or are they immovable?
Re: Nagios core 4.5.3 interfaz Services Status Totals
Posted: Mon Jul 22, 2024 9:09 am
by gwesterman
Yes!
You certainly can add, modify, and remove any hosts and services in Nagios Core.
While there is a graphical user interfaces for showing the statuses of hosts and services, it does not have a GUI for adding, modifying, or removing these object definitions (Nagios XI does, if you would like to try that out). Hosts and services in Nagios Core are considered objects and they are all defined within /usr/local/nagios/etc/objects. To add/edit your objects, take a look at the documentation
here. Every time you make a change to your configuration, make sure to verify that your changes are valid by running /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and to restart Nagios Core (systemctl restart nagios or service nagios restart).
Let us know if you have any additional questions.
Thank you!