Graphing service checks

Arno Lehmann al at its-lehmann.de
Thu Feb 2 20:12:27 CET 2006


Hello,

On 2/2/2006 5:47 PM, Rusty Hall wrote:
> 
>     I have some data that im trying to graph from nagios , but can't 
> seem to get it to work.  I have 2 that are giving me an issue, one is an 
> old file for graphing disk on windows server.  The graph shows nothing 
> as far as the data, but an rrd file has been cretaed.

Without even knowing which addon you use for graphing:

> first one
>  
> ntdisk_C
> data
>     C:\ - total: 3.95 Gb - used: 3.33 Gb (84%) - free 0.62 Gb (16%) 
> map file entry
>  
> /perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/

Asuming this should be a RE which is matched against the plugin output - 
in this case, especially the performance data - you should also give an 
example performance data line.

Though it might be sufficient to remove the leading dots in the 
sub-expressions. I simply can't imagine that every disk space entry in 
the performance data line starts with a decimal point. Better, though, 
would be to use expressions that actually match normal decimal numbers, 
like '([0-9]+\.?[0-9]*)' or something.

> and push @s, [ ntdisk,
> [ diskused, GAUGE, $1*1024**3 ],
> [ diskwarn, GAUGE, $2*1024**3 ],
> [ diskcrit, GAUGE, $3*1024**3 ],
> [ diskmaxi, GAUGE, $5*1024**3 ] ];
>  
>  
> second one
> This one has never worked or created a rrd file, trying to map the count 
> with memory
>  
> data
> CRITICAL - no processes found resembling 
> 'hciengine.exe'-count=27:memory=673676 
>  
> map file entry
> /output;*count=(\d+);memory=([.0-9]+)Mb;/

Sure. Your RE uses a ; as a separator while your service output has a : 
and think about the decimal number matching subexpression...

> and push @s, [ QDX,
> [ threadcount, GAUGE, $1*       ],
> [ memorycount, GAUGE, $5*1024**3 ] ]
>  
>     Any help or guidance would be greatly appreciated

Obviously the product you use is badly documented (wouldn't be the first 
program...) or you need more experience with REs (and I know what I'm 
talking about, I'm always struggling with them!).

Arno


Arno

> Rusty
>  

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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