pass_persist with ksh script timeout
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am trying to extend snmpd with a ksh script on netbsd. The line I have in snmpd.conf is: pass_persist .1.3.6.1.4.1.8072.9999.9999 "/usr/pkg/bin/stdbuf --input=0 --output=0 --error=0 /root/kshtest" When I run my script with stdbuf from the command line, it works like so: <- PING -> PONG <- get <- .1.3.6.1.4.1.8072.9999.9999.1.1 -> .1.3.6.1.4.1.8072.9999.9999.1.1 -> integer -> 35 <- getnext <- .1.3.6.1.4.1.8072.9999.9999.1.1 -> .1.3.6.1.4.1.8072.9999.9999.1.2 -> integer -> 21 but when I try to snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.4.1.8072.9999.9999.1.1 from the command line, I get 'NET-SNMP-MIB::monoCount = No Such Instance currently exists at this OID' I also tried modifying the script so it works like this when run with stdbuf from the command line: <- PING -> PONG <- get <- .1.3.6.1.4.1.8072.9999.9999.1.1 -> .1.3.6.1.4.1.8072.9999.9999.1.1 -> integer -> 35 <- PING -> PONG <- getnext <- .1.3.6.1.4.1.8072.9999.9999.1.1 -> .1.3.6.1.4.1.8072.9999.9999.1.2 -> integer -> 21 but I still get 'NET-SNMP-MIB::monoCount = No Such Instance currently exists at this OID'. Can anyone help troubleshoot what I am doing wrong? Thank you,David Durham ------------------------------------------------------------------------------ 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-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users