<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The output for one query would be:<br>
<br>
PROCS OK: 11 processes with args 'apache'<br></blockquote><div><br></div><div>Well first of all you'd have to make sure that nagiosgraph also takes the output in account. </div><div>It's always better to do that with perfdata...</div>
<div><br></div><div>You have the choice to also take the output as source to parse, although I strongly recommend to use perfdata. That's what it is for.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What would the map rule look like that would do the following?<br>
<br>
1. Begin with "PROCS OK:"<br>
2. End with "args 'apache'"<br>
3. Extract only the numeric value before the word processes? </blockquote><div><br></div><div><div>The regex would look something like this:</div></div><div><br></div><div>/output:PROCS.*:(\d+) processes.*/ </div><div><br>
</div><div>assuming that you don't care about the args and the status (OK, WARNING, CRITICAL) part. </div><div>Only the digit (11) would be taken out of the output in this case.</div></div>