Not able to add New Nodes in Nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Not able to add New Nodes in Nagios xi

Post by sarfarosh »

Hello Geeks
Every time i try to add Nodes using Switches & router Wizards it shows the port but when i click on next it gives me the error
Configuration submitted for processing...
Waiting for configuration verification........................................
Configurations failed to write to file.


This is the latest snapshot of the nagios xi server

Code: Select all

Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.40.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.54.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.51.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.23.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.71.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.18.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.39.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.49.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.32.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.76.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.43.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.68.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.13.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.69.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.90.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.22.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.36.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.73.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.14.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.20.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.8.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.26.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.15.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.72.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.11.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.50.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.200.250.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.30.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.28.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.34.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.25.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.75.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.29.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.21.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.9.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.10.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.16.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.24.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.46.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.41.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.53.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.31.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.74.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.44.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.42.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.47.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.45.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.19.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.33.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.17.241.12.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.40.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.54.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.51.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.23.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.71.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.18.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.39.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.49.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.32.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.76.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.43.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.68.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.69.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.90.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.22.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.36.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.73.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.14.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.20.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.8.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.26.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.15.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.72.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.11.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.50.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.16.200.250.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.30.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.28.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.34.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.25.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.75.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.29.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.21.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.9.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.10.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.16.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.24.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.46.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.41.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.53.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.31.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.74.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.44.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.42.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.47.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.45.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.19.cfg'...
Processing object config file '/usr/local/nagios/etc/services/172.17.241.33.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
	Checked 2895 services.
Checking hosts...
Warning: Host '172.17.241.13' has no default contacts or contactgroups defined!
	Checked 52 hosts.
Checking host groups...
	Checked 4 host groups.
Checking service groups...
	Checked 0 service groups.
Checking contacts...
	Checked 3 contacts.
Checking contact groups...
	Checked 3 contact groups.
Checking service escalations...
	Checked 0 service escalations.
Checking service dependencies...
	Checked 0 service dependencies.
Checking host escalations...
	Checked 0 host escalations.
Checking host dependencies...
	Checked 0 host dependencies.
Checking commands...
	Checked 109 commands.
Checking time periods...
	Checked 10 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 1
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
Last edited by mguthrie on Mon Jan 07, 2013 10:56 am, edited 1 time in total.
Reason: changed quote tags to code tags
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Not able to add New Nodes in Nagios xi

Post by sarfarosh »

here is mine output of ./reconfigure_nagios.sh

Code: Select all

[root@localhost scripts]# ./reconfigure_nagios.sh &> reconfig.txt
[root@localhost scripts]# vi reconfig.txt
--2013-01-05 18:28:47--  h**p:// localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'

     0K .....                                                 100%  360M=0s

2013-01-05 18:28:47 (360 MB/s) - `nagiosql.login' saved [5286/5286]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: h**p:// localhost/nagiosql/admin/import.php
Array
(
)
RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http : // localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2013-01-05 18:28:48--  http : // localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: h**p : // localhost/nagiosql/admin.php [following]
--2013-01-05 18:28:48--  h**p:// localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'

     0K .....                                                 100%  187M=0s

2013-01-05 18:28:48 (187 MB/s) - `nagiosql.login' saved [5286/5286]

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http : //localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2013-01-05 18:28:48--  http :  // localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4788 (4.7K) [text/html]
Saving to: `nagiosql.export.monitoring'

     0K ....                                                  100%  326M=0s

2013-01-05 18:29:24 (326 MB/s) - `nagiosql.export.monitoring' saved [4788/4788]

NAGIOSQL WRITE CONFIGS FAILED!\n
Last edited by mguthrie on Mon Jan 07, 2013 10:56 am, edited 1 time in total.
Reason: changed quote tags to code tags
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Not able to add New Nodes in Nagios xi

Post by sarfarosh »

tail-f cmdsubsys.log shows

Code: Select all

 1 .................................................PROCESSING COMMAND ID 142...
      2 PROCESS COMMAND: CMD=17, DATA=
      3 APPLYING NAGIOSCORE CONFIG...
      4 CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
      5 URL: http://localhost/nagiosql/index.php
      6 CMDLINE
      7 --2013-01-05 18:35:51--  http : //l ocalhost/nagiosql/index.php
      8 Resolving localhost... 127.0.0.1
      9 Connecting to localhost|127.0.0.1|:80... connected.
     10 HTTP request sent, awaiting response... 302 Found
     11 Location: http://localhost/nagiosql/admin.php [following]
     12 --2013-01-05 18:35:51--  http : // localhost/nagiosql/admin.php
     13 Connecting to localhost|127.0.0.1|:80... connected.
     14 HTTP request sent, awaiting response... 200 OK
     15 Length: 5286 (5.2K) [text/html]
     16 Saving to: `nagiosql.login'
     17
     18      0K .....                                                 100%  336M=0s
     19
     20 2013-01-05 18:35:51 (336 MB/s) - `nagiosql.login' saved [5286/5286]
     21
     22 /usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http : // localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagi 

       osxi&tfPassword=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
     23 IMPORTING CONFIG FILES...URL: http : // localhost/nagiosql/admin/import.php
     24 Array
     25 (
     26     [0] => 172.17.241.58.cfg
     27     [1] => q6po5uej.tmp.cfg
     28 )
     29 IMPORTING /usr/local/nagios/etc/import/172.17.241.58.cfg
     30 CMDLINE:
     31 /usr/bin/wget --load-cookies=nagiosql.cookies http : // localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/na 

       gios/etc/import/172.17.241.58.cfg' -O nagiosql.import.monitoring
     32 --2013-01-05 18:35:51--  http : // localhost/nagiosql/admin/import.php
     33 Resolving localhost... 127.0.0.1
     34 Connecting to localhost|127.0.0.1|:80... connected.
     35 HTTP request sent, awaiting response... 200 OK
     36 Length: unspecified [text/html]
     37 Saving to: `nagiosql.import.monitoring'
     38
     39      0K .......... .......... .......... .......... .......... 90.6M
     40     50K .......... .......... .......... .......... .......... 89.8M
     41    100K .......... .......... .......... .......... ..........  128M
     42    150K .......... .......... .......... .......... ..........  120M
     43    200K .......... .......... .......... .......... ..........  123M
     44    250K .......... .......                                     6.25M=0.005s
     45
     46 2013-01-05 18:35:52 (51.5 MB/s) - `nagiosql.import.monitoring' saved [274420]
     47
     48 IMPORTING /usr/local/nagios/etc/import/q6po5uej.tmp.cfg
     49 CMDLINE:
  49 CMDLINE:
     50 /usr/bin/wget --load-cookies=nagiosql.cookies http : // localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/na 

       gios/etc/import/q6po5uej.tmp.cfg' -O nagiosql.import.monitoring
     51 --2013-01-05 18:35:52--  http : // localhost/nagiosql/admin/import.php
     52 Resolving localhost... 127.0.0.1
     53 Connecting to localhost|127.0.0.1|:80... connected.
     54 HTTP request sent, awaiting response... 200 OK
     55 Length: unspecified [text/html]
     56 Saving to: `nagiosql.import.monitoring'
     57
     58      0K .......... .......... .......... .......... .......... 85.5M
     59     50K .......... .......... .......... .......... ..........  100M
     60    100K .......... .......... .......... .......... ..........  109M
     61    150K .......... .......... .......... .......... ..........  125M
     62    200K .......... .......... .......... .......... ..........  126M
     63    250K .......... .....                                       6.07M=0.005s
     64
     65 2013-01-05 18:35:52 (54.7 MB/s) - `nagiosql.import.monitoring' saved [271621]
     66
     67 RESETTING PERMS
     68 SETUID ROOT OK
     69 URL: http : // localhost/nagiosql/index.php
     70 CMDLINE
     71 --2013-01-05 18:35:52--  http : // localhost/nagiosql/index.php
     72 Resolving localhost... 127.0.0.1
     73 Connecting to localhost|127.0.0.1|:80... connected.
     74 HTTP request sent, awaiting response... 302 Found
     75 Location: http : //localhost/nagiosql/admin.php [following]
     76 --2013-01-05 18:35:53--  http : // localhost/nagiosql/admin.php
     77 Connecting to localhost|127.0.0.1|:80... connected.
     78 HTTP request sent, awaiting response... 200 OK
     79 Length: 5286 (5.2K) [text/html]
     80 Saving to: `nagiosql.login'
     81
     82      0K .....                                                 100%  360M=0s
     83
     84 2013-01-05 18:35:53 (360 MB/s) - `nagiosql.login' saved [5286/5286]
     85
     86 /usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http :  // localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagi 

       osxi&tfPassword=n@gweb' -O nagiosql.loginLOGIN SUCCESSFUL!
     87 URL: http://localhost/nagiosql/admin/verify.php
     88 CMDLINE:
     89 /usr/bin/wget --load-cookies=nagiosql.cookies http : // localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monit 

       oring
     90 --2013-01-05 18:35:53--  http : // localhost/nagiosql/admin/verify.php
     91 Resolving localhost... 127.0.0.1
     92 Connecting to localhost|127.0.0.1|:80... connected.
     93 HTTP request sent, awaiting response... tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
