nagiosgraph with check_memory plugin

Larry Naves lnaves at asc.edu
Mon Mar 21 17:53:54 CET 2005


I am not using check_memory anywhere currently but this is close to what it
should be (keyword is close). You may have to edit my regular expression
some.

# Service type: memory
#   output:Physical Memory WARNING: Total: 319.96 MB - Used: 295.67 MB (92%)
- Free:24.12 MB (8%)Swap Memory OK: Total: 1124.54 MB - Used: 0.84 MB (0%) -
Free: 1123.70 MB
(100%)
#   perfdata:
/perfdata:rta=([.0-9]+)ms;.*pl=(\d+)%;/
/output:.*Total: ([.0-9]+) MB.*Used: ([.0-9]+).*Free:([.0-9]+) MB.*Swap
Memory OK: Total: ([.0-9]+) MB.*Free: ([.0-9]+) MB;/
and push @s, [ memory,
               [ total,   GAUGE, $1 ],
               [ total_used,   GAUGE, $2 ],
               [ total_free,   GAUGE, $3 ],
               [ swap,   GAUGE, $4 ],
               [ swap_free,   GAUGE, $5 ]]; 


Larry Wayne Naves, Jr. "Jay"
Systems Analyst
Computer Sciences Corporation /
Alabama Supercomputer Authority 
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Tharanga
Sent: Monday, March 21, 2005 2:10 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] nagiosgraph with check_memory plugin

Hi all ,

i need to get the graph for check_memory plugin. i dont know how to add the
entry in map  file. can some pls help me..
this is my plugin
./check_memory --type=physical -w 10 -c 5 out put is like this Physical
Memory WARNING: Total: 319.96 MB - Used: 295.67 MB (92%) - Free:
24.12 MB (8%)

Swap Memory OK: Total: 1124.54 MB - Used: 0.84 MB (0%) - Free: 1123.70 MB
(100%)



thnaks in advance
--Tharanga--




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest & candid reviews
on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005
 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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