Graph is not showing in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Graph is not showing in Nagios

Post by imran_khan »

Hello,

Made the changes, not getting any error this time while verifying nagios configuration.

What is the next step?

Thanks,
Imran Khan.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Graph is not showing in Nagios

Post by Box293 »

You should now have a graph icon in Nagios, clicking on this will bring up PNP graphs.

Wait about 15 minutes to see if performance data appears.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Graph is not showing in Nagios

Post by imran_khan »

Hello,

That icon is not appeared in nagios.

Thanks,
Imran Khan.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Graph is not showing in Nagios

Post by Box293 »

imran_khan wrote:That icon is not appeared in nagios
imran_khan wrote:# example.com' host definition
define host{
use generic-host,host-pnp ; Name of host template to use
host_name example.com
alias example.com
address Server_IP
address Server_IP
check_command check-host-alive
max_check_attempts 10
notification_interval 10
notification_period 24x7
notification_options d,u,r
hostgroups ABCD,PQRST
notes_url /nagios/info/windows.html
contact_groups linuxteam
}
In Nagios, under Current Status click Hosts
The host example.com should be listed and next to it there will be an icon that looks like a line graph.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Graph is not showing in Nagios

Post by imran_khan »

Hello,

Correct but that icon is not appeared next to the Host/Server Name. Only showing Extra Notes option and that also is not displaying properly.
Attached the file with this post.

Still not getting graph of any servers.

Thanks,
Imran Khan.
Attachments
host.jpg
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Graph is not showing in Nagios

Post by Box293 »

Putting the icon issue aside for a minute, are perfdata folder/files now being generated?

Code: Select all

ls -al /usr/local/pnp4nagios/var/perfdata
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Graph is not showing in Nagios

Post by imran_khan »

Hello,

Thanks for the reply. Files are not generating.

[root@localhost ~]# ls -al /usr/local/pnp4nagios/var/perfdata
total 8
drwxr-xr-x 2 nagios nagios 4096 Jul 15 22:19 .
drwxr-xr-x 6 nagios nagios 4096 Jul 16 13:26 ..

Any update/suggestion?

Thanks,
Imran Khan.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Graph is not showing in Nagios

Post by imran_khan »

Hello Box293,

Any update/suggestion. Please help me out of this.

Thanks,
Imran Khan.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Graph is not showing in Nagios

Post by Box293 »

It's time to look at some log files.

At the CLI type:

Code: Select all

tail -f /var/log/messages
Now go to a host and schedule an immediate check. Does anything appear on the cli?

We can turn on full debugging for Nagios.

Edit /usr/local/nagios/etc/nagios.cfg
Change:

Code: Select all

debug_level=0
To:

Code: Select all

debug_level=-1
Restart Nagios

At the CLI type:

Code: Select all

tail -f /usr/local/nagios/var/nagios.debug
Now go to a host and schedule an immediate check. What appears on the cli (relevent to the host you just checked)?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: Graph is not showing in Nagios

Post by imran_khan »

Hello,

Schedule and immediate checked.

Not generating any log on /var/log/messages.

Turned on debugging in Nagios and restarted Nagios service.

Schedule and immediate checked.

Not generating any log on /usr/local/nagios/var/nagios.log.

Thanks,
Imran Khan.
Locked