Nagiosgrapher problem with building graph for particular check_service

yuris yuris at smtp.com
Fri Jul 9 14:51:01 CEST 2010


Hi all,

I use check_milter which is basically check_tcp with some arguments, it 
gives output like this:

TCP OK - 0.002 second response time on port 
1313|time=0.001912s;;;0.000000;10.000000

it's very similar to output from check_ldap:

LDAP OK - 0.006 seconds response time|time=0.006278s;;;0.000000

I have defined ngraph for check_milter very similar to check_ldap:

define ngraph{
        service_name              Milter
        graph_perf_regex        time=\s*([0-9.]+)
        graph_value                sec
        graph_units                 second
        graph_legend              response time on port 1313
        rrd_plottype                LINE2
        rrd_color                    0000ff
        }

define ngraph{
        service_name               LDAP
        graph_perf_regex        time=\s*([0-9.]+)
        graph_value                sec
        graph_units                 seconds
        graph_legend              LDAP Response time
        rrd_plottype                LINE2
        rrd_color                     00a000
        }

And the problem is that graphs for Milter are not shown, Nagiosgrapher 
complains that "some error occured":

RRD Error: No DS called 'sec' in 
'/var/lib/nagiosgrapher/rrd/<hostname>/457eb765jjf8905k0000567849c.rrd'

I wonder why "graph_value sec" is ok for LDAP graph but does not suit 
for different service with almost identical output?

and I see no errors in ngraph.log:

2010-07-09 08:32:55 PIPE: node142       Milter  TCP OK - 0.050 second 
response time on port 1313        time=0.049644s;;;0.000000;10.000000n
2010-07-09 08:32:55 VALUES: [node142][Milter]: sec=0.049644
2010-07-09 08:32:55 RRD: rrdtool update 
/var/lib/nagiosgrapher/rrd/node142/4bab581d80135b9823fd2a54001423a4.rrd 
--template=sec N:0.049644

Please help me figure out what's wrong did I do?

--
best regards,
Yuris
Linux System Engineer,
SMTP.com





------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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