NET-SNMP: Getting more detail into Disman Traps

你。 提交于 2019-12-04 18:45:25

That's actually what the -o switch is for: it lets you add additional objects to the notification being sent out. In your case, if you want the "helpful text" that is included in the error message value, you are doing the right thing by using the -o switch to include those objects. Why it's not working for you, I'm not sure. But you don't need a separate monitor line per row entry. Instead, use one that checks the value at every row. For example, the defaultMonitors configuration token actually specifies this:

monitor   -o prNames -o prErrMessage "process table" prErrorFlag != 0

Which checks every prErrorFlag at once.

The name you're using in quotes is just the name of the trigger, and that information isn't sent in the trap and you can't force it to be, unfortunately. It's simply an administrative name for the monitor that is used internally and in the DISMAN-MIB entries themselves to report the monitor.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!