Software :: Sending File Content As Snmp Trap?

Mar 27, 2010

I wanted to know is there any way to send a content of a file as snmp trap with snmpd agent of linux?

View 3 Replies


ADVERTISEMENT

Networking :: Where Are SNMP Trap Messages Logged

Mar 4, 2011

I'm trying to get SNMP setup so I can send custom snmp trap messages. I followed this "How to" [URL] and I think I have it setup and working. This is my fist time messing around with SNMP, and I don't know where to check to see if I received the trap message. Do the snmp trap message even get logged any where?

View 1 Replies View Related

Networking :: Configure Snmp And Snmptrap To Receive A Trap?

Jul 3, 2010

how can I configure snmp and snmptrap to receive a trap when the used disk (/home/linux) is 20%

View 1 Replies View Related

Networking :: Generate Snmp Trap To Check High CPU Usage?

Mar 16, 2011

I want to generate snmp trap when cpu usage is high..me how to configure snmpd.conf....to generate this trap...

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

Networking :: Error When Sending SNMP Traps

May 12, 2010

I have an issue when sending snmp traps. I have an embedded system connected to a SNMP manager. I am sending traps from the box to the manager continuosly. After sometime I don't see any trpas coming out.
I get this error message.

Cannot open file /proc/net/tcp ...
: Too many open files
Cannot open file /proc/net/snmp ...
: Too many open files

What could be the reason for such an error?

View 1 Replies View Related

Networking :: Sending SNMP Traps FROM A Workstation?

Apr 28, 2011

I have created this thread as it sis realy hard for me to send traps from my Linux workstation... I m lost with v1/v2/v3 snmp... So here is the initial configuration: (without traps)

rocommunity myrocom
rwcommunity MyL33tP4ss 10.5.32.202
rwcommunity MyL33tP4ss 127.0.0.1
syslocation "FR"
syscontact root

From there i can "poll" my system. But what should i do if i want my Linux system sending traps when disks are full or system overloaded etc...I have found information on Internet but not easily understandable It is for v3:

rwuser admin
createUser admin MD5 mypasword
#
# From there i would have to comment the lines regarding the communities
#

[code]....

10.5.32.202 is my management host ... is this config ok ? But it seems that trap2sink is for v2 ? How does it work ?

View 4 Replies View Related

Server :: Sending SNMP Traps (Info On CPU / Memory Usage)

Dec 13, 2010

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)?

View 4 Replies View Related

General :: Dividing Content Of One File By Content Of Another?

Apr 12, 2011

If you have the value 100 in File1 and the value 5 in File2, how do you write a script to divide the 100 in File1 by the 5 in File2 in Linux Bash Shell?The operating system I am using is Ubuntu 10 and object is to write a script to accomplish this task.

View 5 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

Networking :: Make Mib File For Snmp?

Mar 9, 2011

how to make mib file for snmp....

View 3 Replies View Related

Debian :: Append File Content In Another File When Pattern Matches

Feb 5, 2010

I have a file, say abc.txt, whit some text lines.The I have a second file, say 123.txt where at a certain point one can read "WORD".I would like to append the whole content of abc.txt (as it appears in abc.txt) in the line after "WORD".

View 1 Replies View Related

General :: Searching Content Of The File Using File Browser Nautilus?

May 27, 2011

I'm using rhel6. Using File Browser Nautilus 2.28.4 I could easily locate any file I'm interested in by it name. I'd like to use this File Browser to locate the file name based on it content e.g. based on some word in the text file. It doesn't work for me that way ... My question: does Nautilus support the search of file based on it content or only based on the name of the file itself?

View 4 Replies View Related

Programming :: Sed - Save Output To File With Filename From Content Of Another File?

Feb 28, 2011

