Page 1 of 1

[SOLVED]NagiosCore No graph "State History"

Posted: Fri Oct 14, 2016 8:13 am
by fboquet
Hi guy :D

Sorry in advance for my English :roll: ;) I'm French and I am learning :)

I need your help, I installed Nagios Core (the latest version) and i have a problem with my graph

I explains me :

for exemple if i go on the host "localhost" and --> "View Satuts Detail For this host" --> today and have a perfect Graph :
Image

But if i go on another host, i don't have a graph :?
Image

however, ping is ok for this host :
Image

Image

can you help me ?? ;)

Re: NagiosCore No graph "State History"

Posted: Fri Oct 14, 2016 12:42 pm
by tgriep
Can you login to the nagios server as root, run the following command and post the output?

Code: Select all

/usr/local/nagios/bin/nagios -vv /usr/local/nagios/etc/nagios.cfg
Can you also post the host configuration file for the host in PROD2662VB2 so we can look at its settings?
What is the OS and it's version the Nagios software is running on?

Re: NagiosCore No graph "State History"

Posted: Mon Oct 17, 2016 4:31 am
by fboquet
Thank you for the answer, this is the result obtained with the command

nagios.cfg

Nagios Core 4.2.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-06-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Processing object config directory '/usr/local/nagios/etc/routers'...
Processing object config file '/usr/local/nagios/etc/routers/PCFlo.cfg'...
Processing object config file '/usr/local/nagios/etc/routers/SNA.cfg'...
Processing object config directory '/usr/local/nagios/etc/computers'...
Processing object config file '/usr/local/nagios/etc/computers/Christophev.cfg'...
Processing object config file '/usr/local/nagios/etc/computers/Mathieul.cfg'...
Processing object config file '/usr/local/nagios/etc/computers/Jeromew.cfg'...
Processing object config file '/usr/local/nagios/etc/computers/Juliena.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 14 services.
Checked 7 hosts.
Checked 4 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 7 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check


and my Prod.cfg :


define host{
use generic-printer ; Inherit default values from a template
host_name PROD2662VB2 ; The name we're giving to this printer
alias HP LaserJet 2605dn ; A longer name associated with the printer
address 192.168.54.24 ; IP address of the printer
hostgroups network-printers ; Host groups this printer is associated with
}


define hostgroup{
hostgroup_name network-printers ; The name of the hostgroup
alias Network Printers ; Long name of the group
}


define service{
use local-service
host_name PROD2662VB2
service_description PING
check_command check_ping!3000.0,80%!5000.0,100%
normal_check_interval 10
retry_check_interval 1
first_notification_delay 0
}

this morning, I see that the graphs appeared ... Nagios turned all weekend. Weird... maybe there is a time between creation and display graph ? Strange no ?

Re: NagiosCore No graph "State History"

Posted: Mon Oct 17, 2016 10:31 am
by rkennedy
The configurations look good, and yeah, if they appeared, it's hard to say what happened.

Are we good to mark this thread resolved as things are working?

Re: NagiosCore No graph "State History"

Posted: Thu Oct 20, 2016 10:03 am
by fboquet
Yes, thank you so very much, I tested on another installation and the result is the same, I have a delays of 30 to 50 minutes before the display of the graph ;)

Thank you again :mrgreen:

Re: [SOLVED]NagiosCore No graph "State History"

Posted: Thu Oct 20, 2016 11:36 am
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!