On Wed, 2006-02-08 at 12:29 +0100, Arno Lehmann wrote:
> Also, read and nderstand the manual, like 'man bash'.
Wow, that IS a real task. It is hundred+ printed pages.
Toto, i suggest you to google 'bash scripting howto'.
--
Marcel Mitsuto Fucatu Sugano <[EMAIL PROTECTED]>
Universo Online S.A. --
D] *On Behalf Of *Toto
Capuccino
*Sent:* Wednesday, February 08, 2006 3:53 PM
*To:* Nagios
*Subject:* Re: [Nagios-users] Need pointer
I have tried this
#!/bin/sh
$output=`/usr/local/nagios/libexec/check_snmp -H $1 -o $2`
if [ $output = 0 ]
echo "low paper"
if [ $output = 1 ]
ec
CTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Toto Capuccino
Sent: Wednesday, February 08, 2006
3:53 PM
To: Nagios
Subject: Re: [Nagios-users] Need
pointer
I have tried this
#!/bin/sh
$output=`/usr/local/nagios/libexec/check_snmp -H $1 -o $2`
if [ $output = 0 ]
echo "low paper"
I have tried this#!/bin/sh $output=`/usr/local/nagios/libexec/check_snmp -H $1 -o $2`if [ $output = 0 ]echo "low paper"if [ $output = 1 ]echo "no Paper"
if [ $output = 2 ]echo "low Toner"...exit ($value)i get this errors :../libexec/check_Xerox_Status: line 3: =SNMP: command not found../libexec/che
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Toto
Capuccino
Sent: Wednesday, February 08, 2006 2:52 PM
To: Nagios
Subject: [Nagios-users] Need pointer
Hi,
I need a pointer to do the following :
i am checking the staus of printers with check_snmp -H x.x.x.x -