Server :: Get Sysobj Id & Snmp Community String In Centos 5.4?
Jul 27, 2011
i tried to configured snmp configuration for opennms monitoring tool to get disk alert ..when i entered the following command i doesint receive any sysobj id can somebody say how can i get my sysobjid in centos 5.4
I have MySQL 5.1.34 and PHP 5.1.6 installed on my system, how do I install php-mysql? Each time I try, it says
mysql-5.0.45-7.el5.i386 from base has depsolving problems -- > mysql conflicts with mysql-server-community error: mysql conflicts with mysql-server-community
I have the following function on my xmlrpc server side.
The registration of this function is done as follows from the main function:
The above function makes the server segfault some where on the return path and client gets the response:
Here is what GDB shows when server segfaults....
However if I remove the line "xmlrpc_strfree (node_name);" then server does not segfault and client receives the response correctly. In the xmlrpc-c code it clearly says " Return the string in newly malloc'ed storage that Caller must free." in xmlrpc_data.c::xmlrpc_read_string() which is the function that gets called from xmlrpc_parse_value().
I consider myself a linux noob. The thing about this is, I have played around with various distros of linux over many years. Eventually I get frustrated at how ridiculous something as simple as text editing can be. I'm having a problem starting mysql. I have already ran the install script afer downloading mysql community server from yast.
what I need to do to start the server. I tried to issue rcmysql start, but it says "The absolute path to 'rcmysql' is 'usr/sbin/rcmysql' so running it may require superuser privileges. So i say SUDO rcmysql, enter password and again same message.
I have a Postfix+Dovecot and virtual users setup taken from here. I've got virtual users authenticating using a password file. But I'd like to lock the service down further, so authenticated users can only email other authenticated users (those listed in the same password file) - so it's a closed community. I don't seem to be able to stop authenticated users mailing outside the community.
In a nutshell, my situation is that I need snmpgetnext. My understanding is that this should be installed with net-snmp (net-snmp.x86_64 specifically); this is not occuring. I cannot use it as a command, and I have tried quite a few searches (whereis, find / -iname "snmpgetnext", "snmpget*" | grep next, "*next*" | grep snmp, and a host of similar oddities). Can I find snmpgetnext in a yum repository, preferably an official one?
More specifically, I'm using a software package that requires CentOS with kernel 2.6.18-53.somethingorother. This is a separate issue that has been brought up with the vendor. Generally this just means I install CentOS 5.1 and don't do a full upgrade. we are monitoring with Nagios. The Nagios check_snmp plugin won't compile without a valid path to snmpgetnext, which I can't get to install. This is severly hampering my ability to monitor the server.
I am trying to monitor a Centos 5.3 box using SNMP and I am having a lot of trouble getting the data that i need from it. Everytime I try to get information from the UCD-SNMP MIB it returns "End of MIB". It is my understanding that UCD-SNMP is a standard package when Net-SNMP is installed and should always be there. Then why can't I access it? I have tried removing the reinstalling Net-SNMP, but that hasn't worked. My server is update date on all it's patches as well. It is quite old hardware, but I don't believe that should affect SNMP from being gathered. Iptables is down, and I cant' even get it from the local machine.
I have 2 Centos 5.2 install that cant be snmp queried from another machine and I am unsure of what to check next.
To make sure it was not an incorrect iptables rule i temporarily turned off iptabes with the same results. I have checked the hosts file and it is correct on both machines.
I would like to monitor a RedHat via snmp. I would like to make available data via snmp. The data that I would like to graph are only present in logs file. Is it possible to parse data from applicative logs and have them available for my cacti server via snmp? I already monitor CPU, mem, and others with cacti using the standard MIB.What would be the logical step I would need to achieve that?
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
I just installed the snmp packages on Centos 5.2, and when i tried to use the snmpwalk command, the data is not showing and i got this error: No more variables left in this MIB View (It is past the end of the MIB tree).
I am trying to configure SNMP server using xinetd on red hat. I am using non-standard port for it. My connection to server fails. I see the following log messages in /var/log:
Jan 26 17:23:31 [userid] xinetd[15023]: START: my-snmp pid=15047 from=192.128.11.21 Jan 26 17:23:31 [userid] xinetd[15023]: EXIT: my-snmp status=1 pid=15047 duration=0(sec) Jan 26 17:23:32 [userid] xinetd[15023]: START: my-snmp pid=15050 from=192.128.11.21 Jan 26 17:23:32 [userid] xinetd[15023]: EXIT: my-snmp status=1 pid=15050 duration=0(sec)
can anybody help to point out what is wrong in my config?
I have installed opennms and net-snmp-5.5 in ubuntu9.10.Both are working properly but, i dont know how to get snmpwalk,snmpget,snmpset outputs in opennms.
I am using orion snmp monitor in my network and I have no problem with windows systems but linux systems have some problem first of all snmp monitor shows cpu load on 100% all the time that is completely wrong and secong my snmp monitor can just show cpu and memory and response time information of linux systems and not disk information and nothing more. this is my /etc/snmp/snmpd.conf file content:
com2sec paranoid default public group MyROSystem v1 paranoid group MyROSystem v2c paranoid group MyROSystem usm paranoid group MyROGroup v1 readonly
all I want is for my server to send hardware alerts to the snmp manager.
Is a snmpd.conf like this ok? rwcommunity name1 rocommunity name2 trapcommunity name3 trapsink ip_of_manager syscontact me syslocation my_addr_and_phone
I installed MRTG some hours ago. Everything works fine (disk, cpu,..), except the network graph. For this graph, it's only work for ~3 cycles (15min), then... nothing.
This is the part of mrtg.cfg:
Code:
The number for eth0 is 3
Code:
SNMP is running:
Code:
Crontab is configured for mrtg (and seems it's not the problem because the other graphs works well):
Code:
In attachement is the graph for the memory (working!) and .. for the network, as you can see, only one small pic at the beginning.
finnaly i can run my ubuntu server 9.04 well, thnx to this great member of ubuntuforums.org now, i wanna i wannna install SNMP on my system, but after i do that, when i wanna connect with another client, it give me error like this :
Code: no response received SNMPv1_Session (remote host: "10.100.7.179" [10.100.7.179].161) community: "public" request ID: 862383236 PDU bufsize: 8000 bytes
[Code]...
10.100.7.179 is my client, i allready install snmp agent on it. but why still eror then? plz give some help. thnx before
I am looking to build a dedicated syslog-SNMP server with remote web interface and I would appreciate a discussion from our community on recommending the best solutions to deploy. I would like to be able to create an opensource architecture I could easily duplicate for multiple stand-alone customer environments.
I have debian Lenny as an server I would like for monitoring of some network components ( switches, printers, routers ... ) and at
/usr/share/snmp/mibs I have /usr/share/snmp/mibs# ls -l total 1844 -rw-r--r-- 1 root root 17455 2008-12-16 18:22 AGENTX-MIB.txt -rw-r--r-- 1 root root 36576 2008-12-16 18:23 BGP4-MIB.txt -rw-r--r-- 1 root root 36959 2008-12-16 18:23 BRIDGE-MIB.txt .... ls -l | wc -l shows 66, what means 66 differen mibs.
snmp related packages I have installed are as : dpkg -l | grep ii | grep snmp ii libgsnmp0 0.2.0-2.1 an SNMP library implementation based on glib and gnet ii libsnmp-base 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) MIBs and documentati ii libsnmp-perl 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) Perl5 support ii libsnmp15 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) library ii snmp 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) applications ii snmpd 5.4.1~dfsg-12 SNMP (Simple Network Management Protocol) agents
My question is, how I can install additional mibs ( for Cisco, Procurve, etc ) for other hw I could have ? What is procedure. I browsed debian package base and I could not find some more packages related to snmp that could supply more mibs.
We have a situation where we have to set up a server to send traps with information regarding CPU, memory usage, etc. I know snmpd can be set up to allow another process to request snmp information about the server, but can it be done the other way around (have a host send information about itself to another server through snmp)?
My Objective is to add Private MIB and compile that file and perform snmpget and snmpset operation. My MIb file contain this macro
[Code]...
Next I try to cmpile using mib2c highCpuUsage. it's give template code for that. I read all the tutorial and copy in /mibgroup and restart snmpd service and try snmpwalk ,snmpset but it�s not work and in var/log/messages its give Out of Memory: Killed process 8005 (snmpd)
I have come across this option given below in dhcpd.conf file for DHCP Server configuration. Can any body let me know what this option is all about.Code:option T150 code 150 = string;
Operating System: CentOS 5.4 I have a bash script that runs another php script to return a decrypted password. The return value is right but when I concatenate it with another string, I would not have the whole string. To better understand the problem, here is my script:
I've been trying to understand pthread in C a little better. So I made a simple program that takes in a string from the command line and creates a thread to print the string. I've looked online and copied the basic concepts but there are something things I'm confused about. The programs works just fine, but I have questions. Here's what I have so far.
[Code]....
One thing I'd like to know is why the 3rd argument in the pthread_create function which is my SendMessage function needs to be typecasted to a void pointer and then send the address of the function. Also as for the 4th argument, I would see typecasting to void pointer in some of the pthread examples I saw online, but in my case I'm passing a char pointer, would this be correct? In which case would I ever want to pass a void pointer?
Do I need a pthread_exit(NULL) in my main and in the SendMessage function? If so, why? I added the sleep() function so that I could let the pthread_exit function in my SendMessage function execute first. I simply saw that the online examples on pthread had pthread_exit() in both locations.
I have a line in a text file that has 40 random characters within a tag and i want to change the characters to a new set of 40 random characters (alphanumeric a-z 0-9 etc)
The line in the text file looks like this:
Quote:
How would i go about doing that?
Also second question same as the above but how would i remove them instead of replacing them?