[Nagiosplug-help] Re: Nagiosplug-help digest, Vol 1 #663 - 3 msgs

John Judge john.judge at carat.com
Tue Jan 25 07:40:02 CET 2005


Hello John,

I tried your syntax and reloaded Nagios, but faced with the same errors. I 
will play around with the syntax some more.  Let me know if you can think 
of anything else to try.

Thanks for your help.





nagiosplug-help-request at lists.sourceforge.net 
Sent by: nagiosplug-help-admin at lists.sourceforge.net
01/21/2005 11:09 PM
Please respond to
nagiosplug-help at lists.sourceforge.net


To
nagiosplug-help at lists.sourceforge.net
cc

Subject
Nagiosplug-help digest, Vol 1 #663 - 3 msgs






Send Nagiosplug-help mailing list submissions to
                 nagiosplug-help at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
                 
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
or, via email, send a message with subject or body 'help' to
                 nagiosplug-help-request at lists.sourceforge.net

You can reach the person managing the list at
                 nagiosplug-help-admin at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Nagiosplug-help digest..."


Today's Topics:

   1. NC_Net - Event Log Checks Now Implemented (Anthony Montibello)
   2. Check_iftraffic.pl Help (John Judge)
   3. Re: Check_iftraffic.pl Help (John R. Tomawski)

--__--__--

Message: 1
Date: Fri, 21 Jan 2005 06:24:40 -0500
From: Anthony Montibello <amontibello at gmail.com>
Reply-To: Anthony Montibello <amontibello at gmail.com>
To: nagios-users at lists.sourceforge.net, 
nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] NC_Net - Event Log Checks Now Implemented

Hi Everyone,

I see several of you have downloaded NC_Net (the drop in replacement
for ns_client),  I hope that it has been for the most part Trouble
free.

The new version is now available for downloading. v1.07 This version
includes the ability to Check Event Logs. However, to report the
results to nagios a new version of Check_nt needs to  have this option
added.  I started working on it, and I am planning on submitting my
code to the developers very soon.  But, it can still be tested using
the test console.

You can Download it from Either the official web site 
www.shatterit.com/NC_Net
or from http://www.nagiosexchange.org/

The syntax for what to check will be a comma separated string. 
check_nt -H XYZ -v EVENTLOG  -l 
"ARG1,ARG2,ARG3,ARGList4,ARGLIST5,ARGLIST6"
Base Arguments to start the List.
1) checks any single event log or all event logs. 
- it can check custom Event logs
- instead of typing the event log name type 'any' for all logs
2)Checks for a single event type or all event types
- it can check all types by entering 'any'
- it should be able to test custom event log types (if these can be 
created?)
3) time interval in min
- enter a 0 for check all events in Logs.
- default is 10 min.

Additional Filters.
- the additional filters take the form of a comma separated list
- the first element(required for each filter) is the number of strings
in the list
- 0 is to ignore the filter.
- positive number is to include only entries that match the filter
- negative number is to exclude all entries that match the filter
4) Source type
- list of Source types to use as a filter
5) Message filter
- this filter list accepts regular expressions 
-(NON STANDARD) DOT NET  Regular expressions options - ignore padded
whitespace and treat ^ and $ to function on lines (inside a string
variable via \n )instead of meaning beginning and end of the string
variable.
6) event ID
- list of Event ID to look for or exclude.

for example to check any log for Information type, within the past 45
min for anything that started or stopped you should be able to use the
command:
./check_nt -H XYZ  -v EVENTLOG -l "any,Information,45,0,1,(start|stop),0
The following should give the same result:
./check_nt -H XYZ  -v EVENTLOG -l "any,Information,45,0,2,start,stop,0
(better examples will be posted on web site after a new version of 
check_nt)
The result should be critical if an event occurred in the time
interval,  and a list of event ID with the with the message field of
the last event that was written to the event log.

NOTE: NC_Net is also in the process of being upgraded to do Passive
checks via NSCA.  Currently a C# class for the send_nsca client has
been completed and tested.


--__--__--

Message: 2
To: "plug-help, nagios" <nagiosplug-help at lists.sourceforge.net>
From: John Judge <john.judge at carat.com>
Date: Fri, 21 Jan 2005 11:12:30 -0500
Subject: [Nagiosplug-help] Check_iftraffic.pl Help

This is a multipart message in MIME format.
--=_alternative 005908E085256F90_=
Content-Type: text/plain; charset="US-ASCII"

