nagiosgraph for paging file
Morris, Patrick
patrick.morris at hp.com
Thu Apr 9 18:14:19 CEST 2009
> -----Original Message-----
> From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com]
> Sent: Thursday, April 09, 2009 2:49 AM
> To: Nagios User list
> Subject: [Nagios-users] nagiosgraph for paging file
>
> Hello
>
> I've been using nagiosgraph for a while , and i am slowly adding new
> graphs to the nagios , now i am
> trying to add a graph for our windows based machines , to show the Page
> file use ,
>
> this is what i have now now in my map file :
> # Service type: ntcount
> # check command: check_nt -H $HOSTADDRESS$ -t 20 -p 1248 -v COUNTER -
> l $ARG1$ -w $ARG2$ -c $ARG3$
> # output: Paging file usage is 53.07 %
> # perfdata:Paging file usage is %.2f
> %%=1.899340%;35.000000;90.000000;
> #/prefdata:Paging file usage is.*=([.0-9]+)%;([.0-9]+);([.0-9]+)/
> /output:Paging file usage is (\d+)%/
> and push @s, [ pagecounter,
> [ pageused , GAUGE, $1 ],
> # [ pagewarn , GAUGE, $2 ],
> # [ pagecrit , GAUGE, $3 ],
> ];
>
> As you can see i tried the prefdata , and output options but with no
> success .
>
>
> >From the nagiosgrapg.log :
>
> Thu Apr 9 10:51:38 2009 insert.pl debug - processdata data = [
> '1239270667',
> 'Host',
> 'Page file use',
> 'Paging file usage is 1.90 %',
> 'Paging file usage is %.2f %%=1.897430%;35.000000;90.000000;
> '
> ];
> Thu Apr 9 10:51:38 2009 insert.pl warn - perfdata not recognized:
> date||host||desc||out||data for:
> servicedescr:Page file use
> output:Paging file usage is 1.90 %
> perfdata:Paging file usage is %.2f %%=1.897430%;35.000000;90.000000;
[> ]
"/output:Paging file usage is (\d+)%/" will not match against "Paging file usage is 1.90 %" because a space is not a number.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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