Page 1 of 1

Building graphs - SOLVED

Posted: Fri Dec 10, 2010 9:42 am
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

Re: Building graphs

Posted: Sat Dec 11, 2010 2:06 am
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

Re: Building graphs

Posted: Thu Dec 16, 2010 5:39 am
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.