Having an issue with the check_iftraffic.pl plug-in and I'm not sure what 
to try.  Researched the issue a bit, but no luck.  I ran the command from 
the CLI, it pauses, and then no error.  Nagios is showing an Error 127 
(Out of Bounds) or sometimes "No Output".

./check_iftraffic.pl -H 192.168.1.1 -C 12884rt76 -i if_descr -b 3 -u m [ 
-w 85 ] [ -c 98 ]

I'm defining the check_iftraffic.pl in checkcommands.cfg:

# 'check_iftraffic' command

define command{
        command_name    check_iftraffic.pl
        command_line    $USER1$/check_iftraffic.pl -H $HOSTADDRESS$ -C 
&USER5$ -i Serial -b 3 -u m [ -w 80 ] [ -c 98 ]
        }

I'm defining the community string in resource.cfg:

$USER5$ = 12884rt76

Any ideas?  Thanks for the assistance.
--=_alternative 005908E085256F90_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Having an issue with the 
check_iftraffic.pl
plug-in and I'm not sure what to try.  Researched the issue a bit,
but no luck.  I ran the command from the CLI, it pauses, and then
no error.  Nagios is showing an Error 127 (Out of Bounds) or 
sometimes
"No Output".</font>
<br>
<br><font size=2 face="sans-serif">./check_iftraffic.pl -H 192.168.1.1
-C 12884rt76 -i if_descr -b 3 -u m [ -w 85 ] [ -c 98 ]</font>
<br>
<br><font size=2 face="sans-serif">I'm defining the check_iftraffic.pl
in checkcommands.cfg:</font>
<br>
<br><font size=2 face="sans-serif"># 'check_iftraffic' command</font>
<br>
<br><font size=2 face="sans-serif">define command{</font>
<br><font size=2 face="sans-serif">        
command_name
   check_iftraffic.pl</font>
<br><font size=2 face="sans-serif">        
command_line
   $USER1$/check_iftraffic.pl -H $HOSTADDRESS$ -C &USER5$
-i Serial -b 3 -u m [ -w 80 ] [ -c 98 ]</font>
<br><font size=2 face="sans-serif">        }</font>
<br>
<br><font size=2 face="sans-serif">I'm defining the community string in
resource.cfg:</font>
<br>
<br><font size=2 face="sans-serif">$USER5$ = 12884rt76</font>
<br>
<br><font size=2 face="sans-serif">Any ideas?  Thanks for the 
assistance.</font>
--=_alternative 005908E085256F90_=--


--__--__--

Message: 3
Subject: Re: [Nagiosplug-help] Check_iftraffic.pl Help
From: "John R. Tomawski" <jtomawski at ibigroup.com>
Reply-To: jtomawski at ibigroup.com
To: nagiosplug-help at lists.sourceforge.net
Organization: IBI Group
Date: Fri, 21 Jan 2005 11:38:32 -0500


--=-43EH4QKOVJPfXH3Eo+bW
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

./check_iftraffic.pl -H 192.168.1.1 -C 12884rt76 -i if_descr -b 3 -u m
[ -w 85 ] [ -c 98 ]

Shouldn't this be;
./check_iftraffic.pl -H 192.168.1.1 -C 12884rt76 -i if_descr -b 3 -u m
-w 85 -c 98 
Namely the -w 85 -c 98 being this way...

Thanks,
John R. Tomawski
Network Administrator

--=-43EH4QKOVJPfXH3Eo+bW
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.2">
</HEAD>
<BODY>
<FONT SIZE="2">./check_iftraffic.pl -H 192.168.1.1 -C 12884rt76 -i 
if_descr -b 3 -u m [ -w 85 ] [ -c 98 ]</FONT><BR>
<BR>
Shouldn't this be;<BR>
<FONT SIZE="2">./check_iftraffic.pl -H 192.168.1.1 -C 12884rt76 -i 
if_descr -b 3 -u m -w 85 -c 98 </FONT><BR>
Namely the -w 85 -c 98 being this way...<BR>
<BR>
Thanks,<BR>
John R. Tomawski<BR>
Network Administrator
</BODY>
</HTML>

--=-43EH4QKOVJPfXH3Eo+bW--




--__--__--

_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help


End of Nagiosplug-help Digest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20050125/514b2645/attachment.html>


More information about the Help mailing list