Capacity Planning

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Capacity Planning

Post by abrist »

Check the npcd and perfdata logs for new errors.
The json error is due to the existence of NaNs due to to the lack of perfdata in the rrds.
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.
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Re: Capacity Planning

Post by mkosmoski »

tmcdonald wrote:
mkosmoski wrote:How about my issue? :)
Can you run the same commands we asked of jkinning and post the results here?
My performance graphs are being produced as far as I can tell.

Code: Select all

[root@htmon01 ~]# ll -d /usr/local/nagios/share/perfdata/
ll /usr/local/nagios/share/perfdata/arghoudc2
drwxrwxr-x. 41 nagios nagios 4096 Feb  4 14:55 /usr/local/nagios/share/perfdata/
[root@htmon01 ~]# ll -d /usr/local/nagios/share/perfdata/arghoudc2
service npcd status
ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
drwxrwxr-x. 2 nagios nagios 4096 Feb 11 22:13 /usr/local/nagios/share/perfdata/arghoudc2
[root@htmon01 ~]# ll /usr/local/nagios/share/perfdata/arghoudc2
total 7544
-rwxrwxr-x. 1 nagios nagios  384952 Feb 11 22:11 Application_Log_Warnings.rrd
-rw-rw-r--  1 nagios nagios    2393 Feb 11 22:11 Application_Log_Warnings.xml
-rwxrwxr-x. 1 nagios nagios  384952 Feb 11 22:12 CPU_Usage.rrd
-rw-rw-r--  1 nagios nagios    2271 Feb 11 22:12 CPU_Usage.xml
-rwxrwxr-x. 1 nagios nagios  768224 Feb 11 22:13 Drive_C__Disk_Usage.rrd
-rw-rw-r--  1 nagios nagios    3034 Feb 11 22:13 Drive_C__Disk_Usage.xml
-rwxrwxr-x. 1 nagios nagios 1534768 Feb 11 22:13 _HOST_.rrd
-rw-rw-r--  1 nagios nagios    3982 Feb 11 22:13 _HOST_.xml
-rwxrwxr-x. 1 nagios nagios  768224 Feb 11 22:12 Memory_Usage.rrd
-rw-rw-r--  1 nagios nagios    3114 Feb 11 22:12 Memory_Usage.xml
-rwxrwxr-x. 1 nagios nagios 1918040 Feb 11 22:11 Page_File_Usage.rrd
-rw-rw-r--  1 nagios nagios    5153 Feb 11 22:11 Page_File_Usage.xml
-rwxrwxr-x. 1 nagios nagios 1534768 Feb 11 22:13 Ping.rrd
-rw-rw-r--  1 nagios nagios    4095 Feb 11 22:13 Ping.xml
-rwxrwxr-x. 1 nagios nagios  384952 Feb 11 22:13 System_Log_Critical_Errors.rrd
-rw-rw-r--  1 nagios nagios    2388 Feb 11 22:13 System_Log_Critical_Errors.xml
[root@htmon01 ~]# service npcd status
NPCD running (pid 2741).
[root@htmon01 ~]# ls /usr/local/nagios/var/spool/xidpe | wc -l
0
[root@htmon01 ~]# ls /usr/local/nagios/var/spool/perfdata | wc -l
0
[root@htmon01 ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
0
[root@htmon01 ~]# tail -50 /usr/local/nagios/var/npcd.log
[12-30-2014 21:55:28] NPCD: npcd Daemon (0.4.14) started with PID=61311
[12-30-2014 21:55:28] NPCD: Please have a look at 'npcd -V' to get license information
[12-30-2014 21:55:28] NPCD: HINT: load_threshold is enabled - ('10.000000')
[01-08-2015 18:08:56] NPCD: npcd Daemon (0.4.14) started with PID=2786
[01-08-2015 18:08:56] NPCD: Please have a look at 'npcd -V' to get license information
[01-08-2015 18:08:56] NPCD: HINT: load_threshold is enabled - ('10.000000')
[01-08-2015 18:19:08] NPCD: Caught Termination Signal - Hasta la vista... baby
[01-08-2015 18:21:55] NPCD: npcd Daemon (0.4.14) started with PID=2741
[01-08-2015 18:21:55] NPCD: Please have a look at 'npcd -V' to get license information
[01-08-2015 18:21:55] NPCD: HINT: load_threshold is enabled - ('10.000000')
[root@htmon01 ~]# tail -50 /usr/local/nagios/var/perfdata.log
tail: cannot open ‘/usr/local/nagios/var/perfdata.log’ for reading: No such file or directory
[root@htmon01 ~]# ls /usr/local/nagios/var/
archives           nagios.lock  ndomod.tmp  objects.cache     rw                stats
host-perfdata      nagios.log   ndo.sock    objects.precache  service-perfdata  status.dat
nagios.configtest  ndo2db.lock  npcd.log    retention.dat     spool
And load is low:

Code: Select all

[root@htmon01 ~]# uptime
 22:17:05 up 34 days,  3:55,  6 users,  load average: 0.84, 0.77, 0.78
Last edited by mkosmoski on Thu Feb 12, 2015 12:16 pm, edited 1 time in total.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Capacity Planning

Post by abrist »

Alright, if the rrds are getting updated once again, the issue is most likely with display. Lets check the apache error logs. Run the following tail, try to browse to capacity planning, wait a few minutes, and then kill the tail and post the apache.txt file:

Code: Select all

tail -f /var/log/httpd/error_log > /tmp/apache.txt
Browse to Capacity planning.
Wait a few minutes.
Kill the tail with crtl-c.
Post the file:

Code: Select all

/tmp/apache.txt
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.
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Re: Capacity Planning

Post by mkosmoski »

The only errors I got are related to entries not in MIBs completely unrelated to this.
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Re: Capacity Planning

Post by mkosmoski »

Well, before I forget, I did change this site to SSL only recently, so that log is less than useful here... but in the ssl error logs, I'm only seeing errors related to CCM work from earlier in the day.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Capacity Planning

Post by lmiltchev »

Well, before I forget, I did change this site to SSL only recently, so that log is less than useful here...
Did you have the same issue prior to switching to SSL? Just want to eliminate this as a factor.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Re: Capacity Planning

Post by mkosmoski »

lmiltchev wrote:Did you have the same issue prior to switching to SSL? Just want to eliminate this as a factor.
Issue has existed since fresh install. It wasn't working then, either.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Capacity Planning

Post by scottwilkerson »

If you go to the Capacity Planning report, are ALL of the items blank with errors or just some?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Re: Capacity Planning

Post by mkosmoski »

scottwilkerson wrote:If you go to the Capacity Planning report, are ALL of the items blank with errors or just some?
Every one.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Capacity Planning

Post by lmiltchev »

mkosmoski, is opening an email support ticket an option for you? We may need to schedule a remote session to further troubleshoot this and possibly get a developer involved. Please, send us an email at [email protected] to open a new ticket.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked