Sponsored Content
Full Discussion: Nagios snmp_check problem
Special Forums UNIX and Linux Applications Infrastructure Monitoring Nagios snmp_check problem Post 302792905 by mancora on Thursday 11th of April 2013 09:52:37 AM
Old 04-11-2013
SOLVED Nagios snmp_check problem

SOLVED

First problem was the service definition were I added a register 0 definition. This is only used for macros.

Service Definition

define service{
use generic-service
name CPU-stats
check_command snmp_cpustats!supersecreto
service_description CPU Stats
host_name nagios02
notification_interval 0
notification_options c,r
notification_period 24x7
}

define service{
use generic-service
name CPU Load
check_command snmp_load!supersecreto!70!90
service_description CPU Load
host_name nagios02
notification_interval 0
notification_options c,r
notification_period 24x7
}

And the second problem was that the in the command definition the -C community parameter is not been taken by the check_snmp command giving a time out

# 'snmp_load' command definition
define command{
command_name snmp_load
command_line /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C
'$ARG1$' -o .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1. 5.2,.1.3.6.1.4.1.
2021.10.1.5.3 -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c :'$ARG5$',:'$ARG6$',:'$ARG7$'
-l load
}


# 'snmp_cpustats' command definition
define command{
command_name snmp_cpustats
command_line /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C
'$ARG1$' -o .1.3.6.1.4.1.2021.11.9.0,.1.3.6.1.4.1.2021.11.10.0 ,.1.3.6.1.4.1.202
1.11.11.0 -l 'CPU usage (user system idle)' -u '%'
}

After change this and harcode the community everything worked!!!

# 'snmp_load' command definition
define command{
command_name snmp_load
command_line /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C
supersecreto -o .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1. 5.2,.1.3.6.1.
4.1.2021.10.1.5.3 -w :'$ARG1$',:'$ARG2$',:'$ARG3$' -c :'$ARG4$',:'$ARG5$',:'$ARG
6$' -l load
}


# 'snmp_cpustats' command definition
define command{
command_name snmp_cpustats
command_line /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -C
supersecreto -o .1.3.6.1.4.1.2021.11.9.0,.1.3.6.1.4.1.2021.11.10.0 ,.1.3.6.1.4.1
.2021.11.11.0 -l 'CPU usage (user system idle)' -u '%'
}
 

10 More Discussions You Might Find Interesting

1. Solaris

Nagios - How to install !

Hi , I want a clear a detailed manual or installation guide pls for Nagios . I tried many time to use the original manual but the commands is related to linux i think ,, I am using Solaris 9 Regards Adel (2 Replies)
Discussion started by: ArabOracle.com
2 Replies

2. Solaris

Nagios problem

Dear Members, i make setup for nagios under linux Ubuntu Server 9.04 box i when i try to install NRPE on Unix Box i found this error 1- first step for installation -bash-3.00# pwd /download/nrpe-2.12 -bash-3.00# ./configure -with-ssl=/usr/sfw/ -with-ssl-lib=/usr/sfw/lib/ ***... (1 Reply)
Discussion started by: sharkux
1 Replies

3. Infrastructure Monitoring

Nagios Problem with secondary_address

I'm running the latest version of Nagios (3.2.3). i discovered that the "secondary_address" object directive is no longer supported. does anyone know what it was replaced with? i cant find anything on it. i have a lot ofservers with secondary addresses and they kind of depend on this. how... (0 Replies)
Discussion started by: SkySmart
0 Replies

4. Solaris

nagios-plugins-1.4.15 Install Problem on Solaris 10

I am trying to install nagios-plugins-1.4.15 on a Solaris 10 box and when I run the ./configure script I get this error: checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in... (2 Replies)
Discussion started by: thatwaseasy
2 Replies

5. Infrastructure Monitoring

Nagios Auditing

Hi Folks, I have Nagios 3.0.6 which is monitoring 400+ servers in my environment and is administered by multiple administrators. I want to get notified if somebody enable or disable any notification of any of the hosts/services from GUI. Is it possible to configure? If so, how? (0 Replies)
Discussion started by: SiddhV
0 Replies

6. Red Hat

Nagios Problem

Hello, I installed Nagios on the Centreon Platform <----"Centralized monitoring platform" anyways now every time i click on any of the tabs inside centreon interface, it gives me a Blank page, i have no idea what to do. i thought of resetting nagios to an earlier time when it was running... (2 Replies)
Discussion started by: waelkd
2 Replies

7. Infrastructure Monitoring

Nagios Error

Im new to monitoring so i was testing few monitoring tools and I've had this problem with nagios, i downloaded the Nagios XI VM and im using virtualbox to run it and when i reach the GRUB i get this Error 16 : inconsistent file system structure, i have tried troubleshooting the problem but i... (1 Reply)
Discussion started by: HashB
1 Replies

8. Red Hat

Nagios Problem

Hi Everybody, I have configure nagios server and client on my lab machines which are running under VMWARE. Now i would like to know how the nagios working in my systems. For that, what i did is i filled up the / partition with some data above 95% in client. But still it is report good... (0 Replies)
Discussion started by: mastansaheb
0 Replies

9. Infrastructure Monitoring

How secure using Nagios?

Hello Experts, I have my windows servers located at different data-centers across US and I am monitoring all of them using Nagios server configured on a CentOS. All communications are done via public IP address and I doubt it can invite some security threats too. Can anyone let me know if it is... (3 Replies)
Discussion started by: naw_deepak
3 Replies

10. Infrastructure Monitoring

Nagios check dependent on second nagios server

We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side. I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies
POE::Component::IRC::Plugin::DCC(3pm)			User Contributed Perl Documentation		     POE::Component::IRC::Plugin::DCC(3pm)

NAME
POE::Component::IRC::Plugin::DCC - A PoCo-IRC plugin providing support for DCC transfers SYNOPSIS
# send a file my $file = '/home/user/secret.pdf'; my $recipient = 'that_guy'; $irc->yield(dcc => $recipient => SEND => $file); # receive a file sub irc_dcc_request { my ($user, $type, $port, $cookie, $file, $size, $addr) = @_[ARG0..$#_]; return if $type ne 'SEND'; my $irc = $_[SENDER]->get_heap(); my $nick = (split /!/, $user)[0]; print "$nick wants to send me '$file' ($size bytes) from $addr:$port "); $irc->yield(dcc_accept => $cookie); } DESCRIPTION
This plugin provides the IRC commands needed to make use of DCC. It is used internally by POE::Component::IRC so there's no need to add it manually. METHODS
"new" Takes no arguments. Returns a plugin object suitable for feeding to POE::Component::IRC's "plugin_add" method. "dccports" Sets the TCP ports that can be used for DCC sends. Takes one argument, an arrayref containing the port numbers. "nataddr" Sets the public NAT address to be used for DCC sends. "dcc_info" Takes one argument, a DCC connection id (see below). Returns a hash of information about the connection. The keys are: 'nick', 'type', 'port', 'file', 'size', 'done,', and 'peeraddr'. COMMANDS
The plugin responds to the following POE::Component::IRC commands. "dcc" Send a DCC SEND or CHAT request to another person. Takes at least two arguments: the nickname of the person to send the request to and the type of DCC request (SEND or CHAT). For SEND requests, be sure to add a third argument for the filename you want to send. Optionally, you can add a fourth argument for the DCC transfer blocksize, but the default of 1024 should usually be fine. The fifth (and optional) argument is the request timeout value in seconds (default: 300). Incidentally, you can send other weird nonstandard kinds of DCCs too; just put something besides 'SEND' or 'CHAT' (say, 'FOO') in the type field, and you'll get back "irc_dcc_foo" events (with the same arguments as "irc_dcc_chat") when data arrives on its DCC connection. If you are behind a firewall or Network Address Translation, you may want to consult POE::Component::IRC's "connect" for some parameters that are useful with this command. "dcc_accept" Accepts an incoming DCC connection from another host. First argument: the magic cookie from an "irc_dcc_request" event. In the case of a DCC GET, the second argument can optionally specify a new name for the destination file of the DCC transfer, instead of using the sender's name for it. (See the "irc_dcc_request" section below for more details.) "dcc_resume" Resumes a DCC SEND file transfer. First argument: the magic cookie from an "irc_dcc_request" event. An optional second argument provides the name of the file to which you want to write. "dcc_chat" Sends lines of data to the person on the other side of a DCC CHAT connection. The first argument should be the wheel id of the connection which you got from an "irc_dcc_start" event, followed by all the data you wish to send (it'll be separated with newlines for you). "dcc_close" Terminates a DCC SEND or GET connection prematurely, and causes DCC CHAT connections to close gracefully. Takes one argument: the wheel id of the connection which you got from an "irc_dcc_start" (or similar) event. OUTPUT EVENTS
"irc_dcc_request" Note: This event is actually emitted by POE::Filter::IRC::Compat, but documented here to keep all the DCC documentation in one place. In case you were wondering. You receive this event when another IRC client sends you a DCC (e.g. SEND or CHAT) request out of the blue. You can examine the request and decide whether or not to accept it (with "dcc_accept") here. In the case of DCC SENDs, you can also request to resume the file with "dcc_resume". Note: DCC doesn't provide a way to explicitly reject requests, so if you don't intend to accept one, just ignore it or send a NOTICE or PRIVMSG to the peer explaining why you're not going to accept. o "ARG0": the peer's nick!user@host o "ARG1": the DCC type (e.g. 'CHAT' or 'SEND') o "ARG2": the port which the peer is listening on o "ARG3": this connection's "magic cookie" o "ARG4": the file name (SEND only) o "ARG5": the file size (SEND only) o "ARG6": the IP address which the peer is listening on "irc_dcc_start" This event notifies you that a DCC connection has been successfully established. o "ARG0": the connection's wheel id o "ARG1": the peer's nickname o "ARG2": the DCC type o "ARG3": the port number o "ARG4": the file name (SEND/GET only) o "ARG5": the file size (SEND/GET only) o "ARG6": the peer's IP address "irc_dcc_chat" Notifies you that one line of text has been received from the client on the other end of a DCC CHAT connection. o "ARG0": the connection's wheel id o "ARG1": the peer's nickname o "ARG2": the port number o "ARG3": the text they sent o "ARG4": the peer's IP address "irc_dcc_get" Notifies you that another block of data has been successfully transferred from the client on the other end of your DCC GET connection. o "ARG0": the connection's wheel id o "ARG1": the peer's nickname o "ARG2": the port number o "ARG3": the file name o "ARG4": the file size o "ARG5": transferred file size o "ARG6": the peer's IP address "irc_dcc_send" Notifies you that another block of data has been successfully transferred from you to the client on the other end of a DCC SEND connection. o "ARG0": the connection's wheel id o "ARG1": the peer's nickname o "ARG2": the port number o "ARG3": the file name o "ARG4": the file size o "ARG5": transferred file size o "ARG6": the peer's IP address "irc_dcc_done" You receive this event when a DCC connection terminates normally. Abnormal terminations are reported by "irc_dcc_error". o "ARG0": the connection's wheel id o "ARG1": the peer's nickname o "ARG2": the DCC type o "ARG3": the port number o "ARG4": the filename (SEND/GET only) o "ARG5": file size (SEND/GET only) o "ARG6": transferred file size (SEND/GET only) o "ARG7": the peer's IP address "irc_dcc_error" You get this event whenever a DCC connection or connection attempt terminates unexpectedly or suffers some fatal error. Some of the following values might be undefined depending the stage at which the connection/attempt failed. o "ARG0": the connection's wheel id o "ARG1": the error string o "ARG2": the peer's nickname o "ARG3": the DCC type o "ARG4": the port number o "ARG5": the file name o "ARG6": file size in bytes o "ARG7": transferred file size in bytes o "ARG8": the peer's IP address AUTHOR
Dennis '"fimmtiu"' Taylor and Hinrik Oern Sigur`sson, hinrik.sig@gmail.com perl v5.14.2 2011-12-07 POE::Component::IRC::Plugin::DCC(3pm)
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy