RRD Doesn't generate a new DB

Pietrangelo, Nicholas npietrangelo at jewels.com
Thu Apr 26 19:17:52 CEST 2007


Could it be that there isn't any data to add to the rrd?  Here is the
rrd insert.pl  ran manually then nagios runs it automatically.

Thu Apr 26 13:12:54 2007 INSERT debug: processing perfdata:
1177603367||localhost||PING||PING OK - Packet loss = 0%, RTA = 0.04 ms||

Thu Apr 26 13:12:54 2007 INSERT info: Input lastcheck:1177603367
Thu Apr 26 13:12:54 2007 INSERT info: Input hostname:localhost
Thu Apr 26 13:12:54 2007 INSERT info: Input perfdata:

Thu Apr 26 13:12:54 2007 INSERT info: Input servicedescr:PING
Thu Apr 26 13:12:54 2007 INSERT info: Input output:PING OK - Packet loss
= 0%, RTA = 0.04 ms
Thu Apr 26 13:12:54 2007 INSERT debug: Checking
/var/adm/logs/nagios/rrd/localhost_PING_ping.rrd
Thu Apr 26 13:12:54 2007 INSERT info: RRDs::update
/var/adm/logs/nagios/rrd/localhost_PING_ping.rrd 1177603367:0:4e-05
Thu Apr 26 13:12:54 2007 INSERT debug: processing perfdata:
1177607438||localhost||Current Load||OK - load average: 0.04, 0.08,
0.27||load1=0.040;5.000;10.000;0; load5=0.080;4.000;6.000;0;
load15=0.270;3.000;4.000;0;

Thu Apr 26 13:12:54 2007 INSERT info: Input lastcheck:1177607438
Thu Apr 26 13:12:54 2007 INSERT info: Input hostname:localhost
Thu Apr 26 13:12:54 2007 INSERT info: Input
perfdata:load1=0.040;5.000;10.000;0; load5=0.080;4.000;6.000;0;
load15=0.270;3.000;4.000;0;

Thu Apr 26 13:12:54 2007 INSERT info: Input servicedescr:Current Load
Thu Apr 26 13:12:54 2007 INSERT info: Input output:OK - load average:
0.04, 0.08, 0.27
Thu Apr 26 13:12:54 2007 INSERT debug: Checking
/var/adm/logs/nagios/rrd/localhost_Current%20Load_load.rrd
Thu Apr 26 13:12:54 2007 INSERT info: RRDs::update
/var/adm/logs/nagios/rrd/localhost_Current%20Load_load.rrd
1177607438:0.04:0.08:0.27
Thu Apr 26 13:12:54 2007 INSERT debug: nagiosgraph exited
Thu Apr 26 13:13:10 2007 INSERT debug: Config
logfile:/var/adm/logs/nagios/nagiosgraph.log
Thu Apr 26 13:13:10 2007 INSERT debug: Config
rrddir:/var/adm/logs/nagios/rrd
Thu Apr 26 13:13:10 2007 INSERT debug: Config
mapfile:/etc/nagios/nagiosgraph-0.8.2/map
Thu Apr 26 13:13:10 2007 INSERT debug: Config colorscheme:1
Thu Apr 26 13:13:10 2007 INSERT debug: Config heartbeat:600
Thu Apr 26 13:13:10 2007 INSERT debug: Config
perflog:/var/adm/logs/nagios/service-perfdata
Thu Apr 26 13:13:10 2007 INSERT debug: Config
stylesheet:/usr/share/nagios/stylesheets/nagiosgraph.css
Thu Apr 26 13:13:10 2007 INSERT debug: nagiosgraph spawned
Thu Apr 26 13:13:10 2007 INSERT debug: processing perfdata: ||||||||||
Thu Apr 26 13:13:10 2007 INSERT info: Input lastcheck:
Thu Apr 26 13:13:10 2007 INSERT info: Input hostname:
Thu Apr 26 13:13:10 2007 INSERT info: Input perfdata:
Thu Apr 26 13:13:10 2007 INSERT info: Input servicedescr:
Thu Apr 26 13:13:10 2007 INSERT info: Input output:
Thu Apr 26 13:13:10 2007 INSERT warn: perfdata not recognized
Thu Apr 26 13:13:10 2007 INSERT debug: nagiosgraph exited



-----Original Message-----
From: glynn.seymour at bayerbbs.com [mailto:glynn.seymour at bayerbbs.com] 
Sent: Thursday, April 26, 2007 11:51 AM
To: Pietrangelo, Nicholas
Subject: RE: RRD Doesn't generate a new DB

No, perflog is your perfdata.dat file, where the performance data gets 
dumped - bit confusing I think..


# Location of performance data file. Comment out it not used.
perflog = /usr/local/nagios/var/perfdata.dat

.. from my nagiosgraph.conf
________________________________________________________________________
___ 

