Nagios Grapher/Nagios Core

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
darkhorse
Posts: 9
Joined: Thu Jan 17, 2013 4:51 pm

Nagios Grapher/Nagios Core

Post 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!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Grapher/Nagios Core

Post 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/
darkhorse
Posts: 9
Joined: Thu Jan 17, 2013 4:51 pm

Re: Nagios Grapher/Nagios Core

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Grapher/Nagios Core

Post 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.
darkhorse
Posts: 9
Joined: Thu Jan 17, 2013 4:51 pm

Re: Nagios Grapher/Nagios Core

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Grapher/Nagios Core

Post 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 . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked