nagiosgraph help
Assaf Flatto
assaf.flatto at ssp-intl.com
Wed Feb 25 12:31:58 CET 2009
Hello List
I've been struggling with the nagiosgraph , granted i am not that fluent with perl , but i do have
a basic grasp of it .
The problem i am having is adding services ( of course) .
define service{
use linux-service
host_name host
service_description SLAPD Open connections
check_command check_nrpe_no_ssl!check_slapd
icon_image ldap.gif
action_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
}
I have a check in nagios to see the amount of slapd connections to my openldap servers :
Command :
/usr/lib/nagios/plugins/check_connections -w 800 -c 925 -C slapd
sample Result :
OK - Established connections: 235
now - trying to parse this in the nagiosgraph map file i have the following definition :
# Service type: unix-slapd
# ouput:OK - Established connections: 6
/output:OK .* ([0-9]+) /
and push @s, ['slapd',
[ 'Established connections:', GAUGE, $1 ] ];
In the nagiosgraph log i have the following :
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - graphinfo(host, SLAPD Open connections)
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - db = [];
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - getfilename(host, SLAPD Open connections, )
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - getfilename dbseparator: 'subdir'
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - scanning /usr/local/nagios/nagiosgraph/rrd/host for
SLAPD%20Open%20connections___
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - dbfilelist = [];
Wed Feb 25 11:24:04 2009 showgraph.cgi info - Listing host/SLAPD%20Open%20connections___ db files
in /usr/local/nagios/nagiosgraph/rrd:
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - rrd = [];
Wed Feb 25 11:24:04 2009 showgraph.cgi debug - rrdline(host, SLAPD Open connections, , , 118800)
Wed Feb 25 11:24:04 2009 showgraph.cgi info - RRDs::graph = [
'-',
'-a',
'PNG',
'--start',
'-118800',
'-w',
600
];
yet i get no graph .
Any ideas where i am doing this wrong ?
Thank you
--
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE
IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.
We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.
Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.
Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.
Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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