Hi Again, Just to add that I'm configuring my traps using the monitor directive in snmpd.conf. The relevant lines from my conf file are:
notificationEvent messageQueueNotification razorgateSmtpStatusCountersNotification -m monitor -r 60 -e messageQueueNotification messageQueueIsZero OWM-rg-mib::razorgateSCMessagesQueued == 0 Thanks, Tim -----Original Message----- From: Tim Culhane [mailto:tim.j.culh...@gmail.com] Sent: 18 March 2015 12:18 To: net-snmp-us...@lists.sourceforge.net Subject: smilint returns error: failed to locate MIB module `UCD-SNMP-MIB' Hi, Apologies for cross posting: I want to generate a notification in which the current date and time is included as a field value. The object versionCDate in the UCD-SNMP-MIB mib will return the current date and time based on a call to ctime. I have created a notification-type object in my mib file, see attached which includes versionCDate as one of its objects. I have included UCD-SNMP-MIB in my list of imports at the top of the mib file so that ucdavis is included. However, when I run smilint I get the error: ./OWM--rg-mib:7: failed to locate MIB module `UCD-SNMP-MIB-rg-mib:7: failed to locate MIB module `UCD-SNMP-MIB' ./OWM-rg-mib:66: unknown object identifier label `versionCDate' ./OWM-rg-mib:65: object `versionCDate' of notification `razorgateSmtpStatusCountersNotification' must be a scalar or column The UCD-SNMP-MIB.txt file is definitely present in the same directory under/usr/local/share/snmp/mibs. Interestingly enough smilint also reports an error for the UCD-SNMP-MIB as in: ./UCD-SNMP-MIB.txt:1111: index element `mrIndex' of row `mrEntry' should but cannot have a size restriction But I'm not sure if this is a cause of why UCD-SNMP-MIB can't be found by my mib file. Anybody know how I can fix this or in some other way include the current date and time in my notification payload? Thanks, Tim ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders