Re: [Nagios-users] Newbie question - check_snmp syntax

2008-05-16 Thread mrinal devadas
Hi Patrick,
Thank you for the detailed explanation.

Yes, I am just polling SNMP for values. The switches provided in the
check_snmp service are values that the plugin seems to require. The SNMP
version is always 2c and the community string is public. If I do not specify
Œ-L noAuthNoPriv¹ the switch defaults to ŒauthPriv¹. I have now removed this
switch.

Also the delimiter used by check_snmp is ³=². If I use this delimiter in the
netapp.cfg file, nagios complains about a syntax error in the file. If Œ-m¹
is not specified it defaults to ŒALL¹. Is that a bad thing? I have also
changed Œ-m¹ to Œ-o¹.

What I found to be odd is that nagios seems to have picked up the value for
the OID at some time in the past and then lost it. From the nagios.log
file
-
05-15-2008 23:18:36] EXTERNAL COMMAND:
SCHEDULE_FORCED_HOST_CHECK;gx4;1210889913
[05-15-2008 23:18:14] EXTERNAL COMMAND:
SCHEDULE_FORCED_SVC_CHECK;gx3;Uptime;1210889891
[05-15-2008 23:17:50] EXTERNAL COMMAND:
SCHEDULE_FORCED_SVC_CHECK;gx2;Uptime;1210889868
[05-15-2008 23:16:33] SERVICE FLAPPING ALERT: gx1;Uptime;STARTED; Service
appears to have started flapping (22.8% change = 20.0% threshold)


On NetApp the only configuration setting is the define the server that is
going to receive the SNMP traps.

With the configuration updates the results are as below...
### commands.cfg
# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line$USER1$/check_snmp -H $ARG1$ -P 2c -d ! -o $ARG2$
}

### netapp.cfg
define service{
usegeneric-service; Inherit values from a template
host_namegx3
service_descriptionUptime
check_commandcheck_snmp!gx3!sysUpTime.0
}

### command output 
Status Information:SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] gx3:161 sysUpTime.0


Regards,
Mrinal.



On 16/05/2008 01:44, Patrick Morris [EMAIL PROTECTED] wrote:

 On Thu, 15 May 2008, mrinal devadas wrote:
 
  Hi all,
  Am attempting to setup a Nagios server to accept SNMP traps from a NetApp
  controller. Need help with the syntax to be used for check_snmp.
 
  My commands.cfg file has,
  define command{
  command_namecheck_snmp
  command_line$USER1$/check_snmp -H $ARG1$ -P 2c -L noAuthNoPriv
  -d ! -m $ARG2$
  }
 
  My netapp.cfg file has,
  define service{
  use generic-service ; Inherit values from a
  template
  host_name   gx3
  service_description Uptime
  check_command   check_snmp!gx3!sysUpTime.0
  }
 
  I get the following error message on Nagios,
  Status Information:SNMP problem - No data received from host
  CMD: /usr/bin/snmpget -t 1 -r 5 -m sysUpTime.0 -v 2c [authpriv] gx2:161
 
  What am I doing wrong?
 
 First, a couple points:
 
 NMP traps are not something you can get using check_snmp.  They are sent
 from a device to something that listens for SNMP traps, and aren't
 something you can poll for.  In the example you gave, however, it
 appears you're polling for the sysUpTime.0 OID from SNMP, which is not
 a trap, so maybe you're just using the wrong terminology. If you are
 trying to receive traps, though, your current approach will never work.
 
 Now, if you're just polling SNMP for values, you've got a workable
 start. However, The result you say you're receiving in Nagios cannot be
 the result of the configs you've supplied.  You're also mixing commands
 in a way that doesn't make much sense. For example, you specify to use
 SNMP version 2, but also include the -L switch, which only applies to
 SNMP version 3.  You're also going to have trouble with the -d ! part
 of the command line, probably, and I doubt you even need it.  You're
 also not specifying the OID you want to poll.  The -m flag specifies a
 MIB to load -- a MIB is generally a file containing information about
 the OIDs available on a device, but the -o switch is the one to use to
 specify the data you want returned.
 
 It's also unclear what, if anything, you've done on the NetApp as far as
 SNMP configuration, so that could very well be a problem as well.
 