Glynn Seymour 
Network Consultant 
BBS EMEA-IT UK 
Bayer plc, UK 
Telephone:   +44 1635 563574 
e mail:   glynn.seymour at bayerbbs.com    Web:   http://www.bayer.co.uk 



"Pietrangelo, Nicholas" <npietrangelo at jewels.com> 
26/04/2007 16:44

To
<glynn.seymour at bayerbbs.com>
cc
<nagios-users at lists.sourceforge.net>
Subject
RE: RRD Doesn't generate a new DB







Is the perflog the same file as the service_perfdata_file?

Nagiosgraph.cfg: perflog = /var/adm/logs/nagios/service-perfdata:q!
 


Nagios.cfg: service_perfdata_file=/var/adm/logs/nagios/service-perfdata

Nick P

-----Original Message-----
From: glynn.seymour at bayerbbs.com [mailto:glynn.seymour at bayerbbs.com] 
Sent: Thursday, April 26, 2007 11:32 AM
To: Pietrangelo, Nicholas
Cc: nagios-users at lists.sourceforge.net
Subject: RE: RRD Doesn't generate a new DB

OK, so it'll run as the user, but it's not creating rrd files by itself?

Sounds like nothing is getting through to the map file to attempt 
translation on, but I could be misunderstanding.

Does your PING service (it's a good example to work with) have the 
performance data on? (process_perf_data 1) 

Set nagiosgraph.conf debug=5, and tail the log file - you should see
stuff 
going on all the time if its working. Also tail your perfdata.dat file 
(nagios/var) in another console, you should see data dropping in to
there 
then the file being truncated - give it a while if you don't have many 
hosts defined, or the check doesn't run often.

When stuff drops into perfdata.dat, you should see an attempt to process

it nagiosgraph.log - if you get an error like it can't recognise the
data, 
you need to check your map file:

# Service type: ping
#   output:PING OK - Packet loss = 0%, RTA = 0.00 ms
/output:PING.*?(\d+)%.+?([.\d]+)\sms/
and push @s, [ ping,
               [ losspct, GAUGE, $1      ],
               [ rta,     GAUGE, $2/1000 ] ];

.. is mine, think thats an out of the box setting though, so it should
be 
OK.

If nothing appears in perfdata.dat, no performance data is being
processed 
by Nagios - back to the overall config (looks OK to me) and the service 
config.

REMEMBER TO SET DEBUG BACK TO 1, IT GROWS BIG QUICK!! (Sorry for Caps, 
it's because I forgot to once.:-o..) 
________________________________________________________________________
___ 

Glynn Seymour 
Network Consultant 
BBS EMEA-IT UK 
Bayer plc, UK 




"Pietrangelo, Nicholas" <npietrangelo at jewels.com> 
26/04/2007 16:02

To
<glynn.seymour at bayerbbs.com>
cc
<nagios-users at lists.sourceforge.net>
Subject
RE: RRD Doesn't generate a new DB







I su'd to the nagios user and manually ran the insert.pl.  I actually 
inserted rrd files into the rrddir.  But it isn't updateing on its own.

Nick P

-----Original Message-----
From: glynn.seymour at bayerbbs.com [mailto:glynn.seymour at bayerbbs.com] 
Sent: Thursday, April 26, 2007 10:41 AM
To: Pietrangelo, Nicholas
Cc: nagios-users at lists.sourceforge.net
Subject: Re: RRD Doesn't generate a new DB

Whats the security on insert.pl? Can the Nagios user ever run it (try 
SU'ing to it if you can)


HTH,

Glynn.
________________________________________________________________________
___ 


Glynn Seymour 
Network Consultant 
BBS EMEA-IT UK 
Bayer plc, UK 

e mail:   nospam.glynn.seymour at bayerbbs.com    Web: 
http://www.bayer.co.uk 

________________________________________________________________________
__
Bayer plc is registered in England under number 935048. Registered
Office: 

Bayer House, Strawberry Hill, Newbury, Berkshire RG14 1JA. 
The information contained in this e-mail is for the exclusive use of the

intended recipient(s) and may be confidential, proprietary, and/or
legally 

privileged.  Inadvertent disclosure of this message does not constitute
a 
waiver of any privilege.  If you receive this message in error, please
do 
not directly or indirectly use, print, copy, forward, or disclose any
part 

of this message.  Please also delete this e-mail and all copies and
notify 

the sender.Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com
________________________________________________________________________
__

The information contained in this e-mail message is privileged and/or
confidential and is intended only for the use of the individual or
entity
named above.  If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone (330-668-5000), and destroy the original
message.  Thank you. 



The information contained in this e-mail message is privileged and/or
confidential and is intended only for the use of the individual or
entity
named above.  If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone (330-668-5000), and destroy the original
message.  Thank you. 



The information contained in this e-mail message is privileged and/or
confidential and is intended only for the use of the individual or entity
named above.  If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please immediately
notify us by telephone (330-668-5000), and destroy the original
message.  Thank you. 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list