I give up ....

Giles Coochey GilesC at CarmenMedia.com
Mon Nov 13 15:55:15 CET 2006


> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net 
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf 
> Of Danilo
> Sent: 13 November 2006 15:46
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] I give up ....
> 
> 
> Ok, I am not (really not) a Perl Expert. I am simply trying 
> to get out some values from ngraph.log to display free space 
> on a windows server ...
> 
> 
> This is the line that nagios gives me.
> 
> PIPE: DB2   DISCO_D Disk ok - 25.33G (31%) free on \\10.1.1.8\d
> 
> 
> My check script in nagios_grapher is
> 
> 
> define ngraph {
>         service_name DISCO
>         graph_perf_regex [0-9]*\.[0-9]*G
>         graph_value disk_free
>         graph_units Bytes
>         graph_legend spazio libero %
>         rrd_plottype AREA
>         rrd_color 00a000
>         hide yes
> }
> 
> 

Try something like:

define ngraph{
        service_name            DiskFree
        graph_log_regex         t=- (\d+\.\d+)G
        graph_value             df
        graph_units             Gigabytes
        graph_legend            Gigabytes
        graph_legent_eol        left
        graph_legend_max        100

        rrd_plottype            LINE1
        rrd_color               00a000
}

define ngraph{
        service_name            DiskFree
        type                    CDEF
        graph_value             cdef_df
        graph_units
        graph_legend
        graph_calc              df
        rrd_plottype            LINE1
        rrd_color               00a000
        hide                    no
} 

> 
> can somebody help me telling the right way to write a valid 
> and fully functional regex to be able to catch the value 
> (25.33G in this case)
> 
> 
> Thanks a lot .....
> 
> 
> a coffee cup payed :-)))))
> 
> Danilo
> 
> 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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