'Apply Configuration Error' Nagios XI
'Apply Configuration Error' Nagios XI
Hi Everyone!
I am opening this case regarding an issue that I am having when trying to 'apply configuration' from the web UI.
Scenario Details:
HW: VMware VM
--8 GB RAM
--2 vCPU
OS: Centos 7
--Dedicated FileSystem for Nagios and all subcomponents
----------------------------------------
Services -> 8064
Hosts -> 2007
---------------------------------------
Error Pattern:
-- Since a few time ago every time I make any kind of change on Nagios XI 's configuration and then try to apply it from the web UI I got an error that it was impossible to apply configuration.
-- When seeing 'error' details, it says that it wasn't possible to apply configuration since an error on line XX on file /usr/local/nagios/hosts/TEMPLATE-WINDOWS.cfg
-- This file or the file's path does not exist on my system
-- HOWEVER, if apply the configuration from de command line, executing /usr/local/nagiosxi/scripts/reconfigure_nagios.sh - The configuration is applied without any errors.
-- Until now I could not understand why this is happening... I would appreciate any help that you can bring to me.
I've uploaded two screenshots.
Regards,
I am opening this case regarding an issue that I am having when trying to 'apply configuration' from the web UI.
Scenario Details:
HW: VMware VM
--8 GB RAM
--2 vCPU
OS: Centos 7
--Dedicated FileSystem for Nagios and all subcomponents
----------------------------------------
Services -> 8064
Hosts -> 2007
---------------------------------------
Error Pattern:
-- Since a few time ago every time I make any kind of change on Nagios XI 's configuration and then try to apply it from the web UI I got an error that it was impossible to apply configuration.
-- When seeing 'error' details, it says that it wasn't possible to apply configuration since an error on line XX on file /usr/local/nagios/hosts/TEMPLATE-WINDOWS.cfg
-- This file or the file's path does not exist on my system
-- HOWEVER, if apply the configuration from de command line, executing /usr/local/nagiosxi/scripts/reconfigure_nagios.sh - The configuration is applied without any errors.
-- Until now I could not understand why this is happening... I would appreciate any help that you can bring to me.
I've uploaded two screenshots.
Regards,
You do not have the required permissions to view the files attached to this post.
Re: 'Apply Configuration Error' Nagios XI
From the Home page, click Configure -> Core Config Manager, then on the side, look for 'Write Config Files' and click it. Now, click the following in this order so that we can re-write out your configurations. Delete, Write, and finally Verify.
After doing so, try applying configuration. Does it work successfully?
The other thing that comes to mind, is you may have multiple nagios processes running. If the above doesn't work, please post the full output of ps -aef for us to look at.
After doing so, try applying configuration. Does it work successfully?
The other thing that comes to mind, is you may have multiple nagios processes running. If the above doesn't work, please post the full output of ps -aef for us to look at.
Former Nagios Employee
Re: 'Apply Configuration Error' Nagios XI
What is the version of Nagios XI that you are currently running? Is this a new install of Nagios XI or an upgrade from an older version? Can you run "reconfigure_nagios.sh" as nagios user?
Start a running tail on the cmdsubsys.log:
apply configuration in the web UI, wait for a few seconds, copy/paste the output from the tail on the forum.
Exit the tail (ctrl+c), run the following command and show the output:
Code: Select all
su nagios
/usr/local/nagiosxi/scripts/reconfigure_nagios.shCode: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.logExit the tail (ctrl+c), run the following command and show the output:
Code: Select all
ll /usr/local/nagiosxi/scripts/nagiosql*Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: 'Apply Configuration Error' Nagios XI
rkennedy wrote:From the Home page, click Configure -> Core Config Manager, then on the side, look for 'Write Config Files' and click it. Now, click the following in this order so that we can re-write out your configurations. Delete, Write, and finally Verify.
After doing so, try applying configuration. Does it work successfully?
The other thing that comes to mind, is you may have multiple nagios processes running. If the above doesn't work, please post the full output of ps -aef for us to look at.
Hi Rkennedy - I tried the following procedure as you told me:
Delete, Write, and finally Verify - This OK - But when I apply configuration I have the same error. Again.
I upload some Screen Shots and the ouput that you asked to me:
Code: Select all
[root@SRC01RH7002 var]# ps -fea |grep nagios
nagios 2474 1 0 jul18 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 7163 1 0 jul18 ? 00:00:00 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
nagios 21976 23147 0 12:24 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.35.143 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 21978 21976 0 12:24 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.35.143
nagios 22046 23145 0 12:24 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.218 -U barcelona -P barce.tec -I --lockrequests --warning 20 --critical 30
nagios 22102 23145 0 12:24 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.121 -U barcelona -P barce.tec -I INSTANCIA1 --checkpoints --warning 20 --critical 30
nagios 22103 23148 0 12:24 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.121 -U barcelona -P barce.tec -I INSTANCIA1 --pagesplits --warning 20 --critical 30
nagios 22132 23148 0 12:24 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.121 -U barcelona -P barce.tec -I INSTANCIA1 --lockwait --warning 2000 --critical 3000
nagios 22137 23146 0 12:24 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.218 -U barcelona -P barce.tec -I --lazywrites --warning 20 --critical 30
nagios 22169 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.255.229 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 22171 22169 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 192.168.255.229
nagios 22201 22195 0 12:25 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
nagios 22203 22193 0 12:25 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios 22207 22194 0 12:25 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios 22208 22203 0 12:25 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios 22209 22196 0 12:25 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
nagios 22211 22207 0 12:25 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios 22213 22197 0 12:25 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios 22216 22201 0 12:25 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios 22217 22209 0 12:25 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios 22219 22213 0 12:25 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios 22280 23145 0 12:25 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.218 -U barcelona -P barce.tec -I --targetpages --warning 70000 --critical 90000
nagios 22499 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.70.143 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 22516 22499 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.70.143
nagios 22602 23147 0 12:25 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.218 -U barcelona -P barce.tec -I --stolenpages --warning 500 --critical 700
nagios 22613 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.106.209 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 22614 22613 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.106.209
nagios 22645 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.127.141 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 22646 22645 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.127.141
nagios 22742 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.111.147 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 22744 22742 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.111.147
nagios 22864 23147 0 12:25 ? 00:00:00 python /usr/local/nagios/libexec/check_mssql_server.py -H 10.4.4.218 -U barcelona -P barce.tec -I --lockwaits --warning 20 --critical 30
nagios 22886 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.69.209 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 22908 22886 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.69.209
nagios 22932 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.69.1 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 22933 22932 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.69.1
nagios 23069 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.123.209 -w 1000.0,20% -c 1200.0,60% -p 5
nagios 23070 23069 0 12:25 ? 00:00:00 /bin/ping -n -U -w 11 -c 5 10.4.123.209
nagios 23072 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.35.149 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23073 23072 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.35.149
nagios 23075 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.14.64 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23076 23075 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.14.64
nagios 23077 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.21.135 -w 200.0,20% -c 600.0,60% -p 5
nagios 23078 23077 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.21.135
nagios 23122 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.14.65 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23123 23122 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.14.65
nagios 23134 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.30.147 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23135 23134 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.30.147
nagios 23136 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.128.209 -w 200.0,20% -c 600.0,60% -p 5
nagios 23137 1 1 jul18 ? 00:24:52 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 23138 23136 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 192.168.128.209
nagios 23139 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.31.144 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23140 23139 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.31.144
nagios 23141 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.28.56 -w 200.0,20% -c 600.0,60% -p 5
nagios 23142 23141 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.28.56
nagios 23143 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.255.38 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23144 23143 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 192.168.255.38
nagios 23145 23137 0 jul18 ? 00:01:47 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 23146 23137 0 jul18 ? 00:01:45 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 23147 23137 0 jul18 ? 00:01:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 23148 23137 0 jul18 ? 00:01:50 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 23149 2474 0 jul18 ? 00:00:44 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 23150 23149 1 jul18 ? 00:20:28 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 23151 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.61.3 -w 200.0,20% -c 600.0,60% -p 5
nagios 23152 23151 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.61.3
nagios 23154 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.128.2 -w 200.0,20% -c 600.0,60% -p 5
nagios 23155 23154 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 192.168.128.2
nagios 23156 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.94.145 -w 200.0,20% -c 600.0,60% -p 5
nagios 23157 23156 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.94.145
nagios 23158 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.37.149 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23159 23158 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.37.149
nagios 23160 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.128.225 -w 1000.0,20% -c 1200.0,60% -p 5
nagios 23161 23160 0 12:25 ? 00:00:00 /bin/ping -n -U -w 11 -c 5 192.168.128.225
nagios 23162 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.21.133 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23163 23162 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.21.133
nagios 23165 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.37.146 -w 200.0,20% -c 600.0,60% -p 5
nagios 23166 23165 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.37.146
nagios 23167 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.44.7.194 -w 1000.0,20% -c 1200.0,60% -p 5
nagios 23168 23167 0 12:25 ? 00:00:00 /bin/ping -n -U -w 11 -c 5 10.44.7.194
nagios 23234 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.210.34 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23236 23234 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 192.168.210.34
nagios 23245 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.18.114 -w 200.0,20% -c 600.0,60% -p 5
nagios 23246 23245 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.18.114
nagios 23247 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.25.145 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23248 23247 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.25.145
nagios 23249 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.30.158 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23250 23137 0 jul18 ? 00:00:03 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 23251 23249 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.30.158
nagios 23252 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.10.146 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23253 23252 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.10.146
nagios 23263 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.128.213 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23264 23263 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 192.168.128.213
nagios 23269 22219 0 12:25 ? 00:00:00 sh -c /usr/bin/iostat -c 5 2 | tail --lines=2 | head --lines=1 | awk '{ print $1,$2,$3,$4,$5,$6 }'
nagios 23270 23269 0 12:25 ? 00:00:00 /usr/bin/iostat -c 5 2
nagios 23271 23269 0 12:25 ? 00:00:00 tail --lines=2
nagios 23272 23269 0 12:25 ? 00:00:00 head --lines=1
nagios 23273 23269 0 12:25 ? 00:00:00 awk { print $1,$2,$3,$4,$5,$6 }
nagios 23274 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.14.56 -w 200.0,20% -c 600.0,60% -p 5
nagios 23275 23274 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.14.56
nagios 23276 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.108.1 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23277 23276 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.108.1
nagios 23278 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.18.111 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23279 23278 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.18.111
nagios 23280 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.21.126 -w 200.0,20% -c 600.0,60% -p 5
nagios 23281 23280 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.21.126
nagios 23282 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.128.30 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23283 23282 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 192.168.128.30
nagios 23284 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.11.103 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23287 23284 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.11.103
nagios 23288 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.27.156 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23289 23288 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.27.156
nagios 23290 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.255.37 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23291 23290 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 192.168.255.37
nagios 23292 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.30.152 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23293 23292 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.30.152
nagios 23294 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.11.110 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23295 23294 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.11.110
nagios 23296 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.20.118 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23297 23296 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.20.118
nagios 23298 23146 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.25.148 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23299 23298 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.25.148
nagios 23303 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.19.52 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23306 23303 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.19.52
nagios 23308 23148 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.28.57 -w 3000.0,80% -c 5000.0,100% -p 5
nagios 23309 23308 0 12:25 ? 00:00:00 /bin/ping -n -U -w 30 -c 5 10.4.28.57
nagios 23315 23147 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 10.4.12.148 -w 200.0,20% -c 600.0,60% -p 5
nagios 23316 23315 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 10.4.12.148
nagios 23317 23145 0 12:25 ? 00:00:00 /usr/local/nagios/libexec/check_ping -H 192.168.32.138 -w 200.0,20% -c 600.0,60% -p 5
nagios 23318 23317 0 12:25 ? 00:00:00 /bin/ping -n -U -w 10 -c 5 192.168.32.138
root 23320 32595 0 12:25 pts/0 00:00:00 grep --color=auto nagios
You do not have the required permissions to view the files attached to this post.
Last edited by tmcdonald on Tue Jul 19, 2016 10:41 am, edited 1 time in total.
Reason: Please use [code][/code] tags around terminal output
Reason: Please use [code][/code] tags around terminal output
Re: 'Apply Configuration Error' Nagios XI
lmiltchev wrote:What is the version of Nagios XI that you are currently running? Is this a new install of Nagios XI or an upgrade from an older version? Can you run "reconfigure_nagios.sh" as nagios user?
Start a running tail on the cmdsubsys.log:Code: Select all
su nagios /usr/local/nagiosxi/scripts/reconfigure_nagios.shapply configuration in the web UI, wait for a few seconds, copy/paste the output from the tail on the forum.Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Exit the tail (ctrl+c), run the following command and show the output:Code: Select all
ll /usr/local/nagiosxi/scripts/nagiosql*
-------------------
Hi lmiltchev ! Thanks for your reply.
I have done what you asked, however I executed the script with root user not Nagios user. When I tried to do it with Nagios user the os asked me nagios's user password and I am not sure what passwd corresponds to Nagios's user.
Below you can see the output:
Code: Select all
[root@SRC01RH7002 var]# tailf cmdsubsys.log
PROCESSED 0 COMMANDS
.
PROCESSED 0 COMMANDS
.
PROCESSED 0 COMMANDS
[root@SRC01RH7002 var]# ll /usr/local/nagiosxi/scripts/nagiosql*
-rwxrwxr-x 1 nagios nagios 161 jul 19 12:36 /usr/local/nagiosxi/scripts/nagiosql.cookies
-rwxrwxr-x 1 nagios nagios 271666 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_defaults.sql
-rwxrwxr-x 1 nagios nagios 885 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_delete_contact.php
-rwxrwxr-x 1 nagios nagios 1927 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_delete_host.php
-rwxrwxr-x 1 nagios nagios 446 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_delete_object.sh
-rwxrwxr-x 1 nagios nagios 163173 may 8 20:53 /usr/local/nagiosxi/scripts/nagiosql.delete.service
-rwxrwxr-x 1 nagios nagios 2756 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_delete_service.php
-rwxrwxr-x 1 nagios nagios 886 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_delete_timeperiod.php
-rwxrwxr-x 1 nagios nagios 1272 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_exportall.php
-rwxrwxr-x 1 nagios nagios 15198 jul 19 12:36 /usr/local/nagiosxi/scripts/nagiosql.export.monitoring
-rwxrwxr-x 1 nagios nagios 1286 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_importall.php
-rwxrwxr-x 1 nagios nagios 662692 may 9 01:58 /usr/local/nagiosxi/scripts/nagiosql.import.monitoring
-rwxrwxr-x 1 nagios nagios 36669 jul 19 12:36 /usr/local/nagiosxi/scripts/nagiosql.login
-rwxrwxr-x 1 nagios nagios 1791 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_login.php
-rwxrwxr-x 1 nagios nagios 2248 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_snapshot.sh
-rwxrwxr-x 1 nagios nagios 200 feb 19 15:06 /usr/local/nagiosxi/scripts/nagiosql_trim_backups.shRegards,
Last edited by tmcdonald on Tue Jul 19, 2016 10:40 am, edited 1 time in total.
Reason: Please use [code][/code] tags around terminal output
Reason: Please use [code][/code] tags around terminal output
Re: 'Apply Configuration Error' Nagios XI
We don't give nagios user a password. Can you show us the exact error? Run the commands below, and show the output.
In addition to this, run the following commands, and show the output:
Also, post the "/etc/sudoers" file.
Code: Select all
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shCode: Select all
chage nagios -l
chage apache -lBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: 'Apply Configuration Error' Nagios XI
lmiltchev wrote:We don't give nagios user a password. Can you show us the exact error? Run the commands below, and show the output.In addition to this, run the following commands, and show the output:Code: Select all
su nagios cd /usr/local/nagiosxi/scripts ./reconfigure_nagios.shAlso, post the "/etc/sudoers" file.Code: Select all
chage nagios -l chage apache -l
Hi - Thanks for your reply again!
When I do:
Code: Select all
su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shRe: 'Apply Configuration Error' Nagios XI
Can you show us a screenshot? I just verified that the script will run fine as the nagios user.
Please post this information as well.lmiltchev wrote:We don't give nagios user a password. Can you show us the exact error? Run the commands below, and show the output.
In addition to this, run the following commands, and show the output:Also, post the "/etc/sudoers" file.Code: Select all
chage nagios -l chage apache -l
Former Nagios Employee
Re: 'Apply Configuration Error' Nagios XI
Hi - I am uploading the screenshots as you asked to me.
Regards,
Regards,
You do not have the required permissions to view the files attached to this post.
Re: 'Apply Configuration Error' Nagios XI
This is likely a sudoers issue, please post your /etc/sudoers and check to make sure you don't have a /etc/sudoers.d/nagiosxi file.
Do you use AD/LDAP auth to login to the XI server when connecting with SSH?
Do you use AD/LDAP auth to login to the XI server when connecting with SSH?