Building graphs - SOLVED

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
User avatar
sebastiaopburnay
Posts: 105
Joined: Sun Oct 31, 2010 1:40 pm
Location: Lisbon, Portugal

Building graphs - SOLVED

Post by sebastiaopburnay »

Hi,

I'm having a problem with some graphs.

There are services on which the graphs are cuccessfully generated and others returning an error message on the browser.

I will show you one of those errors:

Code: Select all

RRD Database/var/lib/nagios/hplj5100tn_-_Centro_de_Controlo/Printer_Status.rrd not found.
This one is related to a network printer service which is described below:

Code: Select all

define host{
	use					generic-printer
	host_name			hplj5100tn - Centro de Controlo
	alias				HP LaserJet 5100tn
	address				172.20.10.38
	hostgroups			network-printers
	parents				SW ComServ I
	action_url 			/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
	}
define hostextinfo{
    host_name			hplj5100tn - Centro de Controlo
	notes				Bloco B - Piso 1 - Centro de Controlo
	icon_image			printer.gif 
    icon_image_alt		Bloco B - Piso 1 - Centro de Controlo
    statusmap_image		printer.png
	}
define service{
	use						generic-service
	host_name				hplj5100tn - Centro de Controlo
	service_description		Printer Status
	check_command			check_hpjd!-C public
	normal_check_interval	10
	retry_check_interval	1
	action_url 				/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
	}
I'm hoping this is a simple error, based on the fact that I'm an unexperienced nagios administrator.


With my best regards, sebastiaopburnay
Last edited by sebastiaopburnay on Wed Mar 06, 2013 2:34 pm, edited 1 time in total.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Building graphs

Post by mguthrie »

Graphs can only be created from valid performance data. What kind of output are you getting from the check plugin?

Here's a breakdown of valid performance data:
http://docs.pnp4nagios.org/pnp-0.4/abou ... quirements
User avatar
sebastiaopburnay
Posts: 105
Joined: Sun Oct 31, 2010 1:40 pm
Location: Lisbon, Portugal

Re: Building graphs

Post by sebastiaopburnay »

Well, now I understand why some tests wont produce graphs.
This one was returnig invalid pnp4 data

Code: Select all

[root@nagiux plugins]# ./check_hpjd -H 172.20.10.20 -C public
Printer ok - ("Ready")
It only has the text and none performance data. But for instance, this test:

Code: Select all

[root@nagiux plugins]# ./check_nrpe -H 172.20.31.67 -c CheckDriveSize -a ShowAll MinWarnFree=10% MinCritFree=5% Drive=C:
OK: C:: 33.8G|'C: %'=55%;10;5; 'C:'=33.77G;7.44;3.72;0;74.43; 
So, you sugest that I alter my .pl check files in order to have a well dormated pnp4 output.

Thank you, I will now spend some time studying onp4 documentation.
Locked