My employer issues pdf files with everyones work schedules. I copy the content and save it as plain text in a file called unformatted (hope to be able to automate this step someday). Im working on a SED script that reduces unformatted to only display what I want to see and saves the result in a file Iïve named formatted. After that I have to manually copy formatted and save it with that days date as a filename e.g. 2011-02-25 or whatever day is scheduled in the pdf, for use on a mobile device (Nokia N900). I noticed that the date occurs on certain lines in the file so I added a line like:

sed -n 's/^Date: (201[1-9])/([0-1][0-9])/([0-3][0-9]).*/1-2-3/p' < unformatted >theDate
That creates a file theDate with the date in it that I wish to use as the filename for this particular instance. So I would like to skip the file formatted all together and have the sed- script write to a new file using the content of the Date as a filename, but how do I make that happen? And of course it would be more elegant if I could skip the intermediate theDate file as well.

View 4 Replies View Related

Programming :: Copy One File Content To Multiple File

May 28, 2010

I wanted to copy one file to multiple new files. I have an idea to write a script and do the operation. But here i m looking for any particular command to do this operation.

View 1 Replies View Related

Red Hat / Fedora :: Attach An Ordinary File As Well As Excel File While Sending Mail To A Particular User?

Dec 21, 2010

How to attach an ordinary file as well as Excel file while sending mail to a particular user in red hat.

View 1 Replies View Related

General :: Find Will Go Through The Content Of Tarball As Well And List All Content

Oct 5, 2010

I am using find to search for .tgz files modified more than 7 days ago and delete them.find /directory/ -iname backup*.tgz -daystart -mtime +7 -exec rm -rf {} My problem is that find will go through the content of tarball as well and list all content. I want to only search main tarball and delete it if older than 7 days.

View 4 Replies View Related

General :: Change The Content Of File?

Nov 10, 2010

i have a file and i want to change the content of file but i also want that md5sum of that file remains same.

View 14 Replies View Related

Software :: Compare $var With Content Of File?

May 20, 2011

I got a file with a list of subnets like this:

10.50
10.51
10.62
10.121

then I cnf=`ifconfig` thus giving me the config of the NICs.after that I want to compare the $cnf to see if the value of it is listed in the file and if it is do things.There might also be something better to use then the 'ifconfig'but it worked so I just stuck to it First I just had one subnet but now it's starting to grow and I wanna make a list instead of having them all listed in the if-statement.

View 14 Replies View Related

Fedora :: Embedded Mp3 File Content Not Playing In FF / Fix It?

Oct 31, 2009

I am trying to play embedded mp3 content in FF. When I click on the link to play the mp3, a new tab opens up and all I get is a grey screen. Does anybody out there have any ideas on this? I have run Autoten and installed all of the necessary codecs.

View 10 Replies View Related

General :: Find File By Content On System?

Sep 21, 2011

How to find file by content on linux by command. Example: i want find file contain word "helo" on my computer (OS: LINUX)

View 4 Replies View Related

Ubuntu :: [Scripting] Remove Content Of One File From Another?

Jun 22, 2011

I've been puzzling over this for a while and have not been able to reach a solution, so turning to your good selves for advice! I currently have two files, let's say they look like this:*File A*

Code:
item1
item3

[code]....

View 6 Replies View Related

General :: Write A Script Which Will Add A Content To A File?

Jun 13, 2010

How would i write a script which will add a following content to a file.File Before running script.

Code:
acpi = 1
apic = 1
builder = 'hvm'[code]....

View 3 Replies View Related

General :: Set Date Time Using A File Content?

Jan 13, 2010

I have a file called foo with a date string in it - and nothing else in the file

2010.01.13-22:28:28

I want to send this file content to date -s command so I can modify using a cron job.

I tried several ways to pipe the file contents to date command but did not work.

View 4 Replies View Related

Programming :: C - Can't Print In Screen The Content Of File

Mar 20, 2010

why this code can't print in the while loop the content of the file ?

Code:

#include <stdio.h>
int main()
{
FILE *fp;

[code]...

View 7 Replies View Related

Programming :: Display Content Of Txt File In Xbmc?

Apr 25, 2011

go about developing this add-on. i am testing this on my xbmc-live set-up; i am fairly affluent in bash/ c but unfortunately i dont have experience with python.i trimmed the data using this bash 1-liner so the output looks like:

Code:
xbmc@XBMCLive:~$ wget -q --output-document=- www.google.com/movies | sed -n 3p | tr '<' "
" | egrep "(title_bar|id=link_1_theater|class=info|mid=|Rated|class=times|fandango)" | grep

[code]...

View 2 Replies View Related

Software :: Trap A Crashing App?

Aug 29, 2010

I would like to learn the right way, or some neat technique, to discover why a compiled-from-source application just unaccountably quits. it it easy enough to discover that the pre-compiled version from Ubuntu does work just fine. My motivation is to explore, and maybe try to modify it a little for myself.

At my level of programming expertise, I have often used the "sh configure, make, make install" route; and sometimes made small changes to the code eg. changing a window size and similar. C and C++ tutorials teach the main rules, but I am no expert at classes, structures or obscure expression tricks.

The application is a QT type called "qantenna", used for electromagnetic simulation of antennas. The source I downloaded from SourceForge. Although a KDE application, the repository version seems to run just fine on my Ubuntu 9.10 Karmic (soon to become Lucid), on its Gnome desktop.

The compiled version behavior is that the main window opens and runs OK, with the GUI view operating with fully alterable views. As soon as a valid antenna file is loaded, the whole application instantly quits.

How does one deal with an application that gives no chance to catch it doing things wrong?

View 14 Replies View Related

Programming :: Iterate The Content Of A File In The Shell Script?

May 29, 2010

i need to check group of URLs and there https requests from browser. Recently i got some command line web browsers to know the HTTPS status of the URL like curl, wget etc... Now all of i need to do is write a shell script. I will put all my URLs in a text file and my shell script should read each URL one by one and log the status along with the corresponding URL.

Sample output:

./myscript.sh url.txt
1. site - 200 OK

View 6 Replies View Related

General :: Paste File Content Into GEDIT With Xclip?

Dec 18, 2010

I have a file clipboard.txt

I do :

Code:
sleep 10s ; echo "focus on the gedit" ; xclip -o clipboard.txt
is not working.

How to make that possible, how?

View 2 Replies View Related

General :: Filter Find And Du By Content Of Inner File In Subdirectory?

May 30, 2010

I have the following command that I run on cygwin:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | xargs du --max-depth=0 > foldersizesreport.csv

I intended to do the following with this command: for each folder under /d/tmp/ that was modified in last 150 days, check its total size including files within it and report it to file foldersizesreport.csv however that is now not good enough for me, as it turns out inside each

/d/tmp/subfolder1/somefile.properties
/d/tmp/subfolder2/somefile.properties
/d/tmp/subfolder3/somefile.properties
/d/tmp/subfolder4/somefile.properties

so as you see inside each subfolderX there is a file named somefile.properties inside it there is a property SOMEPROPKEY=3808612800100 (among other properties) this is the time in millisecond, i need to change the command so that instead of -mtime -150 it will include in the whole calculation only subfolderX that has a file inside them somefile.properties where the SOMEPROPKEY=3808612800100 is the time in millisecond in future, if the value SOMEPROPKEY=23948948 is in past then dont at all include the folderin the foldersizesreport.csv because its not relevant to me.so the result report should be looking like:

/d/tmp/,subfolder1,<itssizein KB>
/d/tmp/,subfolder2,<itssizein KB>

and if subfolder3 had a SOMEPROPKEY=34243234 (time in ms in past) then it would not be in that csv file.so basically I'm looking for:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | <only subfolders that have in them property in file SOMEPROPKEY=28374874827 - time in ms in future and not in past | xargs du --max-depth=0 > foldersizesreport.csv

View 1 Replies View Related







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