On Nagios 1.3<br>Well, i put the right location of nagiosgraph.conf both in show.cgi and insert.pl.<br>My hosts.cfg has <span style="font-weight: bold;">proceess_perf_data 1<br></span>nagios.cfg has<span style="font-weight: bold;">
<span style="font-weight: bold;"> process_performance_data=1 </span></span>and<span style="font-weight: bold;"><span style="font-weight: bold;"> service_perfdata_command=process-service-perfdata<span style="font-weight: bold;">
<br><br></span></span></span>I have searched for a perfdata.log file but i dont have one<span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;">.
</span><br></span></span></span>I put debug mode to 5 and when i simply run insert.pl i dont get any ouptut.<br><br>Here's my map file :<br># Service type: ping<br># output:PING OK - Packet loss = 0%, RTA = 0.00 m<br>/output:PING.*?(\d+)%.+?([.\d]+)\sms/
<br>and push @s, [ ping,<br> [ losspct, GAUGE, $1 ],<br> [ rta, GAUGE, $2/1000 ] ];<br><br># Service type: unix-disk<br># ouput:DISK OK - free space: / 12372 mB (77% inode=96%): /raid 882442 mB (88% inode=91%):
<br># perfdata: /=12372mB;14417;15698;96;16019 /raid=882441mB;999780;999780;91;999780<br>/output:DISK/ and do {<br> my @_pct = /: (\/.*?) .*?(\d+)% inode=(\d+)%/g;<br> while ( my($_d,$_b,$_i) = splice @_pct,0,3 ) {<br>
my @_s;<br> /perfdata:.*$_d=(\d+)\w*?;(\d+);(\d+);(\d+);(\d+)/;<br> push @s, [ $_d,<br> [ free, GAUGE, $1*1024**2 ],<br> [ user, GAUGE, $2*1024**2 ],<br> [ root, GAUGE, $3*1024**2 ],
<br> [ max, GAUGE, $5*1024**2 ],<br> [ blockpct, GAUGE, $_b ],<br> [ inodepct, GAUGE, $_i ] ];<br> }<br>};<br><br># Service type: unix-dns<br># output:DNS OK - 0.008 seconds response time (
test.test.1M IN A192.169.0.47)<br># perfdata:time=8260us;;;0<br>/output:DNS.*?([.0-9]+) sec/<br>and push @s, [ dns,<br> [ response, GAUGE, $1 ] ];<br><br><br># Service type: unix-load<br># output: OK - load average:
0.66, 0.70, 0.73<br># perfdata:load1=0;15;30;0 load5=0;10;25;0 load15=0;5;20;0<br>/output:CPU Load ([.0-9]+) (10 min average) ([.0-9]+) (60 min average) ([.0-9]+) (1440 min average) /<br>and push @s, [ load,<br> [ avg1min, GAUGE, $1 ],
<br> [ avg10min, GAUGE, $2 ],<br> [ avg60min, GAUGE, $3 ] ];<br># Service type: unix-smtp<br># output:SMTP OK - 0.187 sec. response time<br>/output:SMTP.*?([-.0-9]+) sec/<br>and push @s, [ smtp,
<br> [ response, GAUGE, $1 ] ];<br><br>and here is the output in nagios web interface <br><ul><li>for ping-->
PING OK - Packet loss = 0%, RTA = 1.09 ms <br></li><li>for dns --> DNS OK: 0.240 seconds response time <a href="http://www.yahoo.com">www.yahoo.com</a> returns
<a href="http://68.142.226.46">68.142.226.46</a>,<a href="http://68.142.226.50">68.142.226.50</a>,<a href="http://68.142.226.54">68.142.226.54</a>,<a href="http://68.142.226.55">68.142.226.55</a>,<a href="http://68.142.226.34">
68.142.226.34</a>,<a href="http://68.142.226.37">68.142.226.37</a>,<a href="http://68.142.226.42">68.142.226.42</a>,<a href="http://68.142.226.43">68.142.226.43</a></li><li>for CPU-Load--> CPU Load 0% (10 min average) 0% (60 min average) 1% (1440 min average)
</li></ul>nagiosgraph.log gives <br><br>Sun Jan 29 18:47:21 2006 INSERT debug: Config logfile:/usr/local/nagios/nagiosgraph/nagiosgraph.log<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrd
<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtool<br>Sun Jan 29 18:47:21 2006 INSERT debug: perfdata: 1138556838\tnlamssv01\tCpu-load\tCPU Load 0% (10 min average) 0% (60 min average) 0% (1440 min average)\t 10 min avg Load=0%;80;95;0;100 60 min avg Load=0%;80;95;0;100 1440 min avg Load=0%;80;95;0;100
<br>Sun Jan 29 18:47:21 2006 INSERT info: Input lastcheck:1138556838\tnlamssv01\tCpu-load\tCPU Load 0% (10 min average) 0% (60 min average) 0% (1440 min average)\t 10 min avg Load=0%;80;95;0;100 60 min avg Load=0%;80;95;0;100 1440 min avg Load=0%;80;95;0;100
<br>Sun Jan 29 18:47:21 2006 INSERT info: Input hostname:<br>Sun Jan 29 18:47:21 2006 INSERT info: Input perfdata:<br>Sun Jan 29 18:47:21 2006 INSERT info: Input servicedescr:<br>Sun Jan 29 18:47:21 2006 INSERT info: Input output:
<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config logfile:/usr/local/nagios/nagiosgraph/nagiosgraph.log<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrd<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map
<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtool<br>Sun Jan 29 18:47:21 2006 INSERT debug: perfdata: 1138556834\tfrparsv03\tPING\tPING OK - Packet loss = 0%, RTA = 166.40 ms\t<br>Sun Jan 29 18:47:21 2006 INSERT info: Input lastcheck:1138556834\tfrparsv03\tPING\tPING OK - Packet loss = 0%, RTA =
166.40 ms\t<br>Sun Jan 29 18:47:21 2006 INSERT info: Input hostname:<br>Sun Jan 29 18:47:21 2006 INSERT info: Input perfdata:<br>Sun Jan 29 18:47:21 2006 INSERT info: Input servicedescr:<br>Sun Jan 29 18:47:21 2006 INSERT info: Input output:
<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config logfile:/usr/local/nagios/nagiosgraph/nagiosgraph.log<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrd<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map
<br>Sun Jan 29 18:47:21 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtool<br>Sun Jan 29 18:47:21 2006 INSERT debug: perfdata: 1138556840\tnlamssv01\tFREE SPACE D\tD:\ - total: 123.24 Gb - used: 80.73 Gb (66%) - free 42.51
Gb (34%)\t D:\ Used Space=80.73Gb;110.92;117.08;0.00;123.24<br>Sun Jan 29 18:47:21 2006 INSERT info: Input lastcheck:1138556840\tnlamssv01\tFREE SPACE D\tD:\ - total: 123.24 Gb - used: 80.73 Gb (66%) - free 42.51 Gb (34%)\t D:\ Used Space=
80.73Gb;110.92;117.08;0.00;123.24<br>un Jan 29 18:48:11 2006 INSERT debug: Config logfile:/usr/local/nagios/nagiosgraph/nagiosgraph.log<br>Sun Jan 29 18:48:11 2006 INSERT debug: Config rrddir:/usr/local/nagios/nagiosgraph/rrd
<br>Sun Jan 29 18:48:11 2006 INSERT debug: Config mapfile:/usr/local/nagios/nagiosgraph/map<br>Sun Jan 29 18:48:11 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtool<br>Sun Jan 29 18:48:11 2006 INSERT debug: perfdata: 1138556885\tusminsv03\tSMTP\tSMTP OK -
0.419 sec. response time\ttime=0.419194s;;;0.000000<br>Sun Jan 29 18:48:11 2006 INSERT info: Input lastcheck:1138556885\tusminsv03\tSMTP\tSMTP OK - 0.419 sec. response time\ttime=0.419194s;;;0.000000<br>Sun Jan 29 18:49:21 2006 INSERT debug: Config rrdtool:/usr/bin/rrdtool
<br>Sun Jan 29 18:49:21 2006 INSERT debug: perfdata: 1138556953\tsacapsv01\tDNS\tDNS OK: 0.617 seconds response time <a href="http://www.yahoo.com">www.yahoo.com</a> returns <a href="http://68.142.226.55">68.142.226.55</a>
,<a href="http://68.142.226.32">68.142.226.32</a>,<a href="http://68.142.226.42">68.142.226.42</a>,<a href="http://68.142.226.45">68.142.226.45</a>,<a href="http://68.142.226.46">68.142.226.46</a>,<a href="http://68.142.226.52">
68.142.226.52</a>,<a href="http://68.142.226.53">68.142.226.53</a>,68.142.226.54\ttime=0.617490s;;;0.000000<br>Sun Jan 29 18:49:21 2006 INSERT info: Input lastcheck:1138556953\tsacapsv01\tDNS\tDNS OK: 0.617 seconds response time
<a href="http://www.yahoo.com">www.yahoo.com</a> returns <a href="http://68.142.226.55">68.142.226.55</a>,<a href="http://68.142.226.32">68.142.226.32</a>,<a href="http://68.142.226.42">68.142.226.42</a>,<a href="http://68.142.226.45">
68.142.226.45</a>,<a href="http://68.142.226.46">68.142.226.46</a>,<a href="http://68.142.226.52">68.142.226.52</a>,<a href="http://68.142.226.53">68.142.226.53</a>,68.142.226.54\ttime=0.617490s;;;0.000000<br><br><br><br>