Page 1 of 1

Nagios Grapher/Nagios Core

Posted: Wed Jan 30, 2013 3:31 pm
by darkhorse
hey guys,

I need some help with nagios 1.3.7 and nagios grapher. Im using ubuntu 12.10 .

I cant seem to graph some services Im running on nagios grapher. As soon as nagios grapher installs, it graphs PING, SWAP USAGE, HTTP and CURRENT USERS. I cant seem to get any other services to graph. Im trying to find a pattern to see how its all setup currently but I cant for the life of me.

In order for someone to help, which files do you need to see?
ngraph.ncfg?
serviceext?
templates?

thank you in advanced. Ive been playing with this for weeks and still cant get it to work!

Re: Nagios Grapher/Nagios Core

Posted: Wed Jan 30, 2013 3:48 pm
by slansing
I did notice that there were some changes to files regarding the Grapher in newer versions of Nagios. Is it a possibility for you to upgrade to the newest version? 3.4.4:

http://www.nagios.org/download/core/

Re: Nagios Grapher/Nagios Core

Posted: Wed Jan 30, 2013 6:01 pm
by darkhorse
slansing wrote:I did notice that there were some changes to files regarding the Grapher in newer versions of Nagios. Is it a possibility for you to upgrade to the newest version? 3.4.4:

http://www.nagios.org/download/core/
Hi slansing, my mistake, I am using 3.4.3 not 1.3.7. Not sure where I got those numbers from.

Are you able to help me? Which files do you need to see?

Thank you much appreciated.

Re: Nagios Grapher/Nagios Core

Posted: Thu Jan 31, 2013 11:59 am
by slansing
What are you specifically trying to graph? There are a number of custom plugins which can not return performance data due to how they were created or what they monitor.

Re: Nagios Grapher/Nagios Core

Posted: Sun Feb 03, 2013 11:51 pm
by darkhorse
slansing wrote:What are you specifically trying to graph? There are a number of custom plugins which can not return performance data due to how they were created or what they monitor.
Hi slansing,

Thank you for replying. Right now you are basically my only hope lol no one really replies back to specific questions.
So I'm trying to graph a C drive (disk) from a server on Nagios Grapher.

Here are the details you need:

1. this is the template check_disk found under /usr/local/nagios/etc/ngraph.d/templates/standard/check_disk.ncfg


# ---
# NagiosGrapher Template for check_disk
# ---

# Linux Disk Usage
define ngraph{
service_name disk
graph_log_regex \([0-9]+)% inode #(\d+)
graph_value RTA
graph_units percent
graph_legend free space
rrd_plottype AREA
rrd_color 00a000
hide yes
}

define ngraph{
service_name disk
type CDEF
graph_value used
graph_units percent
graph_legend used space
graph_calc 100,RTA,-
rrd_plottype AREA
rrd_color ff0000
hide no
}

define ngraph{
service_name disk
type CDEF
graph_value free
graph_units percent
graph_legend free space
graph_calc RTA
rrd_plottype STACK
rrd_color 00a000
hide no
}

# [EOF]

2. Now this is the service found under
/usr/local/nagios/etc/objects/services.cfg



define service{
use generic-service
host_name HOST NAME
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}

Do you need to check any other file? thank you

Re: Nagios Grapher/Nagios Core

Posted: Wed Feb 06, 2013 11:57 am
by abrist
Just out of curiosity, have you looked at pnp4nagios?

I ask because pnp4nagios is much easier to configure and tends to have more support than nagios grapher . . .