Networking :: Nagios Not Receiving SNMP Data?

May 18, 2010

I have recently set up nagios on a ubuntu server (9.10), and set it up to monitor all the servers, switches etc, following the quickstart guide provided on the nagios website.My problem is this:I have setup the nagios-plugins, and tried to set it up to monitor the network switches via SNMP but receive the following within the nagios web interface:SNMP problem - No data received from host I tried it from the command line, and got the exact same error.Is there some further configuration I need to do to be able to get this data?I've used up all my google-fu, and read over everyone else's problems on every forum I could find, but to no avail.

View 6 Replies


ADVERTISEMENT

Networking :: Sending / Receiving Data Simultaneously Using BSD Sockets

Jun 25, 2010

I would like to send a data using one thread and receive a data using other thread by using a same socket connection using USD sockets. The calls i am using for sending and receiving are send(), recv(). let me know is it possible to send and receive the data parallel (Full duplex communication)?

View 2 Replies View Related

Server :: Getting Nagios To Work With Snmp Using The 'check_snmp' Plugin?

Jul 11, 2011

I am having trouble getting nagios to work with snmp using the 'check_snmp' plugin.I am trying to run the plugin from the terminal and getting:

Code:
root@NAGIOS:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_snmp -H 172.xx.xx.x -c nagios -o sysDescr.0

[code]....

View 2 Replies View Related

General :: Resolve Nagios Port Status Snmp Trap?

Jan 8, 2011

In cisco 6509 switch port 1status is being traped it is showing "SNMP CRITICAL - *down(2)*"

View 2 Replies View Related

CentOS 5 :: Yum Not Able To Install Nagios-plugins While Net-snmp-perl.i386 Is Already Installed

Mar 19, 2009

I am having issues installing nagios-plugins using yum. Been using Suse don't have much experience with CentOS (CentOS release 5.2 (Final), ) Linux hoster 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 12:03:43 EST 2008 i686 athlon i386 GNU/Linux It says

"Error: Missing Dependency: perl(Net::SNMP) is needed by package nagios-plugins"
Whereas net-snmp-perl.i386 is already installed.
yum deplist nagios-plugins
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile

[Code]....

View 1 Replies View Related

CentOS 5 Networking :: Configuring SNMP To Send Traps To SNMP Server?

Aug 12, 2010

I'm trying to configure SNMP service to send traps to SNMP server. I've installed net-snmp-utils, now I need to configure the "snmpd.conf" file...

View 2 Replies View Related

Software :: Receiving UDP Multicast - Blocks As If There Is No Data

Nov 6, 2010

I am trying to port some MS Visual Studio C++ code to Linux/wxWidgets. The code is socket-based and very similar between Windows and Linux. In Linux the socket, bind, and setsocketopt all return with no error. See:

Code:
BOOL CAV15Input::SetupSocket(BOOL Out)
{ if(pU->PrDebug) {
sprintf(_send,"CAV15Input::SetupSocket for port %d",pSonar->dPort);
pU->OutMsg(_send,1,0); } pSonar->UDP_Sock=0; pSonar->UDPError=0;
pSonar->UDP_Sock=socket(AF_INET,SOCK_DGRAM,0);
if(pSonar->UDP_Sock<0 ) {
pU->OutMsg("socket failed on SetupSocket",11,0);
pSonar->UDP_Sock=0;
pSonar->UDPError|=4;
return FALSE; }
// the AF_INET address family, which contains IP addresses,
local.sin_family=AF_INET;
local.sin_addr.s_addr=inet_addr(pSonar->IP_Add_PC);
local.sin_port=htons(pSonar->dPort);
// from Dave Goffe:
//> int t = 1;
//>
//>setsockopt(fd,SOL_SOCKET,SO_REUSEADDR,&t,sizeof(t));
int t=1; if(setsockopt(pSonar->UDP_Sock,
SOL_SOCKET, SO_REUSEADDR,
(char *)&t,sizeof(t)) <0) {
CloseSock();
pU->OutMsg("set SO_REUSEADDR failed in SetupSocket",11,0);
pSonar->UDPError|=4;
return FALSE; }
if(bind(pSonar->UDP_Sock,(sockaddr *)&local,sizeof(local)))
{ CloseSock();
pU->OutMsg("bind failed in SetupSocket",11,0);
pSonar->UDPError|=8; return FALSE; }
if(pU->PrDebug) {
sprintf(_send,"socket setup & bind OK for port %d",pSonar->dPort);
pU->OutMsg(_send,1,0); }
// Join multicast group
if(pSonar->datatype) // for element data
mreq.imr_multiaddr.s_addr=inet_addr(pSonar->IP_Add_ELD);
else // for beam data
mreq.imr_multiaddr.s_addr=inet_addr(pSonar->IP_Add_HRB);
mreq.imr_interface.s_addr=inet_addr(pSonar->IP_Add_PC);
if(setsockopt(pSonar->UDP_Sock,
IPPROTO_IP, IP_ADD_MEMBERSHIP,
(char *)&mreq,sizeof(mreq)) <0) {
CloseSock();
pU->OutMsg("join multicast failed in SetupSocket",11,0);
pSonar->UDPError|=16;
return FALSE;
} if(pU->PrDebug) {
if(pSonar->datatype) // for element data
sprintf(_send,"join multicast OK on %s",pSonar->IP_Add_ELD);
else // for beam data
sprintf(_send,"join multicast OK on %s",pSonar->IP_Add_HRB);
pU->OutMsg(_send,1,0); }
jMCast=1; return TRUE; }

But then when I try
recv(pSonar->UDP_Sock,&pUDP->u_dg_cM.cM[8],reedlen,0);
it blocks as if there is no data. (In Windows this works fine.) Is there something else in Linux and/or wxWidgets that I'm missing that could prevent UDP datagrams from being received? Is there some way in Linux to monitor incoming UDP traffic?

View 2 Replies View Related

Software :: CHECK_NRPE: Error Receiving Data From Daemon

Jun 2, 2010

I have setup Nagios, Nagios Plugins, and nrpe. I have the nrpe running through xinetd.When I run /usr/local/nagios/libexec/check_nrpe -H <my_ipaddress> and I get the error

CHECK_NRPE: Error receiving data from daemon

View 14 Replies View Related

Fedora :: Finding Out What Processes Sending / Receiving Network Data?

Oct 27, 2010

I have a desklet that, occasionally after toying with network stuff, will tell me that large amounts of data are being sent/received. What's a good way to determine what processes are occupying these resources?!

View 14 Replies View Related

General :: Change Size Of Network Data Receiving Buffer On OS?

Jan 21, 2010

We know that, in a network, data transfer time is dependent on capacity of the receiving node. I have two Linux systems A (sender) and B (receiver) connected. I want to simulate congetion in a network, that means I want to increse the time taken to transfer some data. I believe, I can do this if I can reduce the capacity of the receiver node B. That perhaps possible by decreasing the receiving buffer size of B. How can I change the receiving buffer size of this linux system B?

View 1 Replies View Related

Programming :: Receiving Wrong Data On Winsock From Unix Socket

Jan 28, 2011

currently I've got a big problem on programming with sockets. I use the winsock2 API and want to receive data from a multicast adress running on a UNIX-PC. The connection works fine and I really receive data from this group, but as it seems not the right packages. The received data is saved in a char[]. E.g. at received_msg[12] is a float value. This one I would like to read out, convert and use it in later progress the next value is y at received_msg[16]. The same Code works on a Unix PC with unix sockets but converted to winsock I've got the described problem and I have to make this code work under windows.

Here a piece of the code (received_msg[12]='3f'):

Buffer is a struct containing the two float values x and y. If I convert the char as this under windows the value of x is a huge number. The correct value is around 192, so receveid_message[12] should be 1.92. Could it be that the Unix-PC is sending data in an other way than the winsock receive it?

View 2 Replies View Related

General :: Application Is Unable To Access Data From Snmp Port

Jul 2, 2010

Iam using snmp to access the remote system data.But according to the requirement iam encoding the snmp request data to OAMPDU packet format and sending to remote system.the remote system receives the OAMPDU packet,decodes it and is sending the snmp packet to snmp agent through UDP socket which is bind to port 161.but iam unable to receive the response from snmp agent.i have created a udp socket which is bind to 161 port to receive the response.

if i use any other free port number other than 161 for receiving snmp agent is not sending the response to that port.can any one please suggest me how to overcome this problem.Can we configure the different ports for tx,rx ?How do we know on which port does snmp sends the response ???

View 1 Replies View Related

Ubuntu :: Parsing Web Data From Nagios (Bash Fu)?

Apr 27, 2011

We have a system called Skynet, which is basically a bunch of monitoring tools, including Nagios. What I want to do is output the status of 'critical' processes in conky. The conky part I'll worry about later (how hard can that be?), but I'm looking for some feedback on how I'm parsing the initial data. I figure that the simplest way to get the information is to query the cgi, then take what I need from the results...

Code:
wget -O - "http://user:pass@skynet/nagios/cgi-bin/status.cgi?status.cgi?host=all&servicestatustypes=16&hoststatustypes=3"| grep -i "<TD ALIGN=LEFT valign=center CLASS='statusBGCRITICAL'><A HREF='extinfo.cgi?type=2&host="

[Code]...

All I basically want is the server name and the process name, the above example giving server0/server1 and 'update status' as the service. How would you go about extracting merely these two pieces of information, bearing in mind that the server name and process are variable?

View 3 Replies View Related

General :: Collect Data From Nagios Once A Week And Have It Sent/mailed?

Feb 2, 2011

We need to collect data from nagios once a week and have it sent/mailed.What would be a good place to get it? I am thinking starting with nagios/var/nagios.logscan it once a week and get most recent entries from each hosts.

View 3 Replies View Related

Programming :: Detect A Closed Tcp Client Connection When Client Is Only Receiving Data ?

Mar 9, 2011

I am writing a TCP server in C, and the server listens to incoming client connections and accepts them. It then creates a thread to handle the client. The clients are expected to only receive data from my server and not send any data. So if I use a select() call with a recv(), I believe that the recv() will just block forever since there will not be any data coming from the client. If I use a non-blocking recv(), then this will just return a 0 which tells me nothing because the client is not expected to send any data. I am not sure if I have misunderstood some socket concepts, but I need a solution to detect when the client has disconnected so that I can close the socket and stop sending data to the client. As I understand it, simple ACKs etc are not captured by the recv(), and only data sent by the client will cause recv() to return a non-zero value, so I am not sure how to know when the client has disconnected.

View 7 Replies View Related

Fedora Installation :: Use Update Utility Receiving Error - Repository Data For Installed Repository Not Found

Apr 19, 2010

I just installed Fedora Core 12 and when attempting use the update utility am receiving the following error:

[code]...

View 3 Replies View Related

Server :: NDOmod - Nagios -ndomod: Error Writing To Data Sink

Jan 29, 2010

How do I fix it?

Code:

Code:

Code:

OutPut:

Code:

View 7 Replies View Related

Server :: Error: Cannot Open Log File '/usr/local/nagios/var/archives/nagios-07-08-2011-00.log' For Reading?

Jul 9, 2011

Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-07-08-2011-00.log' for reading!

View 2 Replies View Related

Ubuntu Networking :: Receiving 4.5 KiB/s To 7.0 KiB/s?

Feb 1, 2011

I have been receiving 4.5 KiB/s to 7.0 KiB/s on average. This is with nothing connected actively using Wi-Fi (browser, download, etc.) Why is this? It is happening on Lucid x86. I have a 64bit machine, but unfortunately neither the 32bit or 64bit wireless works "out of the box" for me. My wireless card is Ralink RT3090PCIe. I have not found a package to support my card in Ubuntu 64bit (I prefer 64bit over 32bit.). For now there is this as a package for Ubuntu 32bit https://launchpad.net/~markus-tisoft/+archive/rt3090

Another thing, as of late (about a week) my wireless connection strength has diminished substantially was 95-97% now 73-85% This is unusual. Hopefully not any shady neighbors.

I am strongly considering deleting the Ubuntu partition, until a 64bit works "out of the box" for the wireless or at the very least only use this Ubuntu 32bit Lucid version with all network permantly disconnected. To be fair, I have tried quite a few other 64bit Linux distributions (Live CDs) and these others did not work wirelessly "out of the box" either.

I am by no means a Windows "fanboi".....but Windows 64bit does work for me "out of the box", as it should. So, I may have to go there (back to Win7), until I find a release of Ubuntu 64bit that has a wireless that works for me, without any errors/problems.

View 4 Replies View Related

General :: How To See The Code Behind The Nagios Plugin: Nagios Checker

Aug 4, 2010

How to see the code behind the nagios plugin: Nagios Checker? I opened the folder which i have downloaded. After that where do i have to go to see the codes? Is it in App_Codes?

View 14 Replies View Related

Networking :: Scp Sends Ok But Stalls On Receiving

Aug 17, 2010

I have set up a server using Suse, which I have done several times. This one is running 11.2 'Emerald'. It has 2 network cards. One is connected to a bt router with a static ip, and the other is for the internal network. The server is used as the gateway for the internet via masquerading. I have 2 issues, which I suspect are related. I can ssh to and from the server fine, but if I try to scp a file, it is fine sending to a remote machine, but stalls if I try the other way.

It also stalls if I try and send from the remote machine to this one. I have tried debug mode, but no 'error's occur, it just stalls.The internet connection is also very slow and sometimes stalls, so there may be a link.I am not new to linux, but this has me baffled. This server replaced a Suse 10.2 server with similar config, and that worked fine.The firewall allows ssh, so I don't think its that.

View 12 Replies View Related

Networking :: SNMP Not Responding?

Aug 29, 2010

I have installed Net-SNMP.It is binded to port udp 161I start it with the command: snmpd -Lo
when I do snmpget -v 1 -c public localhost system.sysObjectID.0on the same machine the snmpd is running on- I get a respond SNMPv2-MIB::sysObjectID.0 = OID: ccitt.1when I send same request from another machine (using SNMPc program) - I see no reaction.I used "wireshark" to monitor packets, and I see the requests sent from the other machine. I also see them get to the first machine.

View 1 Replies View Related

Networking :: Client Receiving UDP From Multiple Sources ?

May 14, 2009

I have to implement a client/server solution that pretty much does this:

1) Client broadcasts UDP packet;
2) client receives answer packet from multiple servers - it includes the TCP port to use next and a list of files;
3) user picks file from list;
4) client downloads from server via TCP.

I got the client to broadcast and the servers reply. However, i'm not yet getting the client to be able to receive multiple packets.

I'm very inclined and have tried to implement select, but most examples i find are for stream sockets. Once the fsSet shows a read event would i create a new socket or just use the main socket for recvfrom()ing? I assume i need at least two sockets. However i'm not sure if this will allow the client to actually receive simultaneously... so i'm kinda not wanting to guess that this implies fork and threads... Also, i assume the socket must be nonblocking (done), although i've read somewhere select would take care of this?

View 3 Replies View Related

Networking :: Receiving Multicast On Multiple Interfaces?

Jul 9, 2010

I am trying to run some benchmark tests for multicast. What I want to do is have one system send multicast packets and another receive it on all it's interfaces (eth0-eth3). Whenever I run receiver on more than one interface I get echo effect (if I receive on x interfaces then I get same packet x number of times). Is this how it is supposed to behave? It does not make any difference whether I use loop-back or not. I have set SO_REUSEADDR to yes. I run separate instance of receiver on each interface. I am doing this on RHEL5 systems.

# uname -r
2.6.18-164.20.1.el5

View 3 Replies View Related

Networking :: Receiving UDP Packets - Default Gateway

Apr 11, 2010

I have a computer with two interfaces: a fixed connection (eth1) and a modem (ppp0). My goal is to receive UDP packets from both connections concurrently (using the recv() function). The problem is, that the received packets reach the application only when the default gateway is set to that interface's address. For example, if I set the default gw to be in the eth1 subnet, only packets from eth1 reach the application. Other packets are received in the interface (checked using tcpdump), but they seem to be blocked somewhere. The policy defined in iptables is "ACCEPT" for all incoming packets, with no rules at all. I would like to know how to overcome this problem, and anyway how is the default gateway related to incoming UDP?

View 3 Replies View Related

Networking :: Enabling SNMP On Suse 10?

Jul 29, 2010

I need to enable SNMP on our Suse linux boxes, so that What's Up Gold can monitor them.

I need to add the community name, that I know, but where?

View 3 Replies View Related

Networking :: Make Mib File For Snmp?

Mar 9, 2011

how to make mib file for snmp....

View 3 Replies View Related

Networking :: SNMP Only Updating Every 12 Seconds?

Sep 14, 2010

I have enabled SNMP monitoring in my debian box (using apt-get install snmp) and configured it to allow my PC to query the server.

I'm able to query the server and get SNMP data but when I get STG to give me a per/second graph of the interface octets, it only updates the data every 12 seconds or so.

Is this a setting in SNMP which could be causing this problem? If so, how can I enable it so that SNMP can give me up to the second octet rates.

View 5 Replies View Related

Networking :: SNMP - Snmpwalk Not Working 100%

Mar 14, 2011

2 machines (one of them working as a server to monitor the network with IP 192.168.100.110 and the other one to be monitored with IP address 192.168.100.1):

In the first machine:

snmpwalk -v1 localhost -c public sysName (working fine)
snmpwalk -v1 192.168.100.1 -c public sysName (don't works -> Timeout: No Response from 192.168.100.1)

In the monitored machine:

snmpwalk -v1 192.168.100.110 -c public sysName (it works)
snmpwalk -v1 localhost -c public sysName (dont works -> Timeout: No Response from localhost)

View 6 Replies View Related

Networking :: Sniff Snmp Traps Being Sent To A NMS?

May 31, 2010

I'm trying to sniff snmp traps being sent to a NMS. I'm setting -s to 0 but when I start sniffing, some of the packets, instead of being decoded, show me messages like this:

Code:
[len1468<asnlen1663]
What is that supposed to mean?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved