Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is this not check the system every minutes and generate traps?
If i restart the snmpd services, it has generate the traps for disk and process for http, but this should happened automatically
How can i do this task(what i mean is, if some changes happened on the disk or http it should notify via snmptrap)?
I think you want to configure snmp to listen for traps and report failures, but when it comes to checking every few minutes, you really want to use an snmp 'get'.
If you look at the output of an snmp 'walk' on one of my servers, you can see how they tally up:
disk PATH [ MINSPACE | MINPERCENT% ]
monitors the disk mounted at PATH for available disk space.
The minimum threshold can either be specified in Kb (MINSPACE) or as a percentage of the total disk (MINPERCENT% with a ’%’
character), defaulting to 100Kb if neither are specified. If the free disk space falls below this threshold, then the corre-
sponding dskErrorFlag instance will be set to 1, and a suitable description message reported via the dskErrorMsg instance.
Note: This situation will not automatically trigger a trap to report the problem - see the DisMan Event MIB section later.
So, How can i trigger a trap to report the problem?
If dskErrorFlag state change then it should fire a snmptrap but it wont happen thats why i am asking, what are the things that i am missing from above configuration(when i restart the snmpd service it's firing the snmptrap)
Please anybody assist me..
I hope that I have configured my linux snmpd as an agent and it is monitoring some ErrorFlags if some changes occurred in ErrorFlags, this agent should fire the trap.
Here i have mentioned to send trap to which snmptrapd
Quote:
trap2sink localhost public 166
This is my snmptrap.conf, i hope if a trap trigger from my agent linux machine it will send it to snmptrapd(this snmptrapd listening on port 166 and community is public) and those traps foward to my mail account.
I would like to clarify about my way of expression because i feel that i am really failing to express my problem in a proper way.
1. Is the above mentioned thing true?
2. Is way of my presentation not clear?
3. Am i giving lack of information?
4. Am i confusing you?
5. Is there any contradiction in my question?
6. Is this not an achievable task?
The sole intention to ask these questions to develop my interpersonal skill. I really expecting your suggestion in this regards.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.