-
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] NRPE: Unable to read output

2008-05-16 Thread Marcus
Hi Thomas,

Thomas Guyot-Sionnest schrieb:
 If you're trying to run the plugin locally as root then try as the
 nagios user instead (or whichever user nrpe runs as). I.e.:
Actually, it doesn't matter, running the check as root as well as nagios 
gives the same result.
I su'ed to nagios in the previous example, but when using root directly, 
it doesn't work either.



 I doubt it would be caused by the missing newline, but if you think so
 you can certainly add one in the plugin since it's written in perl...
Certainly ;-) ...
But that didn't do the trick, either unfortunately.

 Which version of Nrpe are you using?
NRPE is v2.12, nagios-plugins are the latest also.


Thanks for giving some ideas, alas - the problem persists...

Greetz,
  Marcus

-
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] RESOLVED: NRPE: Unable to read output

2008-05-16 Thread Marcus
Hi folks,
I figured it out, via the debug switch. The mysterious error demystified:
Can't locate utils.pm in @INC
;-)

The check-plugin just didn't look for utils.pm in 
/usr/local/nagios/libexec, but it did look for it in ./.
  And since I always run it from /usr/local/nagios/libexec as 
working-dir, it worked manually but not via nrpe.

Have a nice weekend,
  Marcus

-
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] NRPE: Unable to read output

2008-05-16 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Marcus
 Sent: Friday, May 16, 2008 4:06 AM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] NRPE: Unable to read output
 
 Hi Folks,
 
 i'm trying to get a plugin for openvpn
 (http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1315.html) to
work
 with nrpe, but it gives me the dreaded NRPE: Unable to read
output-error.

Thanks for including where you got the plugin.

 command[check_vpn]=/usr/local/nagios/libexec/check_openvpn -H
127.0.0.1
 -p 1195 -P mypwd -n
 
 When i issue

 [EMAIL PROTECTED]:/usr/local/nagios/libexec
 /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_vpn
 
 results in
 
 NRPE: Unable to read output
 
 Can anybody please give me a hint whats going wrong here. :-/

Try redirecting its output to a file so you can see the error output--

command[check_vpn]=/usr/local/nagios/libexec/check_openvpn -H 127.0.0.1
-p 1195 -P mypwd -n /tmp/output 21

--
Marc

-
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] Problems With proc statament at snmpd.conf

2008-05-16 Thread Saulo Augusto Silva
Hi ,

Did anyone here face the problem to have the proc configured and did not
received any change using nagios check_plugin ? Ifact any change in
configured proc process is changed .

Here my snmpd.conf 

syslocation Server Room 
 syscontact Sysadmin ([EMAIL PROTECTED]) 
 rocommunity public 127.0.0.1 
 rocommunity  mycommunit  

# OID = .1.3.6.1.4.1.2021.9.1.7.1 
 disk /  1 
  # OID = .1.3.6.1.4.1.2021.9.1.7.2 
 disk /var 1 
 # OID = .1.3.6.1.4.1.2021.9.1.7.3 
 disk /usr 1 
 # OID = .1.3.6.1.4.1.2021.9.1.7.4 
 disk /tmp 1 
 # OID = .1.3.6.1.4.1.2021.9.1.7.5 
 disk /home 1 
 # OID = .1.3.6.1.4.1.2021.9.1.7.6 
 disk /opt 1 
 # OID = .1.3.6.1.4.1.2021.9.1.7.7 
 disk /db/db2data 1
 # OID = .1.3.6.1.4.1.2021.9.1.7.8 
 disk /dn/db2backup 1
 # OID = .1.3.6.1.4.1.2021.9.1.7.9 
 disk /db/actlog 1
 # OID = .1.3.6.1.4.1.2021.9.1.7.10 
 disk /db/tmp 1
 proc db2sysc
 proc snmpd

the snmpwalk : 
snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.4.1.2021.2.1
UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
UCD-SNMP-MIB::prIndex.2 = INTEGER: 2
UCD-SNMP-MIB::prNames.1 = STRING: db2sysc
UCD-SNMP-MIB::prNames.2 = STRING: snmpd
UCD-SNMP-MIB::prMin.1 = INTEGER: 0
UCD-SNMP-MIB::prMin.2 = INTEGER: 0
UCD-SNMP-MIB::prMax.1 = INTEGER: 0
UCD-SNMP-MIB::prMax.2 = INTEGER: 0
UCD-SNMP-MIB::prCount.1 = INTEGER: 0
UCD-SNMP-MIB::prCount.2 = INTEGER: 0
UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 1
UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 1
UCD-SNMP-MIB::prErrMessage.1 = STRING: No db2sysc process running.
UCD-SNMP-MIB::prErrMessage.2 = STRING: No snmpd process running.
UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0
UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0
UCD-SNMP-MIB::prErrFixCmd.1 = STRING: 
UCD-SNMP-MIB::prErrFixCmd.2 = STRING:

The ps -e 

ps -e |grep db2sysc 
 9812 pts/000:00:00 db2syscr
 9814 pts/000:00:00 db2sysc
 9815 pts/000:00:00 db2syscr
 9816 pts/000:00:00 db2syscr
 9817 pts/000:00:00 db2syscr

So the process is running but SNMP do not send the correct value to
Nagios and  never get alert . 

Any help will be appreciated .

Saulo Silva  


-
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] Problems With proc statament at snmpd.conf

2008-05-16 Thread Tom Throckmorton
On 5/16/08 9:16 AM, Saulo Augusto Silva wrote:

  ...
  proc db2sysc
  proc snmpd
 
 the snmpwalk : 
 snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.4.1.2021.2.1
 UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
 UCD-SNMP-MIB::prIndex.2 = INTEGER: 2
 UCD-SNMP-MIB::prNames.1 = STRING: db2sysc
 UCD-SNMP-MIB::prNames.2 = STRING: snmpd
 UCD-SNMP-MIB::prMin.1 = INTEGER: 0
 UCD-SNMP-MIB::prMin.2 = INTEGER: 0
 UCD-SNMP-MIB::prMax.1 = INTEGER: 0
 UCD-SNMP-MIB::prMax.2 = INTEGER: 0
 UCD-SNMP-MIB::prCount.1 = INTEGER: 0
 UCD-SNMP-MIB::prCount.2 = INTEGER: 0
 UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 1
 UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 1
 UCD-SNMP-MIB::prErrMessage.1 = STRING: No db2sysc process running.
 UCD-SNMP-MIB::prErrMessage.2 = STRING: No snmpd process running.
 UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0
 UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0
 UCD-SNMP-MIB::prErrFixCmd.1 = STRING: 
 UCD-SNMP-MIB::prErrFixCmd.2 = STRING:
 
 The ps -e 
 
 ps -e |grep db2sysc 
  9812 pts/000:00:00 db2syscr
  9814 pts/000:00:00 db2sysc
  9815 pts/000:00:00 db2syscr
  9816 pts/000:00:00 db2syscr
  9817 pts/000:00:00 db2syscr

Greetings Saulo,

You didn't mention which OS or net-snmp version you're using

Regardless, the default for recent vintages of net-snmp is to find 
process names by looking at the 'Name' line in /proc/$pid/status, so 
you'll need to make sure the names in there match the entry in your 
config.  From what I'm seeing, though, you should at least be getting a 
match on the snmpd process - are you by chance running with SELinux enabled?

