Page 3 of 6

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 12, 2013 10:28 am
by Frédéric GRANAT
Here it is :

Code: Select all

[root@nagiosxi init.d]# su nagios -c '/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php'
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
PROCESSING COMMAND ID 2733...
PROCESS COMMAND: CMD=16, DATA=a:4:{s:9:"host_name";s:20:"W2K8-BACKUP02.cg.ahp";s:12:"service_name";s:35:"Veaam Backup _BKUP_-Templates Check";s:3:"cmd";i:7;s:10:"start_time";i:1362129599;}
COMMAND DATA: a:4:{s:9:"host_name";s:20:"W2K8-BACKUP02.cg.ahp";s:12:"service_name";s:35:"Veaam Backup _BKUP_-Templates Check";s:3:"cmd";i:7;s:10:"start_time";i:1362129599;}
CMDARR:
Array
(
    [host_name] => W2K8-BACKUP02.cg.ahp
    [service_name] => Veaam Backup _BKUP_-Templates Check
    [cmd] => 7
    [start_time] => 1362129599
)
CORE CMD: SCHEDULE_SVC_CHECK;W2K8-BACKUP02.cg.ahp;Veaam Backup _BKUP_-Templates Check;1362129599
SUBMITTING A NAGIOSCORE COMMAND...

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 12, 2013 10:30 am
by lmiltchev
Run the following commands and show the output of them:

Code: Select all

ll /usr/local/nagios
ll /usr/local/nagiosxi
ll /usr/local/nagiosxi/var
ll /usr/local/nagiosxi/cron

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 12, 2013 10:33 am
by Frédéric GRANAT

Code: Select all

[root@nagiosxi init.d]# ll /usr/local/nagios
total 120
-rw-r--r--  1 root   root   87743 Oct 10 09:29 backup_nagios_config_201210100929.tar.gz
drwxrwxr-x  2 nagios nagios  4096 Feb 27 17:37 bin
drwxrwsr-x  8 apache nagios  4096 Mar 12 11:20 etc
drwxr-xr-x  2 nagios nagios  4096 Sep  1  2011 include
drwxrwxr-x  4 nagios nagios  4096 Dec 20 15:33 libexec
drwxrwxr-x  2 nagios nagios  4096 Feb 27 17:37 sbin
drwxrwxr-x 14 nagios nagios  4096 Feb 27 17:37 share
drwxrwxr-x  6 nagios nagios  4096 Mar 12 09:52 var

Code: Select all

[root@nagiosxi init.d]# ll /usr/local/nagiosxi
total 40
drwxr-xr-x  2 nagios nagios  4096 Mar 12 10:08 cron
drwxr-xr-x  3 nagios nagios  4096 Sep  8  2011 etc
drwxr-xr-x 18 nagios nagios  4096 Feb 27 17:37 html
drwxr-xr-x  3 nagios nagios  4096 Aug 29  2011 nom
drwxr-xr-x  2 nagios nagios  4096 Mar 12 11:46 scripts
drwsrwsr-x 10 nagios nagios 12288 Feb 13 15:08 tmp
drwxr-xr-x  2 nagios nagios  4096 Oct 22 11:53 tools
drwxr-xr-x  4 nagios nagios  4096 Mar 11 17:13 var

Code: Select all

[root@nagiosxi init.d]# ll /usr/local/nagiosxi/var
total 488
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 cleaner.log
-rw-r--r-- 1 nagios nagios   303 Feb 24 04:02 cleaner.log.1
-rw-r--r-- 1 nagios nagios   303 Feb 17 04:02 cleaner.log.2
-rw-r--r-- 1 nagios nagios   303 Feb 10 04:02 cleaner.log.3
-rw-r--r-- 1 nagios nagios   303 Feb  3 04:02 cleaner.log.4
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 cmdsubsys.log
-rw-r--r-- 1 nagios nagios    82 Feb 24 04:03 cmdsubsys.log.1
-rw-r--r-- 1 nagios nagios    82 Feb 17 04:03 cmdsubsys.log.2
-rw-r--r-- 1 nagios nagios    81 Feb 10 04:03 cmdsubsys.log.3
-rw-r--r-- 1 nagios nagios    82 Feb  3 04:03 cmdsubsys.log.4
drwsrwsr-x 2 apache nagios  4096 Oct 22 16:00 components
-rw-r--r-- 1 nagios nagios     7 Mar  1 05:54 corelog.data
-rw-r--r-- 1 nagios nagios     0 Mar  1 05:54 corelog.diff
-rwxrwxr-x 1 nagios nagios     6 Mar 12 10:54 corelog.newobjects
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:30 dbmaint.log
-rw-r--r-- 1 nagios nagios  2677 Feb 24 04:00 dbmaint.log.1
-rw-r--r-- 1 nagios nagios  2677 Feb 17 04:00 dbmaint.log.2
-rw-r--r-- 1 nagios nagios  2677 Feb 10 04:00 dbmaint.log.3
-rw-r--r-- 1 nagios nagios  2677 Feb  3 04:00 dbmaint.log.4
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:30 deadpool.log
-rw-r--r-- 1 nagios nagios    21 Feb 24 04:00 deadpool.log.1
-rw-r--r-- 1 nagios nagios    21 Feb 17 04:00 deadpool.log.2
-rw-r--r-- 1 nagios nagios    21 Feb 10 04:00 deadpool.log.3
-rw-r--r-- 1 nagios nagios    21 Feb  3 04:00 deadpool.log.4
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 eventman.log
-rw-r--r-- 1 nagios nagios  9249 Feb 24 04:03 eventman.log.1
-rw-r--r-- 1 nagios nagios 11787 Feb 17 04:03 eventman.log.2
-rw-r--r-- 1 nagios nagios  8655 Feb 10 04:03 eventman.log.3
-rw-r--r-- 1 nagios nagios    40 Feb  3 04:03 eventman.log.4
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 feedproc.log
-rw-r--r-- 1 nagios nagios    25 Feb 24 04:03 feedproc.log.1
-rw-r--r-- 1 nagios nagios    25 Feb 17 04:03 feedproc.log.2
-rw-r--r-- 1 nagios nagios    25 Feb 10 04:03 feedproc.log.3
-rw-r--r-- 1 nagios nagios    25 Feb  5 04:03 feedproc.log.4
-rw-r--r-- 1 nagios nagios     0 Jan 13 04:02 load_url.log
-rw-r--r-- 1 nagios nagios   820 Jan  8 10:11 load_url.log.1
-rw-r--r-- 1 nagios nagios   820 Jan  7 15:23 load_url.log.2
-rw-r--r-- 1 nagios nagios   820 Dec  8 09:36 load_url.log.3
-rw-r--r-- 1 nagios nagios   851 Dec  4 06:17 load_url.log.4
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 nom.log
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 perfdataproc.log
-rw-r--r-- 1 nagios nagios   567 Feb 24 04:03 perfdataproc.log.1
-rw-r--r-- 1 nagios nagios   567 Feb 17 04:03 perfdataproc.log.2
-rw-r--r-- 1 nagios nagios   567 Feb 10 04:03 perfdataproc.log.3
-rw-r--r-- 1 nagios nagios   567 Feb  3 04:03 perfdataproc.log.4
-rw-r--r-- 1 nagios nagios 46083 Mar 12 16:01 recurringdowntime.log
-rw-r--r-- 1 nagios nagios 46158 Mar 10 04:01 recurringdowntime.log.1
-rw-r--r-- 1 nagios nagios 46157 Mar  3 04:01 recurringdowntime.log.2
-rw-r--r-- 1 nagios nagios 46992 Feb 24 04:01 recurringdowntime.log.3
-rw-r--r-- 1 nagios nagios 46992 Feb 17 04:01 recurringdowntime.log.4
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 reportengine.log
-rw-r--r-- 1 nagios nagios    28 Oct 21 04:03 reportengine.log.1
-rw-r--r-- 1 nagios nagios    28 Oct 14 04:05 reportengine.log.2
-rw-r--r-- 1 nagios nagios    28 Oct  7 04:07 reportengine.log.3
-rw-r--r-- 1 nagios nagios    28 Sep 30 04:08 reportengine.log.4
drwxr-xr-x 2 nagios nagios  4096 Mar 12 09:52 subsys
-rw-r--r-- 1 nagios nagios     0 Mar 12 16:32 sysstat.log
-rw-r--r-- 1 nagios nagios 14351 Feb 24 04:03 sysstat.log.1
-rw-r--r-- 1 nagios nagios 14336 Feb 17 04:03 sysstat.log.2
-rw-r--r-- 1 nagios nagios 14308 Feb 10 04:03 sysstat.log.3
-rw-r--r-- 1 nagios nagios 14367 Feb  3 04:03 sysstat.log.4
-rwxr-xr-x 1 nagios nagios   202 Feb 27 17:37 xiversion

Code: Select all

[root@nagiosxi init.d]# ll /usr/local/nagiosxi/cron
total 132
-rwxr-xr-x 1 nagios nagios  3092 Feb 27 17:37 cleaner.php
-rwxr-xr-x 1 nagios nagios 19686 Feb 27 17:37 cmdsubsys.php
-rwxr-xr-x 1 nagios nagios   216 Feb 27 17:37 cookie.txt
-rwxr-xr-x 1 nagios nagios 11417 Feb 27 17:37 dbmaint.php
-rw-r--r-- 1 nagios nagios 24668 Feb 27 17:37 deadpool.php
-rwxr-xr-x 1 nagios nagios  4275 Feb 27 17:37 eventman.php
-rwxr-xr-x 1 nagios nagios  1875 Feb 27 17:37 feedproc.php
-rwxr-xr-x 1 nagios nagios  2072 Feb 27 17:37 nom.php
-rwxr-xr-x 1 nagios nagios 11393 Feb 27 17:37 perfdataproc.php
-rwxr-xr-x 1 nagios nagios 17747 Feb 27 17:37 recurringdowntime.pl
-rwxr-xr-x 1 nagios nagios  1523 Feb 27 17:37 reportengine.php
-rwxr-xr-x 1 nagios nagios  9679 Feb 27 17:37 sysstat.php

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 12, 2013 11:00 am
by mguthrie
Would you be interested in a remote session tomorrow to try and get this resolved? if so, we can follow up on scheduling details by PM or email.

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 12, 2013 11:02 am
by Frédéric GRANAT
Of course yes (but only at 17:00 french time).

Rgds,

Frederic

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 12, 2013 11:11 am
by mguthrie
Ok, I'll send you an email tomorrow at 17:00 UTC +01:00 with a link to the remote session.

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Fri Mar 15, 2013 4:48 am
by Frédéric GRANAT
Hi,
This morning, I created two hosts and 5 services/hosts.
After having configuration applied, I noticed that the new hosts and services are not visible in hosts/services details.
Furthermore, it seems that no more hosts/services are checked since yesterday 6 pm french time (the end time of the Nagiosxi support remote session).

I restarted the stop/kill all cron/start crond but nothing has changed.

Everything is green in "XI System Component Status"

Rgds,

Frederic

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Fri Mar 15, 2013 1:37 pm
by mguthrie
Lets try the following and see if the issue resolves itself.

Code: Select all

service nagios stop
killall -9 nagios
service ndo2db restart
service nagios start
Did you create this new objects using a wizard, or the CCM?

If you used the CCM, can you verify that these configs are labeled "Active"?

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Mon Mar 18, 2013 3:12 am
by Frédéric GRANAT
Hi,
I applied your commands and now the checks work.
For information : I added new objects by creating new cfg files, importing it and apply configuration.
I think the configuration have been applied but the problem came from the checks, now it's ok.

Now I've got 2 other problems :
The beginning of the two problems is Friday, at the end of your intervention (same beginning than the problem on checks).

1) 83 Services in unknwown state, same type of service : CPU usage.
That pollutes my checks.

Status information :

UNKNOWN - Permission denied when trying to store the state data. Sometimes this happens if you have been testing the plugin from the command line as a different user to the Nagio process user. You will need to change the permissions on the file or remove

2) 1 service in critical state, type = Bandwidth

Status information : Return code of 13 is out of bounds

Thanks for your help

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Mon Mar 18, 2013 9:42 am
by scottwilkerson
Can you go to CCM -> Services -> Search "CPU usage"

If you look at the items displayed, do any of them have a Hostgroup applied under "Manage Hostgroups" ?