nagiosgraph for paging file

Assaf Flatto assaf.flatto at ssp-intl.com
Thu Apr 9 16:09:48 CEST 2009


Jim 

Thanks for the advise , i will try it .

My confusion is that i am able to get graphs from the check_nt for other checks :
# Service type: ntdisk
#   check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90
#   output: L: - total: 200.00 Gb - used: 188.43 Gb (94%) - free 11.56 Gb (6%)
#   perfdata: L:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87
/perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/
 and push @s, [ ntdisk,
        [ diskused, GAUGE, $1*1024**3 ],
        [ diskwarn, GAUGE, $2*1024**3 ],
        [ diskcrit, GAUGE, $3*1024**3 ],
        [ diskmaxi, GAUGE, $5*1024**3 ] ];
works and i have the graphs  and also :

# Service type: ntmem
 #   check command: check_nt -H Address -v MEMUSE -w 50 -c 90
 #   output: Memory usage: total:2467.75 Mb - used: 510.38 Mb (21%) - free: 1957.37 Mb (79%)
 #   perfdata: Memory usage=510.38Mb;1233.88;2220.98;0.00;2467.75
 /perfdata:.*usage=([.0-9]+)Mb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/
 and push @s, [ ntmem,
        [ memused, GAUGE, $1*1024**2 ],
        [ memwarn, GAUGE, $2*1024**2 ],
        [ memcrit, GAUGE, $3*1024**2 ],
        [ memmmax, GAUGE, $5*1024**2 ] ];

works.

I tried to use the same mechanism and a similar regex , but still it fails .

Assaf
On Thursday 09 April 2009 13:56:13 Jim Avery wrote:
> 2009/4/9 Assaf Flatto <assaf.flatto at ssp-intl.com>:
> > 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;
> >
> >
> > Can anyone help me understand where my mistake is ?
> >
> > Thank You
>
> The normal version of check_nt doesn't do performance data very well.
> You might be better off querying the NSClient++ agent using check_nrpe
> rather than check_nt.
>
> Alternatively I guess you could try the enhanced version of check_nt
> which comes with nc_net.  See
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1663.html;d=1
>
> hth,
>
> Jim



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
 
 

------------------------------------------------------------------------------
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