[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagiosplug-help
Subject:    Re: [Nagiosplug-help] Regex Nagiosgraph
From:       Claudio Kuenzler <ck () claudiokuenzler ! com>
Date:       2012-04-05 9:58:21
Message-ID: CAF-yqgjShwfCt8e4GRRRfESDhfgvyE=Eroa3BdieHVNSE3stJA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


 I insert in nagiosgraph/map the line "/output:SNMP OK - (\d+)/
> and push @s, [Payloadsec, ['data', GAUGE, $1]];"
> 
> At this time I restart nagios.
> My perfdata.log is:
> 1333616266||Abilis||Throughput_5_sec_Tx||SNMP OK -
> 330224||ABILIS-CPX-2-MIB::cxEthDgTxPayload5secThr.eth.4=330224c
> 
> The rrd files aren't created.
> Thanks
> 

does it work for other rrd's ?
if yes what's the map entry for these working ones?

try the perfdata entry which I sent yesterday, it's more unique than
parsing "SNMP - ...."


> 
> 
> ------------------------------
> Date: Thu, 5 Apr 2012 10:36:55 +0200
> 
> From: ck@claudiokuenzler.com
> To: nagiosplug-help@lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] Regex Nagiosgraph
> 
> 
> This is my perfdata.log:
> 
> ----------------------------------------------
> 1333613914||Firenze||PING||PING OK - Packet loss = 0%, RTA = 17.65 ms||
> 1333613923||Abilis||Controllo Usb Cell 2||SNMP OK - no(0)||
> 1333613929||Abilis||PING||PING OK - Packet loss = 0%, RTA = 1.13 ms||
> 1333613929||Abilis0||PING||PING OK - Packet loss = 0%, RTA = 14.14 ms||
> 1333613930||Vtiger||PING||PING OK - Packet loss = 0%, RTA = 3.79 ms||
> 1333613935||Abilis||Stato Cell 3||SNMP OK - disconnected(0)||
> 1333613935||Abilis_Voghera_Sturla||VPN||SNMP OK - up(1)||
> 1333613933||Milano||PING||PING OK - Packet loss = 0%, RTA = 16.45 ms||
> 1333613939||Abilis1||PING||PING OK - Packet loss = 0%, RTA = 14.10 ms||
> 1333613943||Abilis||Stato Cell 2||SNMP OK - disconnected(0)||
> 1333613943||Abilis||Throughput_5_sec_Rx||SNMP OK -
> 199672||ABILIS-CPX-2-MIB::cxEthDgRxPayload5secThr.eth.4=199672c
> 1333613947||Abilis||Uptime||SNMP OK - Timeticks: (855550540) 99 days,
> 0:31:45.40||
> 1333613959||Abilis_Voghera_Sturla||VPN2||SNMP OK - up(1)||
> 1333613965||Abilis_Voghera_Sturla||Throughput_5_min_Tx||SNMP OK -
> 664||ABILIS-CPX-2-MIB::cxEthDgTxPayload5minThr.eth.1=664c
> 1333613967||Abilis||Throughput_5_min_Rx||SNMP OK -
> 596616||ABILIS-CPX-2-MIB::cxEthDgRxPayload5minThr.eth.4=596616c
> --------------------------------------------
> 
> The Regular expressions last email don't work.
> 
> 
> Which regex did you use at the end?
> Please show the relevant entries of your map file.
> Are the RRD files created or not?
> 
> 
> 
> Thank you very much!
> 
> 
> I'm sorry for my english
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------------------------------------------------------
>                 
> Date: Wed, 4 Apr 2012 18:32:23 +0200
> From: ck@claudiokuenzler.com
> To: nagiosplug-help@lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] Regex Nagiosgraph
> 
> 
> You have two possibilities:
> - You parse the output line or
> - You parse the perfdata
> 
> You can't take the output AND the perfdata together in the regex.
> 
> For output:
> 
> /output:SNMP OK - (\d+)/
> and push @s, [Payloadsec,
> ['data', GAUGE, $1]];
> 
> Note that you have to be very careful with this because you probably have
> other checks starting with the output SNMP OK....
> 
> 
> For perfdata (Tx):
> /perfdata:ABILIS-CPX-2-MIB.*TxPayload.*=(\d+).*/
> and push @s, [TxPayloadsec,
> ['data', GAUGE, $1]];
> 
> For perfdata (Rx):
> /perfdata:ABILIS-CPX-2-MIB.*RxPayload.*=(\d+).*/
> and push @s, [RxPayloadsec,
> ['data', GAUGE, $1]];
> 
> For perfdata (both):
> /perfdata:ABILIS-CPX-2-MIB.*Payload.*=(\d+).*/
> and push @s, [Payloadsec,
> ['data', GAUGE, $1]];
> 
> 
> 
> On Wed, Apr 4, 2012 at 5:24 PM, domenico cosentino <grouchoman@hotmail.it>wrote:
> 
> When I submit this check:
> 
> -----------------------------------------------------------------------------------
> /usr/local/nagios/libexec/check_snmp -H 79.xxx.xxx.xxx -C public -m
> /usr/share/snmp/mibs/abilis2.mib -o cxEthDgTxPayload5secThr.eth.1
> 
> -----------------------------------------------------------------------------------
> I receve this response:
> 
> 
> -------------------------------------------------------------------------------------------------------------------------
>  SNMP OK - 4845272 |
> ABILIS-CPX-2-MIB::cxEthDgTxPayload5secThr.eth.1=4845272c
> ------------------------------
> 
> Thanks!
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > > > Please include plugins version (-v) and OS when reporting any issue.
> > > > Messages without supporting info will risk being sent to /dev/null
> 
> 
> 
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to monitoring Big
> Data applications. Try Boundary one-second resolution app monitoring today.
> Free. http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________ Nagiosplug-help mailing
> list Nagiosplug-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please
> include plugins version (-v) and OS when reporting any issue. ::: Messages
> without supporting info will risk being sent to /dev/null
> 
> 
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > > > Please include plugins version (-v) and OS when reporting any issue.
> > > > Messages without supporting info will risk being sent to /dev/null
> 
> 
> 
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to monitoring Big
> Data applications. Try Boundary one-second resolution app monitoring today.
> Free. http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________ Nagiosplug-help mailing
> list Nagiosplug-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please
> include plugins version (-v) and OS when reporting any issue. ::: Messages
> without supporting info will risk being sent to /dev/null
> 
> 
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > > > Please include plugins version (-v) and OS when reporting any issue.
> > > > Messages without supporting info will risk being sent to /dev/null
> 
> 


