Re: [Nagios-users] check_snmp_int.pl regex problems

2007-06-26 Thread Dan Eriksson
Hi Jason,

According to this,
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg02698.html

It seems like you need to put single quotes instead of double quotes like,
as you want to match on "Intel(R) PRO/1000 MT Network Connection" and only this.

Then I guess your check_command should look something like:

/check_command check_snmp_int!'PRO/1000 MT Network Connection$'

Hope this helps,

Best regards,
Dan

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Jason Woodward
Skickat: den 26 juni 2007 16:08
Till: nagios-users@lists.sourceforge.net
Ämne: [Nagios-users] check_snmp_int.pl regex problems

I have 2 interfaces:

Intel(R) PRO/1000 MT Network Connection
Intel(R) PRO/1000 MT Network Connection #2


I need to filter out " Intel(R) PRO/1000 MT Network Connection #2" . The 
following are some of the commands I have tried.

/check_command check_snmp_int!""
MS TCP Loopback interface:UP, Intel(R) PRO/1000 MT Network Connection 
#2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/

this cuts out anything that matches MT, so I know that if I cut out any 
interface with #, I will get what I want
/check_command check_snmp_int!"^[MT]"
MS TCP Loopback interface:UP:1 UP: OK/

But # doesn't work...
/check_command check_snmp_int!"^[#]"
ERROR : Unknown interface ^[#]/

maybe if I cut out any interface with 2 in it?
/check_command check_snmp_int!"^[2]"
ERROR : Unknown interface ^[2]/

this doesn't cut out anything that matches Intel, I assume something to 
do with the /
/check_command check_snmp_int!"^[Intel]"
Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT 
Network Connection:UP: 1 int NOK : CRITICAL/

I can isolate "Intel(R) PRO/1000 MT Network Connection #2"
/check_command check_snmp_int!"#2"
Intel(R) PRO/1000 MT Network Connection #2:DOWN: 1 int NOK : CRITICAL/

/check_command check_snmp_int!"Intel(R) PRO/1000 MT Network Connection"
ERROR : Unknown interface Intel(R) PRO/1000 MT Network Connection/

/check_command check_snmp_int!"1000 MT Network Connection"
Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT 
Network Connection:UP: 1 int NOK : CRITICAL /


I can use "^Intel" to get Intel at the beginning
/check_command check_snmp_int!"^Intel"
Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT 
Network Connection:UP: 1 int NOK : CRITICAL/

Since ^ works, I figured $ would work as well. $ does not seem to work 
to match at the end, and it returns with 2 $?
/check_command check_snmp_int!"Connection$"
ERROR : Unknown interface Connection$$/

\Z does not work
/check_command check_snmp_int!"Connection\Z"
ERROR : Unknown interface Connection\Z/


I am at a loss for what to do. There seems to be an issue with #, and $. 
Anyone have a solution to this? I have 15 servers with this issue. 
Thanks in advance,

Jason Woodward


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Monitoring Large hard disk partition

2007-12-03 Thread Dan Eriksson
Hi Mahesh,

How does your check_nt command look like?

Have you defined it with the proper variables?

 

I don't know how you have defined it but it should look something like
this,

 

Check_nt $ARG1$ $ARG2$ ... 

 

Have you tried running the command from your shell?

 

If you want to learn more about macros etc in your commands this is a
good page,

http://nagios.sourceforge.net/docs/2_0/macros.html

 

Best regards,

--
Dan





From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mahesh
Vernekar
Sent: Monday, December 03, 2007 9:21 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Monitoring Large hard disk partition

 

Hi,
 
I have installed and Configured Nagios 3.0b7
 
I am getting following error, for monitoring a large capacity Hard disk
partition
Usage:check_nt -H host -v variable [-p port] [-w warning] [-c
critical][-l params] [-d SHOWALL] [-t timeout] 
 
The hard disk partition size is 683GB and the Drive letter is F:
I did following settings for the hard disk in windows.cfg file
 
define service[
  usegeneric_service
  host_name  guru
  service_description   F:\ Drive Space
  check_command  check_nt!USEDDISKSPACE!-l f -w 80 -f 90
  ]
 
This same settings work for other partitions that are of small capacity
(about 80GB). 
 
Can you helpd me solving this problem.
 
 
 
Regards
 
Mahesh Vernekar
ClearPoint Learning Systems
Pune, India

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] FW: FW: SMS issue Nagios 3.0

2008-04-22 Thread Dan Eriksson
Hi Henrik,
I can recommend using the script located at this page:

http://www.waggy.at/nagios/capture_plugin.htm

It helps you to capture the output from the script you are trying to
run, and will hopefully help you to figure out what is causing the
problem.
There are good configuration examples on the page as well.

Best regards,

Dan


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Henrik Schou
> Sent: Tuesday, April 22, 2008 5:52 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] FW: FW: SMS issue Nagios 3.0
> 
> Now I can send SMS' as the nagios user from the command line to my
mobile,
> using sendsms xx test.
> 
> If I try to send using the command: /usr/local/bin/sendsms $PAGER$
"Nagios:
> Service $SERVICEDESC$ on $HOSTALIAS$ is in state: $SERVICESTATE$"
> 
> Nothing happens, the command doesn't create an error, so I guess it
might be
> my contacts.cfg's $PAGER$ which are causing my problem now??



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Nagios-users mailing list
Nagios-users@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