Re: [Nagios-users] check_snmp_storage.pl returns Put snmp login info!

2008-01-19 Thread Tom Throckmorton
On Jan 18 18:44, Tom Throckmorton wrote:
 ...you have an unnecessary trailing '!' on the check_command, which I think
 will be silently ignored, based on your command_line def), but I can't recall
 whether or not spaces in the ARGn macros are legal (I think not, but the docs
 don't specify and I haven't tested).

Just to follow up, I did test, and they're legal, so you can ignore my previous
post about adjusting the format of your command defs.

-tt

-- 
Tom Throckmorton
OIT - CSI
Duke University

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] check_snmp_storage.pl returns Put snmp login info!

2008-01-18 Thread Tom Throckmorton
On 01/18/2008 04:24 PM, Bret Goodfellow wrote:
 I have the snmpd running on a client box.  I have nagois monitoring this
 box without any issues.  I decided to implement a new plugin I found,
 check_snmp_storage.pl.  From the nagios server I can issue this
 command to the client box, and I get a valid response, e.g.
  
  ...
 My command is defined as:
  
 define command{
 command_namecheck_snmp_storage
 command_line$USER$/check_snmp_storage.pl -H $HOSTADDRESS$ $ARG1$

$USER$ won't get you much, I don't think.  Maybe you meant $USER1$ ?

-tt

-- 
Tom Throckmorton
OIT - CSI
Duke University

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] check_snmp_storage.pl returns Put snmp login info!

2008-01-18 Thread Tom Throckmorton
On 01/18/2008 05:39 PM, Bret Goodfellow wrote:
 Here's what I get:
 ./check_snmp_storage.pl -H somehost -C community -m /tmp -w 95 -c 98 -f
 -v
 Alarm at 15
 SNMP v1 login
 Filter : /tmp
  .
  .
  .
 /tmp: 6%used(221MB/3937MB) (95%) : OK

Reading the check_snmp_storage code again, I see that you'll get that error if
you haven't specified a community.  Looking at your check_command in the
service definition:

 check_commandcheck_snmp_storage!-C public -m /temp -w 95 -c 98 
 -f!

...you have an unnecessary trailing '!' on the check_command, which I think
will be silently ignored, based on your command_line def), but I can't recall
whether or not spaces in the ARGn macros are legal (I think not, but the docs
don't specify and I haven't tested).

The usual form is something like:

In your checkcommand def:

..
command_name  check_foo
command_line  $USERn$/check_foo.pl -H $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
...

In your service def:

...
host_name   somehost
check_command  check_foo!arg1value!arg2value!arg3value
...

Can you try formatting your commands as such?

-tt


-- 
Tom Throckmorton
OIT - CSI
Duke University

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] check_snmp_storage.pl returns Put snmp login info!

2008-01-18 Thread Bret Goodfellow
Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom
Throckmorton
Sent: Friday, January 18, 2008 3:30 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] check_snmp_storage.pl returns Put snmp
login info!

On 01/18/2008 05:07 PM, Bret Goodfellow wrote:
 It actually is $USER1$.  I just typed it incorrectly in this email.
 Thanks

OK.  That error looks vaguely like an SNMPv3 login failure.

What do you see when you run the plugin from the command-line with a
'-v' at the end?  It should show you the SNMP version:

 ./check_snmp_storage.pl -H somehost -C community -m /foo -w 95 -c 98 
 -f -v Alarm at 15 SNMP v1 login Filter : /foo OID : 
 1.3.6.1.2.1.25.2.3.1.3.3, Desc : Swap Space OID : 
 1.3.6.1.2.1.25.2.3.1.3.8, Desc : /proc/sys/fs/binfmt_misc OID : 
 1.3.6.1.2.1.25.2.3.1.3.2, Desc : Real Memory ... etc.

-tt


--
Tom Throckmorton
OIT - CSI
Duke University