@    94                                                                                                                                                                           

 @                                                                                               

............................^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@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^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^        

@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@        

^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^        

@

    95 Length: 4788 (4.7K) [text/html]
     96 Saving to: `nagiosql.export.monitoring'
     97
     98      0K ....                                                  100%  285M=0s
     99
    100 2013-01-05 18:36:28 (285 MB/s) - `nagiosql.export.monitoring' saved [4788/4788]
    101
    102 NAGIOSQL WRITE CONFIGS FAILED!\n
    103 OUTPUT=NAGIOSQL WRITE CONFIGS FAILED!\n
    104 RETURNCODE=5
    105
    106 PROCESSED 1 COMMANDS
    107 tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
    108 .^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
    109 PROCESSED 0 COMMANDS
~
~
                                                                   
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Not able to add New Nodes in Nagios xi

Post by mguthrie »

There are a couple of possible reasons for this.

- Check your apache log and make sure you're not hitting either the PHP timeout or memory limit. You can do a running tail on the log while you Apply Configuration with the following command:

Code: Select all

tail -f /var/log/httpd/error_log
- Can you post the output from:

Code: Select all

ll /usr/local/nagiosxi/scripts
If there's a tmp file in there with session or cookie information that's owned by root, this issue can also occur.
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Not able to add New Nodes in Nagios xi

Post by sarfarosh »

