Empty graph with Nagiosgraph

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.
Locked
Rdesmottes
Posts: 2
Joined: Fri Jan 16, 2015 3:23 am

Empty graph with Nagiosgraph

Post by Rdesmottes »

Hello everybody,
Happy new year for all of you.
I'm french, so sorry for my bad english :)

I have an issue with nagios 3.4.4 and Nagiosgraph 1.4.4.
I explain to you the situation.
We have actually an old Nagios server monotoring production, we had splited the monitoring and I have to manage all application monitoring. Now the new server is running and the old one too, I had deactivated all alerts on the new one.

All checks are configured and they are all working.

I had installed nagiosgraph and it's works.

RRD databases are created automatically and correctly updated.

For some check I have graphs.
But for all check using this (almost every checks), they all not works, I have empty graph :

# Service type: unix-procs
# output:PROCS OK: 43 processes
/output:PROCS .*: ?(\d+) process.*/
and push @s, [ procs,
[ procs, GAUGE, $1 ] ];

Here this is an output : PROCS OK: 1 process with UID = 200 (nexo), PPID = 1, command name 'dmi_loader' [min -1]

But, when I test this regular expression on http://rubular.com/ for exemple, data are correctly found.

And on the old server, graphs are correctly updated.

I am really lost because I don't know what can I do to fix this issue.

I don't know what information you need to help me, and my post is already borring to read so please ask me what you need and I will tell you.

It's really important for me, because we have to deliver this new server ASAP, and I am alone to manage nagios stuff

Thank you very much!
Rdesmottes
Posts: 2
Joined: Fri Jan 16, 2015 3:23 am

Re: Empty graph with Nagiosgraph

Post by Rdesmottes »

I found where was the problem since this morning (i worked on it and was stock since 2 weeks and I fix the problem juste after posting here...)

After dis some investigation, the rrd database was updated with no data, I didn't know why.

But I began to search this way on the web and found this : http://xiehang.com/blog/2013/08/28/nagi ... nt-page-1/

and did that : the solution is change command definition (usually objects/commands.cfg) from /usr/libexec/nagiosgraph/insert.pl to /usr/bin/perl /usr/libexec/nagiosgraph/insert.pl

And after delete the rrd Database, it's works!!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Empty graph with Nagiosgraph

Post by slansing »

Awesome! Thank you for letting us know, sometimes it's just nice to write out what you've done to get a fresh perspective.
Locked