[Attachment #5 (text/html)]

<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
I insert in nagiosgraph/map the line &quot;<span style="font-size:10pt">/output:SNMP \
OK - (\d+)/</span><div class="im"><div>and push @s, [Payloadsec, [&#39;data&#39;, \
GAUGE, $1]];&quot;</div><div><br></div></div><div>At this time I restart \
nagios.</div> <div>My perfdata.log \
is:</div><div>1333616266||Abilis||Throughput_5_sec_Tx||SNMP OK - \
330224||ABILIS-CPX-2-MIB::cxEthDgTxPayload5secThr.eth.4=330224c</div><div><br></div><div>The \
rrd files aren&#39;t created.</div><div>Thanks</div> \
</div></div></blockquote><div><br>does it work for other rrd&#39;s ?<br>if yes \
what&#39;s the map entry for these working ones?<br><br>try the perfdata entry which \
I sent yesterday, it&#39;s more unique than parsing &quot;SNMP - ....&quot;<br>  \
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px \
solid rgb(204,204,204);padding-left:1ex"><div><div \
dir="ltr"><div><br></div><br><div><div></div><hr>Date: Thu, 5 Apr 2012 10:36:55 \
+0200<div> <div></div><div class="h5"><br>From: <a \
href="mailto:ck@claudiokuenzler.com" \
target="_blank">ck@claudiokuenzler.com</a><br>To: <a \
href="mailto:nagiosplug-help@lists.sourceforge.net" \
                target="_blank">nagiosplug-help@lists.sourceforge.net</a><br>
Subject: Re: [Nagiosplug-help] Regex Nagiosgraph<br><br><br><div><blockquote \
style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
This is my perfdata.log:<div><br><div>----------------------------------------------</div><div><div>1333613914||Firenze||PING||PING \
OK - Packet loss = 0%, RTA = 17.65 ms||</div><div>1333613923||Abilis||Controllo Usb \
Cell 2||SNMP OK - no(0)||</div>

<div>1333613929||Abilis||PING||PING OK - Packet loss = 0%, RTA = 1.13 \
ms||</div><div>1333613929||Abilis0||PING||PING OK - Packet loss = 0%, RTA = 14.14 \
ms||</div><div>1333613930||Vtiger||PING||PING OK - Packet loss = 0%, RTA = 3.79 \
ms||</div>

<div>1333613935||Abilis||Stato Cell 3||SNMP OK - \
disconnected(0)||</div><div>1333613935||Abilis_Voghera_Sturla||VPN||SNMP OK - \
up(1)||</div><div>1333613933||Milano||PING||PING OK - Packet loss = 0%, RTA = 16.45 \
ms||</div>

<div>1333613939||Abilis1||PING||PING OK - Packet loss = 0%, RTA = 14.10 \
ms||</div><div>1333613943||Abilis||Stato Cell 2||SNMP OK - \
disconnected(0)||</div><div>1333613943||Abilis||Throughput_5_sec_Rx||SNMP OK - \
199672||ABILIS-CPX-2-MIB::cxEthDgRxPayload5secThr.eth.4=199672c</div>

<div>1333613947||Abilis||Uptime||SNMP OK - Timeticks: (855550540) 99 days, \
0:31:45.40||</div><div>1333613959||Abilis_Voghera_Sturla||VPN2||SNMP OK - \
up(1)||</div><div>1333613965||Abilis_Voghera_Sturla||Throughput_5_min_Tx||SNMP OK - \
664||ABILIS-CPX-2-MIB::cxEthDgTxPayload5minThr.eth.1=664c</div>

<div>1333613967||Abilis||Throughput_5_min_Rx||SNMP OK - \
596616||ABILIS-CPX-2-MIB::cxEthDgRxPayload5minThr.eth.4=596616c</div>--------------------------------------------</div><div><br></div><div>The \
Regular expressions last email don&#39;t work.</div>

</div></div></div></blockquote><div><br>Which regex did you use at the end?<br>Please \
show the relevant entries of your map file.<br>Are the RRD files created or \
not?<br><br> </div><blockquote style="padding-left:1ex"> <div><div \
dir="ltr"><div><div>Thank you very much! \
<br></div></div></div></div></blockquote><blockquote \
style="padding-left:1ex"><div><div dir="ltr"> <div><div><br></div><div>I&#39;m sorry \
for my english</div><div><br></div><div><br></div><div><br></div><div><br></div><div>< \
br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>


<div><br></div><div><br></div><div><br></div><div>------------------------------------ \
------------------------------------------------------------------------------------------</div><div><div>Date: \
Wed, 4 Apr 2012 18:32:23 +0200<br>

From: <a href="mailto:ck@claudiokuenzler.com" \
target="_blank">ck@claudiokuenzler.com</a><br>To: <a \
href="mailto:nagiosplug-help@lists.sourceforge.net" \
target="_blank">nagiosplug-help@lists.sourceforge.net</a><br>Subject: Re: \
[Nagiosplug-help] Regex Nagiosgraph<div>

<div></div><div><br><br>You have two possibilities:<br>- You parse the output line \
or<br>- You parse the perfdata<br><br>You can&#39;t take the output AND the perfdata \
together in the regex.<br><br>For output:<br> <br style="font-family:courier \
new,monospace"> <span style="font-family:courier new,monospace">/output:SNMP OK - \
(\d+)/</span><br style="font-family:courier new,monospace"><span \
style="font-family:courier new,monospace">and push @s, [Payloadsec,</span><br \
style="font-family:courier new,monospace">


<span style="font-family:courier new,monospace">[&#39;data&#39;, GAUGE, \
$1]];</span><br><br>Note that you have to be very careful with this because you \
probably have other checks starting with the output SNMP OK....<br><br>


<br>For perfdata (Tx):<br><span style="font-family:courier \
new,monospace">/perfdata:ABILIS-CPX-2-MIB.*TxPayload.*=(\d+).*/</span><br \
style="font-family:courier new,monospace"><span style="font-family:courier \
new,monospace">and push @s, [TxPayloadsec,</span><br style="font-family:courier \
new,monospace">


<span style="font-family:courier new,monospace">
[&#39;data&#39;, GAUGE, $1]];</span><br><br>For perfdata (Rx):<br><span \
style="font-family:courier \
new,monospace">/perfdata:ABILIS-CPX-2-MIB.*RxPayload.*=(\d+).*/</span><br \
style="font-family:courier new,monospace"><span style="font-family:courier \
new,monospace">and push @s, [RxPayloadsec,</span><br style="font-family:courier \
new,monospace">


<span style="font-family:courier new,monospace">
[&#39;data&#39;, GAUGE, $1]];</span><br><br>For perfdata (both):<br><span \
style="font-family:courier \
new,monospace">/perfdata:ABILIS-CPX-2-MIB.*Payload.*=(\d+).*/</span><br \
style="font-family:courier new,monospace"><span style="font-family:courier \
new,monospace">and push @s, [Payloadsec,</span><br style="font-family:courier \
new,monospace">


<span style="font-family:courier new,monospace">
[&#39;data&#39;, GAUGE, $1]];</span><br><br><br><br><div>On Wed, Apr 4, 2012 at 5:24 \
PM, domenico cosentino <span dir="ltr">&lt;<a href="mailto:grouchoman@hotmail.it" \
target="_blank">grouchoman@hotmail.it</a>&gt;</span> wrote:<br>


<blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
When I submit this check:<br><div>-----------------------------------------------------------------------------------</div><div>/usr/local/nagios/libexec/check_snmp \
-H 79.xxx.xxx.xxx -C public -m /usr/share/snmp/mibs/abilis2.mib -o \
cxEthDgTxPayload5secThr.eth.1</div>


<div>-----------------------------------------------------------------------------------</div><div>I \
receve this response:</div><div><br></div><div>--------------------------------------- \
----------------------------------------------------------------------------------</div>



<div>SNMP OK - 4845272 | \
ABILIS-CPX-2-MIB::cxEthDgTxPayload5secThr.eth.1=4845272c</div><div><div></div><hr><br>Thanks!</div><div><br></div><div><br></div> \
</div></div> <br>------------------------------------------------------------------------------<br>
 Better than sec? Nothing is better than sec when it comes to<br>
monitoring Big Data applications. Try Boundary one-second<br>
resolution app monitoring today. Free.<br>
<a href="http://p.sf.net/sfu/Boundary-dev2dev" \
target="_blank">http://p.sf.net/sfu/Boundary-dev2dev</a><br>_______________________________________________<br>
 Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" \
target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br> \
::: Please include plugins version (-v) and OS when reporting any issue.<br> ::: \
Messages without supporting info will risk being sent to /dev/null<br> \
<br></blockquote></div><br> \
<br>------------------------------------------------------------------------------ \
Better than sec? Nothing is better than sec when it comes to monitoring Big Data \
applications. Try Boundary one-second  resolution app monitoring today. Free.
<a href="http://p.sf.net/sfu/Boundary-dev2dev" \
target="_blank">http://p.sf.net/sfu/Boundary-dev2dev</a><br>_______________________________________________
 Nagiosplug-help mailing list
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" \
target="_blank">Nagiosplug-help@lists.sourceforge.net</a> <a \
href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a> ::: \
Please include plugins version (-v) and OS when reporting any issue.  ::: Messages \
without supporting info will risk being sent to \
/dev/null</div></div></div></div></div> 		 	   		  </div></div> \
<br>------------------------------------------------------------------------------<br>
 Better than sec? Nothing is better than sec when it comes to<br>
monitoring Big Data applications. Try Boundary one-second<br>
resolution app monitoring today. Free.<br>
<a href="http://p.sf.net/sfu/Boundary-dev2dev" \
target="_blank">http://p.sf.net/sfu/Boundary-dev2dev</a><br>_______________________________________________<br>
 Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" \
target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br> \
::: Please include plugins version (-v) and OS when reporting any issue.<br> ::: \
Messages without supporting info will risk being sent to /dev/null<br> \
<br></blockquote></div><br> \
<br>------------------------------------------------------------------------------ \
Better than sec? Nothing is better than sec when it comes to monitoring Big Data \
applications. Try Boundary one-second  resolution app monitoring today. Free.
<a href="http://p.sf.net/sfu/Boundary-dev2dev" \
target="_blank">http://p.sf.net/sfu/Boundary-dev2dev</a><br>_______________________________________________
 Nagiosplug-help mailing list
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" \
target="_blank">Nagiosplug-help@lists.sourceforge.net</a> <a \
href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a> ::: \
Please include plugins version (-v) and OS when reporting any issue.  ::: Messages \
without supporting info will risk being sent to /dev/null</div></div></div> 		 	   		 \
</div></div> <br>------------------------------------------------------------------------------<br>
 Better than sec? Nothing is better than sec when it comes to<br>
monitoring Big Data applications. Try Boundary one-second<br>
resolution app monitoring today. Free.<br>
<a href="http://p.sf.net/sfu/Boundary-dev2dev" \
target="_blank">http://p.sf.net/sfu/Boundary-dev2dev</a><br>_______________________________________________<br>
 Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br> \
::: Please include plugins version (-v) and OS when reporting any issue.<br> ::: \
Messages without supporting info will risk being sent to /dev/null<br> \
<br></blockquote></div><br>



------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev

_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic