Nagiosgraph: RRDs doesn't generate a new database
Pietrangelo, Nicholas
npietrangelo at jewels.com
Thu Apr 26 15:49:43 CEST 2007
I have followed all of the instructions from Wolfgang, the INSTALL file
from nagiosgraph-0.8.2 and any readme that I can find. The
nagiosgraph.log is empty and the directory that I specify for the
"rrddir" is empty. If I run the /usr/share/rrdtool/examples/perftest.pl
it generates a database. Here is what I have:
Nagios.cfg
process_performance_data=1
service_perfdata_command=process-service-perfdata
service_perfdata_file=/var/adm/logs/nagios/service-perfdata
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICED
ESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_command=process-service-perfdata
log_file=/var/adm/logs/nagios/nagios.log
status_file=/var/adm/logs/nagios/status.dat
command_file=/var/adm/logs/nagios/nagios.cmd
comment_file=/var/adm/logs/nagios/comments.dat
temp_file=/var/adm/logs/nagios/nagios.tmp
cfg_file=/etc/nagios/commands.cfg
cfg_file=/etc/nagios/contactgroups.cfg
cfg_file=/etc/nagios/contacts.cfg
cfg_file=/etc/nagios/dependencies.cfg
cfg_file=/etc/nagios/escalations.cfg
cfg_file=/etc/nagios/hostgroups.cfg
cfg_file=/etc/nagios/hosts.cfg
cfg_file=/etc/nagios/services.cfg
cfg_file=/etc/nagios/timeperiods.cfg
cfg_file=/etc/nagios/serviceextinfo.cfg
object_cache_file=/var/adm/logs/nagios/objects.cache
resource_file=/etc/nagios/resource.cfg
commands.cfg
........
define command {
command_name process-service-perfdata
command_line /etc/nagios/nagiosgraph-0.8.2/insert.pl
"$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEDESC$||$SERVICEO
UTPUT$||$SERVICEPERFDATA$"
}
Serviceextinfo.cfg
define serviceextinfo{
service_description PING
host_name *
notes_url
/nagiosgraph/show.cgi?host=$HOSTNAME$&service=PING
icon_image graph.gif
icon_image_alt show graphics
}
Nagiosgraph.cfg
debug = 1
logfile = /var/adm/logs/nagios/nagiosgraph.log
rrddir = /var/adm/logs/nagios/rrd
mapfile = /etc/nagios/nagiosgraph-0.8.2/map
perflog = /var/adm/logs/nagios/perfdata.log
stylesheet = /usr/share/nagios/stylesheets/nagiosgraph.css
insert.pl
my $configfile = '/etc/nagios/nagiosgraph-0.8.2/nagiosgraph.conf';
Below shows that the nagiosgraph.log and rrddir is empty
[root at rh02 nagios]# pwd
/var/adm/logs/nagios
[root at rh02 nagios]# ls -alR
.:
total 1212
drwxrwxrwx 3 root root 4096 Apr 26 09:48 .
drwxr-xr-x 13 root root 4096 Apr 19 14:21 ..
-rw-rw-r-- 1 nagios nagios 238 Apr 25 14:04 comments.dat
-rw-rw-r-- 1 nagios nagios 239 Apr 25 14:04 downtime.dat
-rwxrwxr-x 1 nagios nagios 0 Apr 19 14:22 nagiosgraph.log
-rw-r--r-- 1 nagios nagios 4114 Apr 26 09:06 nagios.log
-rw-r--r-- 1 nagios nagios 9337 Apr 25 15:06 objects.cache
-rw------- 1 nagios nagios 7613 Apr 26 09:06 retention.dat
drwxr-xr-x 2 nagios nagios 4096 Apr 25 15:06 rrd
-rw-r--r-- 1 nagios nagios 1179322 Apr 26 09:48 service-perfdata
-rw-rw-r-- 1 nagios nagios 7576 Apr 26 09:48 status.dat
./rrd:
total 8
drwxr-xr-x 2 nagios nagios 4096 Apr 25 15:06 .
drwxrwxrwx 3 root root 4096 Apr 26 09:48 ..
Help!!
Nick P
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070426/e256b794/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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