Confguration Verfication
Confguration Verfication
Hi All,
when i try to add any host in nagios xi, after completing the initial settings apply configuration takes a lot of time on configuration verification. After a long time it gives me configuration verification failed error. I have checked there is not pending apply configuration in CCM. Even though i have tried the steps mentioned in the following link.
https://support.nagios.com/kb/article/n ... d-144.html
kindly help. Moreover currently our annual subscription is expired. is this the reason. Everything was smooth until Saturday evening, my system admin hase update that centos machine where nagios xi is runing, after that this starts happening,
when i try to add any host in nagios xi, after completing the initial settings apply configuration takes a lot of time on configuration verification. After a long time it gives me configuration verification failed error. I have checked there is not pending apply configuration in CCM. Even though i have tried the steps mentioned in the following link.
https://support.nagios.com/kb/article/n ... d-144.html
kindly help. Moreover currently our annual subscription is expired. is this the reason. Everything was smooth until Saturday evening, my system admin hase update that centos machine where nagios xi is runing, after that this starts happening,
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Confguration Verfication
Hello, @ushahab88.
What is the output of this command:
Could you send in your Nagios XI System Profile so I can review it?
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, upload it to a cloud storage of your choice and share a link with me via pm.
After you share the profile please post something in this thread to bring it back up in the support queue.
What is the output of this command:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgTo 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, upload it to a cloud storage of your choice and share a link with me via pm.
After you share the profile please post something in this thread to bring it back up in the support queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Confguration Verfication
result of the command "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg"
is attached in the txt file please find it. Profile will be having our IP's which i have to clear. is it fine ?
is attached in the txt file please find it. Profile will be having our IP's which i have to clear. is it fine ?
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: Confguration Verfication
this verification looks fine.
Once think that can cause failure like you describe is if you do not have the proper entries in your sudoers file
run the following while you try to execute an apply config through the UI
report all output
Once think that can cause failure like you describe is if you do not have the proper entries in your sudoers file
run the following while you try to execute an apply config through the UI
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.logNo, however if you get your support and maintenance current we will be able to assist you easier and fasterushahab88 wrote:Moreover currently our annual subscription is expired. is this the reason.
Re: Confguration Verfication
hi, below is the log result of the mentioned command "tail -f /usr/local/nagiosxi/var/cmdsubsys.log"
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: Confguration Verfication
This error at the bottom means you are missing lines from the /etc/sudoers file
run
and show output
run
Code: Select all
cat /etc/sudoers |grep NAGRe: Confguration Verfication
nothing comes up after running the command
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Confguration Verfication
Then you need to talk to the administrator that removed the sudo entriesushahab88 wrote:nothing comes up after running the command
These should be in there
Code: Select all
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_ssl_config.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/backup_xi.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *Re: Confguration Verfication
You mean mentioned output should come on the nagios when i run the command "cat /etc/sudoers |grep NAG" ?scottwilkerson wrote:Then you need to talk to the administrator that removed the sudo entriesushahab88 wrote:nothing comes up after running the command
These should be in thereCode: Select all
User_Alias NAGIOSXI=nagios User_Alias NAGIOSXIWEB=apache NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php * NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh * NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_ssl_config.sh * NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/backup_xi.sh * NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/html/includes/components/autodiscovery/scripts/autodiscover_new.php * NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/html/includes/components/profile/getprofile.sh NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Confguration Verfication
yes, an admin should add it using visudo.
If you are unfamiliar with changing sudoers entries please get a qualified admin to do this as it can really mess up the system.
Just as removing them has messed up Nagios XI.
If you are unfamiliar with changing sudoers entries please get a qualified admin to do this as it can really mess up the system.
Just as removing them has messed up Nagios XI.