-tt

-
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] Slightly-OT - Notification management

2008-05-16 Thread Julian Hein
Hi,

Ugo Bellavance [EMAIL PROTECTED] wrote on 15.05.08 17:18:

 Julian Hein a écrit :
 Hi,
 
 Ugo Bellavance [EMAIL PROTECTED] wrote on 09.05.08 16:10:
 
 Terry a écrit :
 We just utilize sms and have a different ring profile for SMS
 messages.  The ring profile says that it will go nuts if it gets a
 phone call or SMS message but all other notifications are off.  I set
 this before I go to bed.
 Ok, but we don't have a SMS gateway yet, we use e-mail to txt, so it
 costs money to receive txt messages this way, the blackberry data fees
 are already high, using it would cut the txt msg fees.
 
 I'm thinking about setting up an SMS gateway, though, any idea where to
 ask for info/ideas?
 
 Multitech has Modems with Ethernet Interfaces. You just connect them to the
 Network and send a text oder sms via Telnet commands:
 http://www.multitech.com/PRODUCTS/Categories/Device_Networking/
 
 Is there a reason why you don't use a serial or USB modem.

It is much more flexible:

1. You can use them from servers without usb or serial ports, e.g. Small
appliances or blade servers.
2. You can place them anywhere on the network, e.g. If you don't have GSM
connectivity inside your data center
3. More then 1 Nagios server can use the same GSM modem
4. You don't need to install or configure anything hardware related on the
server.

Bye,
Julian


-- 
Julian Hein
Managing Director

NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 Nürnberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-3
http://www.netways.de | [EMAIL PROTECTED]


-
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] Nagios 3.0.1 + OpenBSD 4.3 = segfault (core dumped)

2008-05-16 Thread Brian A. Seklecki

Looking for BT output like at the bottom of:
  http://bugs.php.net/bugs-generating-backtrace.php

~BAS


