on the services page in the CCM can you click the disk icon next to one of the services and save the output and post it here.
It's line 65 of that output we need to look at because the one you checked on the file system was already reverted to a snapshot
Thanks
Restoring Nagios XI to factory default did not work well
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
-
habuhejleh
- Posts: 32
- Joined: Thu Feb 08, 2018 3:24 am
Re: Restoring Nagios XI to factory default did not work well
Here is the output, PLease advise ASAP:
########################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.0
# Date: 2018-02-28 10:53:20
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
service_description Current Load
use local-service
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
register 1
}
define service {
service_description Current Users
use local-service
check_command check_local_users!20!50
register 1
}
define service {
service_description HTTP
use local-service
check_command check_http
register 1
}
define service {
service_description PING
use local-service
check_command check_ping!100.0,20%!500.0,60%
register 1
}
define service {
service_description Root Partition
use local-service
check_command check_local_disk!20%!10%!/
register 1
}
define service {
service_description Service Status - httpd
use local-service
check_command check_xi_service_status!httpd!!!!!!!
register 1
}
define service {
service_description SSH
use local-service
check_command check_ssh
register 1
}
define service {
service_description Swap Usage
use local-service
check_command check_local_swap!20!10
register 1
}
define service {
service_description Total Processes
use local-service
check_command check_local_procs!250!400!RSZDT
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
########################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.0
# Date: 2018-02-28 10:53:20
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
service_description Current Load
use local-service
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
register 1
}
define service {
service_description Current Users
use local-service
check_command check_local_users!20!50
register 1
}
define service {
service_description HTTP
use local-service
check_command check_http
register 1
}
define service {
service_description PING
use local-service
check_command check_ping!100.0,20%!500.0,60%
register 1
}
define service {
service_description Root Partition
use local-service
check_command check_local_disk!20%!10%!/
register 1
}
define service {
service_description Service Status - httpd
use local-service
check_command check_xi_service_status!httpd!!!!!!!
register 1
}
define service {
service_description SSH
use local-service
check_command check_ssh
register 1
}
define service {
service_description Swap Usage
use local-service
check_command check_local_swap!20!10
register 1
}
define service {
service_description Total Processes
use local-service
check_command check_local_procs!250!400!RSZDT
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Restoring Nagios XI to factory default did not work well
Ok, none of the services have a host assigned.
So in the CCM, add localhost to each of these services and click save, once they are all added, Apply Configuration
So in the CCM, add localhost to each of these services and click save, once they are all added, Apply Configuration
-
habuhejleh
- Posts: 32
- Joined: Thu Feb 08, 2018 3:24 am
Re: Restoring Nagios XI to factory default did not work well
Each one is already assigned a localhost as you can see in the attached.
Please advise why resetting to the factory default is not working with me
Please advise why resetting to the factory default is not working with me
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Restoring Nagios XI to factory default did not work well
you may have to go through each as I mentioned and click save so the correct id get linked and the service re-writes the config
-
habuhejleh
- Posts: 32
- Joined: Thu Feb 08, 2018 3:24 am
Re: Restoring Nagios XI to factory default did not work well
Done with no luck.
I am getting this error when apply configuration "Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/localhost.cfg', starting on line 65)"
Please advise why the system is not going to factory default?! is it because on virtual machine?
I am getting this error when apply configuration "Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/localhost.cfg', starting on line 65)"
Please advise why the system is not going to factory default?! is it because on virtual machine?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Restoring Nagios XI to factory default did not work well
I actually do not know why it is failing however it will never reset the VM, it is supposed to just remove the configurations.habuhejleh wrote:Please advise why the system is not going to factory default?
The last think I can suggest is to place the attached file in /usr/local/nagios/etc/import/
Then run Apply configuration.
This should overwrite your current setting.
If it still fails, I would suggest re-downloading the VM from our website.
You do not have the required permissions to view the files attached to this post.