thanks for the response
here is mine output of
ll /usr/local/nagiosxi/scripts
You have new mail in /var/spool/mail/root
[root@localhost nagiosxi]# c
You have new mail in /var/spool/mail/root
[root@localhost nagiosxi]# ll /usr/local/nagiosxi/scripts/
total 2168
-rwxr-xr-x 1 nagios nagios 2764 Dec 14 06:06 backup_xi.sh
-rw-r--r-- 1 root root 10033 Jan 5 18:37 cmd.txt
-rwxr-xr-x 1 nagios nagios 649 Dec 14 06:06 export_nagiosql.sh
-rwxr-xr-x 1 nagios nagios 821 Dec 14 06:06 handle_nagioscore_event.php
-rwxr-xr-x 1 nagios nagios 829 Dec 14 06:06 handle_nagioscore_notification.php
-rwxr-xr-x 1 nagios nagios 429 Dec 14 06:06 import_nagiosql.sh
-rwxr-xr-x 1 nagios nagios 149 Dec 14 06:06 kill_rrdtool.sh
-rw-r--r-- 1 nagios users 153 Jan 7 19:42 nagiosql.cookies
-rw-r--r-- 1 nagios nagios 272372 Dec 14 06:06 nagiosql_defaults.sql
-rwxr-xr-x 1 nagios nagios 970 Dec 14 06:06 nagiosql_delete_contact.php
-rwxr-xr-x 1 nagios nagios 2010 Dec 14 06:06 nagiosql_delete_host.php
-rwxr-xr-x 1 nagios nagios 505 Dec 14 06:06 nagiosql_delete_object.sh
-rwxr-xr-x 1 nagios nagios 3118 Dec 14 06:06 nagiosql_delete_service.php
-rw-r--r-- 1 nagios users 16019 Jan 5 06:33 nagiosql.delete.timeperiod
-rwxr-xr-x 1 nagios nagios 993 Dec 14 06:06 nagiosql_delete_timeperiod.php
-rw-r--r-- 1 nagios users 7400 Jan 4 12:02 nagiosql.export.additional
-rwxr-xr-x 1 nagios nagios 1637 Dec 14 06:06 nagiosql_exportall.php
-rw-r--r-- 1 nagios users 4788 Jan 7 19:42 nagiosql.export.monitoring
-rwxr-xr-x 1 nagios nagios 1323 Dec 14 06:06 nagiosql_importall.php
-rw-r--r-- 1 nagios users 1710858 Jan 7 19:42 nagiosql.import.monitoring
-rw-r--r-- 1 nagios users 5286 Jan 7 19:42 nagiosql.login
-rwxr-xr-x 1 nagios nagios 1847 Dec 14 06:06 nagiosql_login.php
-rwxr-xr-x 1 nagios nagios 2108 Dec 14 06:06 nagiosql_snapshot.sh
-rwxr-xr-x 1 nagios nagios 258 Dec 14 06:06 nagiosql_trim_backups.sh
-rwxr-xr-x 1 nagios nagios 515 Dec 14 06:06 nom_create_nagioscore_checkpoin _cond.sh
-rwxr-xr-x 1 nagios nagios 826 Dec 14 06:06 nom_create_nagioscore_checkpoint.sh
-rwxr-xr-x 1 nagios nagios 632 Dec 14 06:06 nom_create_nagioscore_errorpoint.sh
-rwxr-xr-x 1 nagios nagios 784 Dec 14 06:06 nom_restore_nagioscore_checkpoint.sh
-rwxr-xr-x 1 nagios nagios 819 Dec 14 06:06 nom_restore_nagioscore_checkpoint_specific.sh
-rwxr-xr-x 1 nagios nagios 2972 Dec 14 06:06 nom_trim_nagioscore_checkpoints.sh
-rwxr-xr-x 1 nagios nagios 4410 Dec 14 06:06 parse_core_eventlog.php
-rwxr-xr-x 1 nagios nagios 6074 Dec 14 06:06 patch_ndoutils.php
-rw-r--r-- 1 root root 2606 Jan 5 18:29 reconfig.txt
-rwxr-xr-x 1 nagios nagios 597 Dec 14 06:06 reconfigure_nagios.sh
-rw-r--r-- 1 root root 2606 Jan 5 19:56 reconfigure.txt
-rwxr-xr-x 1 nagios nagios 1037 Dec 14 06:06 repairmysql.sh
-rwsr-xr-x 1 root root 7092 Dec 14 06:06 reset_config_perms
-rw-r--r-- 1 nagios nagios 280 Dec 14 06:06 reset_config_perms.c
-rwsr-xr-x 1 root root 807 Dec 14 06:06 reset_config_perms.sh
-rwxr-xr-x 1 nagios nagios 1155 Dec 14 06:06 reset_nagiosadmin_password.php
-rwxr-xr-x 1 nagios nagios 964 Dec 14 06:06 restart_nagios_with_export.sh
-rwxr-xr-x 1 nagios nagios 765 Dec 14 06:06 restore_defaults.sh
-rwxr-xr-x 1 nagios nagios 5095 Dec 14 06:06 restore_xi.sh
-rwxr-xr-x 1 nagios nagios 1826 Dec 14 06:06 send_to_auditlog.php
-rw-r--r-- 1 nagios nagios 2379 Dec 14 06:06 uninstall_xi.sh
[root@localhost nagiosxi]#
have tried clearing cookies & cache also
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Not able to add New Nodes in Nagios xi

Post by sarfarosh »

