CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions:
NagiosGraph

 



asegaitz
New User

Feb 13, 2007, 3:15 AM

Post #1 of 1 (2091 views)
NagiosGraph Can't Post

Hi everybody!!

I am new on this language, but i need for doing a script in perl which have to monitor oracle tablespaces used space with NagiosGraph. I`ve done a script for nagios which do this output :ESTADO DE TABLESPACES-->CRITICAL: :/SYSAUX 100% :/SYSTEM 99% :/USERS 99% WARNING: OK: :/EXAMPLE 68% :/TS_PRUEBAJAH 13% :/UNDOTBS1 10%

What I want is to monitor this with nagiosgraph. I`ve done this in perl:

/output:.*CRITICAL:.*/ and do{
my @_pct =/:\/(\S+) (\d+)%/g;
while ( my($_d,$_b,$_i) = splice @_pct,0,2 ) {
my @_s;
/perfdata:.*$_d=(\d+);(\d+)/;
push @s, [ TABLESPACES,
[ portzentaia, GAUGE, $_b ]];
}
};

In this case only appears the graph of the first tablespace, and we want the average of all ones.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives