XMC monitoring philosophy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎11-30-2018 02:39 PM
I'm currently evaluating and as far as I see XMC is relaying on data what are sent by devices either with syslog or snmp trap. I know that XMC is snmp polling the device for status and interfaces. Is it also possible to snmp poll a specific OID and raise an alarm if the returned value does not match the definition?
Regards
Dany
Regards
Dany
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-05-2018 12:49 PM
Hi Dany,
normally errors which stay longer like fan or PSU failures will be reported via trap serveral times within a fixed interval.
So if you loose one message the next will come few seconds or minutes later.
Regards
normally errors which stay longer like fan or PSU failures will be reported via trap serveral times within a fixed interval.
So if you loose one message the next will come few seconds or minutes later.
Regards
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-05-2018 12:34 PM
Hey thanks for your answers and the script template!
Our current monitoring system is mainly based on snmp status alarming. I'm considering to change towards syslog and trap alarming, because the effort to maintain all the monitors for different devices is huge. I'm only worried that syslog or traps might get lost in transport. For example you have a power supply failure and the device is sending a syslog or trap (udp) and the massge gets lost, you will probably never notice that. What are your opinions and experiences?
Our current monitoring system is mainly based on snmp status alarming. I'm considering to change towards syslog and trap alarming, because the effort to maintain all the monitors for different devices is huge. I'm only worried that syslog or traps might get lost in transport. For example you have a power supply failure and the device is sending a syslog or trap (udp) and the massge gets lost, you will probably never notice that. What are your opinions and experiences?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-04-2018 08:42 PM
Hello Dany,
here a short working Python example, running directly on an XMC Ubuntu installation (not on Windows!!!) without additional Python modules.
You will find a corresponding entry in you syslog on XMC, have a look.
Have fun.
Regards
Stephan
here a short working Python example, running directly on an XMC Ubuntu installation (not on Windows!!!) without additional Python modules.
You will find a corresponding entry in you syslog on XMC, have a look.
code:
import commands
#Change OID as you need. Here we request the SysContact.
commando = "/usr/bin/snmpget -v3 -u username -l authPriv -a SHA -x AES -X password -A password switchip 1.3.6.1.2.1.1.4.0"
ans= commands.getoutput(commando)
print(ans)
alarm = commands.getoutput("logger" + " " + ans)
print(alarm)
Have fun.
Regards
Stephan
Regards
Stephan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎12-04-2018 08:03 AM
Hello Dany,
I agree with M. Nees. This function does not exist at the moment.
But you can create a small script to check the oid and create an syslog entry if you receive a value not matching your definition.
That syslog event can trigger an alarm, too.
Regards
Stephan
I agree with M. Nees. This function does not exist at the moment.
But you can create a small script to check the oid and create an syslog entry if you receive a value not matching your definition.
That syslog event can trigger an alarm, too.
Regards
Stephan
Regards
Stephan