On Fri, 16 May 2008, nuffnough wrote:

 2008/5/16 Brian A. Seklecki [EMAIL PROTECTED]:
 gdb `which nagios` /path/to/core.file

 gdb bt

 Paste results here

 ~BAS


 GNU gdb 6.3
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as i386-unknown-openbsd4.3...(no debugging
 symbols found)

 Core was generated by `nagios'.
 Program terminated with signal 11, Segmentation fault.
 Reading symbols from /usr/lib/libpthread.so.9.0...done.
 Loaded symbols for /usr/lib/libpthread.so.9.0
 Reading symbols from /usr/lib/libm.so.2.3...done.
 Loaded symbols for /usr/lib/libm.so.2.3
 Symbols already loaded for /usr/lib/libpthread.so.9.0
 Reading symbols from /usr/lib/libc.so.43.0...done.
 Loaded symbols for /usr/lib/libc.so.43.0
 Reading symbols from /usr/libexec/ld.so...done.
 Loaded symbols for /usr/libexec/ld.so
 #0  0x1c030f83 in mmap_fgets_multiline ()
 (gdb)


 Thanks for your help.  B)

 nuffi


l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
   http://www.spiritual-machines.org/

 Guilty? Yeah. But he knows it. I mean, you're guilty.
 You just don't know it. So who's really in jail?
 ~Maynard James Keenan


-
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] Url in the notification?

2008-05-16 Thread Palle L Jensen
I just love Nagios; it does so much great work for you! 

As you work with it though sometimes thoughts comes up, can it do more?

 

Here is my thought.

 

For example Nagios sends out an alert on high CPU load, would it be possible
to add the URL to the graph for the CPU load?

So it would look like this:

 

 

* Nagios Monitoring 3.0.1 *

 

Notification Type: PROBLEM

 

Service: Cpu

Host: Server001

Address: 000.000.000.000

State: WARNING

Date/Time: Fri May 16 13:36:06 EDT 2008

Url:
http://000.000.000.000/nagios/cgi-bin/graphs.cgi?host=Server01service=Cpu

 

Additional Info:

 

CPU Load 80% (5 min average)

 

 

This would be very cool cause then you could click on the link and
immediately get to the overview of the graphing of the CPU load.

Does anyone know if this would be possible?

 

Thanks,

Palle

-
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] nagios plugins install error

2008-05-16 Thread chris friesen
Slackware 9.1.0  I am tyring to install the Nagios plugins (1.4.11) and 
receive the error below.  I can't tell what it is I need to do.  It 
appears to not like libcrypto.a  I have the most current version of openssl.

Anybody else have this issue ?

/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. 
-L/usr/local/ssl/lib -o check_http  check_ht  tp.o sslutils.o netutils.o 
utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv -lssl 
-lcryp  to
gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o  
-L/usr/src/nagios-plugins-1.4.11  /plugins -L/usr/local/ssl/lib 
../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lssl -lcrypto
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x35): In function 
`dlfcn_load':
: undefined reference to `dlopen'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x95): In function 
`dlfcn_load':
: undefined reference to `dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xbc): In function 
`dlfcn_load':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x147): In function 
`dlfcn_bind_var':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x172): In function 
`dlfcn_bind_var':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x237): In function 
`dlfcn_bind_func':
: undefined reference to `dlsym'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x262): In function 
`dlfcn_bind_func':
: undefined reference to `dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x51b): In function 
`dlfcn_unload':
: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/usr/src/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/nagios-plugins-1.4.11'
make: *** [all] Error 2


-
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] Problems With proc statament at snmpd.conf

2008-05-16 Thread Saulo Augusto Silva

On Fri, 2008-05-16 at 10:10 -0400, Tom Throckmorton wrote:
 On 5/16/08 9:16 AM, Saulo Augusto Silva wrote:
 
   ...
   proc db2sysc
   proc snmpd
  
  the snmpwalk : 
  snmpwalk -v 2c -c public 127.0.0.1 .1.3.6.1.4.1.2021.2.1
  UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
  UCD-SNMP-MIB::prIndex.2 = INTEGER: 2
  UCD-SNMP-MIB::prNames.1 = STRING: db2sysc
  UCD-SNMP-MIB::prNames.2 = STRING: snmpd
  UCD-SNMP-MIB::prMin.1 = INTEGER: 0
  UCD-SNMP-MIB::prMin.2 = INTEGER: 0
  UCD-SNMP-MIB::prMax.1 = INTEGER: 0
  UCD-SNMP-MIB::prMax.2 = INTEGER: 0
  UCD-SNMP-MIB::prCount.1 = INTEGER: 0
  UCD-SNMP-MIB::prCount.2 = INTEGER: 0
  UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 1
  UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 1
  UCD-SNMP-MIB::prErrMessage.1 = STRING: No db2sysc process running.
  UCD-SNMP-MIB::prErrMessage.2 = STRING: No snmpd process running.
  UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0
  UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0
  UCD-SNMP-MIB::prErrFixCmd.1 = STRING: 
  UCD-SNMP-MIB::prErrFixCmd.2 = STRING:
  
  The ps -e 
  
  ps -e |grep db2sysc 
   9812 pts/000:00:00 db2syscr
   9814 pts/000:00:00 db2sysc
   9815 pts/000:00:00 db2syscr
   9816 pts/000:00:00 db2syscr
   9817 pts/000:00:00 db2syscr
 
 Greetings Saulo,
 
 You didn't mention which OS or net-snmp version you're using
 
 Regardless, the default for recent vintages of net-snmp is to find 
 process names by looking at the 'Name' line in /proc/$pid/status, so 
 you'll need to make sure the names in there match the entry in your 
 config.  From what I'm seeing, though, you should at least be getting a 
 match on the snmpd process - are you by chance running with SELinux enabled?
 
 -tt
Thanks Tom for quickly response . 

OS : SLES10 S390x ( running a zLinux machine ) 
net-snmp version : NET-SNMP version:  5.3.0.1
SELinux is not enabled 

The process name is correct there is another machine that is working . I
would like to know with there is any lib that are used that could not be
update . Could it be ? 

Saulo Silva


-
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] Url in the notification?

2008-05-16 Thread Marc Powell

On May 16, 2008, at 1:19 PM, Palle L Jensen wrote:

 I just love Nagios; it does so much great work for you!
 As you work with it though sometimes thoughts comes up, can it do  
 more?

 Here is my thought.

 For example Nagios sends out an alert on high CPU load, would it be  
 possible to add the URL to the graph for the CPU load?

Yes, if you can programatically create the URL.


 * Nagios Monitoring 3.0.1 *

 Notification Type: PROBLEM

 Service: Cpu
 Host: Server001
 Address: 000.000.000.000
 State: WARNING
 Date/Time: Fri May 16 13:36:06 EDT 2008
 Url: 
 http://000.000.000.000/nagios/cgi-bin/graphs.cgi?host=Server01service=Cpu

 Additional Info:

 CPU Load 80% (5 min average)


 This would be very cool cause then you could click on the link and  
 immediately get to the overview of the graphing of the CPU load.
 Does anyone know if this would be possible?

Very simply. Edit your service notification command to include, in the  
appropriate place you want it to appear, --

Url: 
http://000.000.000.000/nagios/cgi-bin/graphs.cgi?host=$HOSTNAME$service=$SERVICEDESC$

Note that this will only work if your service descriptions do not  
contain spaces or any other special URL characters (, ?, etc). If  
they do, you'll need to make your notiifcation command an actual  
script that URI  Escapes those before sending the e-mail.

--
Marc

-
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] nagios plugins install error

2008-05-16 Thread Marc Powell

On May 16, 2008, at 2:18 PM, chris friesen wrote:

 Slackware 9.1.0  I am tyring to install the Nagios plugins (1.4.11)  
 and
 receive the error below.  I can't tell what it is I need to do.  It
 appears to not like libcrypto.a  I have the most current version of  
 openssl.

Do you have the openssl development libraries installed?

--
Marc

-
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] Url in the notification?

2008-05-16 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Palle L Jensen wrote:

| For example Nagios sends out an alert on high CPU load, would it be
| possible to add the URL to the graph for the CPU load?

Have you looked at the Macro's?
(http://nagios.sourceforge.net/docs/3_0/macrolist.html)

$HOSTNOTESURL$
$SERVICENOTESURL$

Hugo.


- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFILerhBvzDRVjxmYERAr+VAJ47eOZknW5COeINiess0wErAfqtLQCeLAB5
MJlxNGwuEijhUii/i1Aj/Zo=
=WcvL
-END PGP SIGNATURE-

-
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] EXPORT REPORT TO CSV

2008-05-16 Thread Ricardo Duque Olaya
Hi People:

I have installed Nagios 3.0.1.

I want export availability report to CSV, but Nagios only export to CSV when
I select ALL HOST. I need export all availability reports to CSV, I tried
with nagios-reporter.v131.pl and a patch to avail.c, but none works.

Any help??

Regards

-- 
Ricardo Duque Olaya
Ing. Electronico - UN
-
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] nagios plugins install error

2008-05-16 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

chris friesen wrote:
| I believe so, I installed the openssl-devel.rpm and converted to .tgz
| so...  but even so I still get the error...

You are running slackware. So if you start installing rpm stuff you are
screwing up a system. If you want to use a system like Slackware then
you better learn how to use it first.

This is not a nagios problem but a lack of understanding of the
operating system you are using.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFILnGlBvzDRVjxmYERAoy+AKCJuKP6dIz/89SYQ6tagEW0P1+PPgCfchhO
6J92TXVn6rohcHp98VQExpY=
=O5cE
-END PGP SIGNATURE-

-
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