and here is mine error log of Httpd
[root@localhost nagiosxi]# tail -f /var/log/httpd/error_log
[Mon Jan 07 19:47:12 2013] [error] [client 127.0.0.1] PHP Warning: file_put_contents(/usr/local/agiosxi/etc/components/ccm_config.inc.php) [<a href='function.file-put-contents'>function.file-pu-contents</a>]: failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/comonents/ccm/ccm.inc.php on line 126
[Mon Jan 07 19:47:12 2013] [error] [client 49.248.31.222] PHP Warning: simplexml_load_string() [a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 1: parsr error : Start tag expected, '<' not found in /usr/local/nagiosxi/html/includes/utils-backendinc.php on line 27, referer: http : // 123.176.37.93/nagiosxi/config/monitoringwizard.php
[Mon Jan 07 19:47:12 2013] [error] [client 49.248.31.222] PHP Warning: simplexml_load_string() [a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: \tSQL: \tSQL Error [agiosxi] :</b> FATAL: terminating connection due to administ in /usr/local/nagiosxi/html/icludes/utils-backend.inc.php on line 27, referer: http://123.176.37.93/nagiosxi/config/mo ... gizard.php
[Mon Jan 07 19:47:12 2013] [error] [client 49.248.31.222] PHP Warning: simplexml_load_string() [a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: \t^ in /usr/local/naiosxi/html/includes/utils-backend.inc.php on line 27, referer: http : // 123.176.37.93/nagiosxi/confg/monitoringwizard.php
[Mon Jan 07 19:47:12 2013] [error] [client 49.248.31.222] PHP Warning: file_put_contents(/usr/loal/nagiosxi/etc/components/ccm_config.inc.php) [<a href='function.file-put-contents'>function.fil-put-contents</a>]: failed to open stream: Permission denied in /usr/local/nagiosxi/html/includescomponents/ccm/ccm.inc.php on line 126, referer: http://123.176.37.93/nagiosxi/config/mo ... gwzard.php
[Mon Jan 07 19:47:12 2013] [error] [client 127.0.0.1] PHP Warning: file_put_contents(/usr/local/agiosxi/etc/components/ccm_config.inc.php) [<a href='function.file-put-contents'>function.file-pu-contents</a>]: failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/comonents/ccm/ccm.inc.php on line 126
[Mon Jan 07 19:47:13 2013] [error] [client 49.248.31.222] PHP Warning: simplexml_load_string() [a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 1: parsr error : Start tag expected, '<' not found in /usr/local/nagiosxi/html/includes/utils-backendinc.php on line 27, referer: http : // 123.176.37.93/nagiosxi/config/monitoringwizard.php
[Mon Jan 07 19:47:13 2013] [error] [client 49.248.31.222] PHP Warning: simplexml_load_string() [a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: \tSQL: \tSQL Error [agiosxi] :</b> FATAL: terminating connection due to administ in /usr/local/nagiosxi/html/icludes/utils-backend.inc.php on line 27, referer: http : // 123.176.37.93/nagiosxi/config/monitoringizard.php
[Mon Jan 07 19:47:13 2013] [error] [client 49.248.31.222] PHP Warning: simplexml_load_string() [a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: \t^ in /usr/local/naiosxi/html/includes/utils-backend.inc.php on line 27, referer: http : // 123.176.37.93/nagiosxi/confg/monitoringwizard.php
[Mon Jan 07 19:47:13 2013] [error] [client 49.248.31.222] PHP Warning: file_put_contents(/usr/loal/nagiosxi/etc/components/ccm_config.inc.php) [<a href='function.file-put-contents'>function.fil-put-contents</a>]: failed to open stream: Permission denied in /usr/local/nagiosxi/html/includescomponents/ccm/ccm.inc.php on line 126, referer: http : // 123.176.37.93/nagiosxi/config/monitoringwzard.php
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Not able to add New Nodes in Nagios xi

Post by abrist »

It seems you have some permission problems . . .

Run these commands and post the output:

Code: Select all

ls -l /usr/local/nagiosxi/html/
chage apache -l
chage nagios -l
sarfarosh wrote:and here is mine error log of Httpd
[root@localhost nagiosxi]# tail -f /var/log/httpd/error_log
[Mon Jan 07 19:47:12 2013] [error] [client 127.0.0.1] PHP Warning: file_put_contents(/usr/local/agiosxi/etc/components/ccm_config.inc.php) [<a href='function.file-put-contents'>function.file-pu-contents</a>]: failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/comonents/ccm/ccm.inc.php on line 126

[Mon Jan 07 19:47:13 2013] [error] [client 49.248.31.222] PHP Warning: simplexml_load_string() [a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: \t^ in /usr/local/naiosxi/html/includes/utils-backend.inc.php on line 27, referer: http : // 123.176.37.93/nagiosxi/confg/monitoringwizard.php
Are these exact copies of actual log file outputs? The underlined items are very odd, though explainable if you copied the log files by hand. . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Not able to add New Nodes in Nagios xi

Post by sarfarosh »

Hello abrist
here is mine output of
ls -l /usr/local/nagiosxi/html/
[root@localhost tmp]# ll /usr/local/nagiosxi/html/
total 228
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 about
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 account
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 addons
drwxr-xr-x 2 nagios nagios 4096 Jan 5 19:14 admin
-rwxr-xr-x 1 nagios nagios 19681 Dec 14 06:06 ajaxhelper.php
-rwxr-xr-x 1 nagios nagios 1533 Dec 14 06:06 ajaxproxy.php
drwxr-xr-x 3 nagios nagios 4096 Dec 14 06:06 backend
drwxr-xr-x 3 nagios nagios 4096 Jan 8 00:07 config
-rwxr-xr-x 1 nagios nagios 7890 Dec 14 06:06 config.inc.php
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 dashboards
drwxr-xr-x 4 nagios nagios 4096 Dec 14 06:06 db
drwxr-xr-x 3 nagios nagios 4096 Dec 14 06:06 downloads
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 help
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 images
drwxr-xr-x 11 nagios nagios 4096 Jan 7 23:56 includes
-rwxr-xr-x 1 nagios nagios 997 Dec 14 06:06 index.php
-rwxr-xr-x 1 nagios nagios 6785 Dec 14 06:06 install.php
-rwxr-xr-x 1 nagios nagios 83671 Dec 14 06:06 login.php
-rw-r--r-- 1 nagios nagios 2212 Dec 14 06:06 loginsplash.inc.php
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 perfgraphs
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 reports
-rw-r--r-- 1 nagios nagios 15219 Dec 14 06:06 rr.php
-rwxr-xr-x 1 nagios nagios 6332 Dec 14 06:06 suggest.php
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 tools
-rwxr-xr-x 1 nagios nagios 3490 Dec 14 06:06 upgrade.php
drwxr-xr-x 2 nagios nagios 4096 Dec 14 06:06 views
[root@localhost tmp]#
chage apache -l
[root@localhost tmp]# chage apache -l
Last password change : Dec 11, 2012
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@localhost tmp]#
chage nagios -l
[root@localhost tmp]#
[root@localhost tmp]# chage nagios -l
Last password change : Dec 14, 2012
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@localhost tmp]#
the underlined thing is just a type error now the error log of apache say

[root@localhost tmp]# tail -f /var/log/httpd/error_log
[Tue Jan 08 12:19:51 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 12:22:27 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/nagiosql/functions/config_class.php on line 1198
[Tue Jan 08 12:22:28 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 12:24:47 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/nagiosql/functions/config_class.php on line 1160
[Tue Jan 08 12:24:47 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 12:26:38 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/nagiosql/functions/config_class.php on line 1160
[Tue Jan 08 12:26:39 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 12:29:28 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /usr/share/pear/HTML/Template/IT.php on line 765
[Tue Jan 08 12:29:29 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
sarfarosh
Posts: 211
Joined: Fri Oct 05, 2012 3:56 am

Re: Not able to add New Nodes in Nagios xi

Post by sarfarosh »

now mine Apache error log is howing

Code: Select all

You have new mail in /var/spool/mail/root
[root@localhost tmp]# tail -f /var/log/httpd/error_log
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 15:24:41 2013] [error] [client 127.0.0.1] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/nagiosql/admin/verify.php on line 168
[Tue Jan 08 15:24:42 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 15:26:09 2013] [error] [client 127.0.0.1] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/nagiosql/functions/mysql_class.php on line 181
[Tue Jan 08 15:26:10 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 15:31:53 2013] [error] [client 127.0.0.1] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/nagiosql/functions/mysql_class.php on line 181
[Tue Jan 08 15:31:53 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)
ERROR: "WorkDir" not specified in mrtg config file
ERROR: "WorkDir" not specified in mrtg config file
[Tue Jan 08 15:53:02 2013] [error] [client 127.0.0.1] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/nagiosql/functions/mysql_class.php on line 112
[Tue Jan 08 15:53:03 2013] [error] [client 49.248.31.222] request failed: URI too long (longer than 8190)

You have new mail in /var/spool/mail/root
[root@localhost tmp]#
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Not able to add New Nodes in Nagios xi

Post by mguthrie »

Take a look at this wiki and update your php.ini file with increased memory limits and a longer timeout.
http://support.nagios.com/wiki/index.ph ... _Completes