Here's what I get:
./check_snmp_storage.pl -H somehost -C community -m /tmp -w 95 -c 98 -f
-v
Alarm at 15
SNMP v1 login
Filter : /tmp
 .
 .
 .
/tmp: 6%used(221MB/3937MB) (95%) : OK


-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] check_snmp_storage.pl returns Put snmp login info!

2008-01-18 Thread Tom Throckmorton
On 01/18/2008 05:07 PM, Bret Goodfellow wrote:
 It actually is $USER1$.  I just typed it incorrectly in this email.
 Thanks 

OK.  That error looks vaguely like an SNMPv3 login failure.

What do you see when you run the plugin from the command-line with a 
'-v' at the end?  It should show you the SNMP version:

 ./check_snmp_storage.pl -H somehost -C community -m /foo -w 95 -c 98 -f -v
 Alarm at 15
 SNMP v1 login
 Filter : /foo
 OID : 1.3.6.1.2.1.25.2.3.1.3.3, Desc : Swap Space
 OID : 1.3.6.1.2.1.25.2.3.1.3.8, Desc : /proc/sys/fs/binfmt_misc
 OID : 1.3.6.1.2.1.25.2.3.1.3.2, Desc : Real Memory
 ... etc.

-tt


-- 
Tom Throckmorton
OIT - CSI
Duke University

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] check_snmp_storage.pl returns Put snmp login info!

2008-01-18 Thread Bret Goodfellow
It actually is $USER1$.  I just typed it incorrectly in this email.
Thanks 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom
Throckmorton
Sent: Friday, January 18, 2008 2:41 PM
To: Bret Goodfellow
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] check_snmp_storage.pl returns Put snmp
login info!

On 01/18/2008 04:24 PM, Bret Goodfellow wrote:
 I have the snmpd running on a client box.  I have nagois monitoring 
 this box without any issues.  I decided to implement a new plugin I 
 found, check_snmp_storage.pl.  From the nagios server I can issue 
 this command to the client box, and I get a valid response, e.g.
  
  ...
 My command is defined as:
  
 define command{
 command_namecheck_snmp_storage
 command_line$USER$/check_snmp_storage.pl -H $HOSTADDRESS$
$ARG1$

$USER$ won't get you much, I don't think.  Maybe you meant $USER1$ ?

-tt

--
Tom Throckmorton
OIT - CSI
Duke University


-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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


[Nagios-users] check_snmp_storage.pl returns Put snmp login info!

2008-01-18 Thread Bret Goodfellow
I have the snmpd running on a client box.  I have nagois monitoring this
box without any issues.  I decided to implement a new plugin I found,
check_snmp_storage.pl.  From the nagios server I can issue this
command to the client box, and I get a valid response, e.g.
 
[EMAIL PROTECTED] ]# su - nagois
-sh-3.00$cd /usr/lib64/nagios/plugins
-sh-3.00$./check_snmp_storage.pl -H star -C public -m /temp -w 95 -c
98 -f
/temp: 2%used(35MB/1984MB) (95%) : OK | '/temp'=35MB;1885;1945:0:1984
-sh-3.00$
 
But, when I implement this plugin in Nagios, I get the following
response:  Put snmp login info!
Why does the plugin work from the shell prompt, but fails when run from
Nagios?
 
My service is defined as:
 
define service{
usegeneric-service
host_namestar
service_descriptionsnmp /temp Free Space
is_volatile0
check_period24x7
max_check_attempts3
normal_check_interval5
retry_check_interval1
contact_groupslinux-admins
notification_interval1440
notification_period24x7
notification_optionsw,u,c,r
check_commandcheck_snmp_storage!-C public -m /temp -w 95 -c
98 -f!
}
 
My command is defined as:
 
define command{
command_namecheck_snmp_storage
command_line$USER$/check_snmp_storage.pl -H $HOSTADDRESS$ $ARG1$
}
 
Can anyone help me here?
 
 
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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