Page 1 of 1
Graph not showing for cloud servers
Posted: Tue Jan 29, 2019 9:44 am
by vignesha
Hello Team,
We have nagios xi server in cloud and we have 8 to 9 Microsoft Azure server need to be monitor in nagios so for that we have configured using Microsoft Azure Cloud server wizard through that we have added in nagios, but we are not getting any graphs for windows servers and as well for local server.
so how we can get the graphs for Microsoft Azure Cloud Server?
Re: Graph not showing for cloud servers
Posted: Tue Jan 29, 2019 11:22 am
by lmiltchev
Not all checks return perfdata. Can you show us a screenshot of the Host Status Detail or Service Status Detail page for your host/service (the Advanced tab)?
Re: Graph not showing for cloud servers
Posted: Tue Jan 29, 2019 1:07 pm
by vignesha
As requested, Please find the attachment for the same
Re: Graph not showing for cloud servers
Posted: Tue Jan 29, 2019 1:36 pm
by lmiltchev
It seems like your check do return perfdata, so the issue may be caused by something else. Try following all of the steps, outlined in the KB article below to see if this is going to fix your issue. If you still cannot see graphs, post the
/usr/local/nagios/var/npcd.log and
/usr/local/nagios/var/perfdata.log on the forum (after increasing the verbosity).
Also, run the following commands and show the output in code wraps:
Code: Select all
ls -lad /usr/local/nagios/share/perfdata
ls -lad /usr/local/nagios/share/perfdata/DemoVM-WINDOWS2
ls -la /usr/local/nagios/share/perfdata/DemoVM-WINDOWS2
ps -ef | grep [c]ron
cat /etc/cron.d/nagiosxi
service npcd status
ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
ls /usr/local/nagios/var/spool/checkresults | wc -l
uptime
chage -l nagios
Re: Graph not showing for cloud servers
Posted: Wed Jan 30, 2019 7:16 am
by vignesha
Hi,
PFA outputs for the following commands.
Re: Graph not showing for cloud servers
Posted: Wed Jan 30, 2019 10:17 am
by lmiltchev
There are no RRD files in the /usr/local/nagios/share/perfdata/DemoVM-WINDOWS2 directory, only the XML files. It seems like there is a problem with the rrdtool or missing packages. I see the following in the log:
2019-01-30 17:42:17 [16230] [2] RRDs Perl Modules are not installed. Falling back to rrdtool system call.
Can you run the following commands and show the output?
Code: Select all
which rrdtool
rrdtool
yum list installed |grep rrdtool
Also, post the
/usr/local/nagios/etc/pnp/npcd.cfg and
/usr/local/nagios/etc/pnp/process_perfdata.cfg files.
Re: Graph not showing for cloud servers
Posted: Wed Jan 30, 2019 11:07 am
by vignesha
Hi lmiltchev,
PFA output for the following commands.
Re: Graph not showing for cloud servers
Posted: Wed Jan 30, 2019 1:18 pm
by lmiltchev
The rrdtool cannot run properly for you.
[root@nagiosvm ~]# rrdtool
rrdtool: symbol lookup error: /lib64/libpango-1.0.so.0: undefined symbol: g_log_structured_standard
Running the above command should give you:
Code: Select all
[root@main-nagios-xi ~]# rrdtool
RRDtool 1.4.9 Copyright 1997-2013 by Tobias Oetiker <[email protected]>
Compiled Feb 16 2015 13:44:33
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
Are you running XI on a RHEL system? I found some bug reporst, stating that symbol reference to libpango that doesn't exist in some versions of RHEL 7. Several users claim that upgrading the glib2 package solves the issue. I even found an older forum post, mentioning that:
https://support.nagios.com/forum/viewto ... 16&t=51505
Re: Graph not showing for cloud servers
Posted: Thu Jan 31, 2019 11:47 am
by vignesha
Hi lmiltchev,
Yes, its sounds good
we are also using centos 7.5 and we upgraded glib2 package then the graphs started plotting in nagios.
Thanks for your support, you can close the ticket.
Re: Graph not showing for cloud servers
Posted: Thu Jan 31, 2019 12:14 pm
by lmiltchev
I am glad I could help!
