Forum Discussion
J_LE_42749
Nimbostratus
Jul 09, 2015Custom MIB: is that possible to launch an external bash script?
Hello,
I want to monitor the ASM slow transactions into a custom MIB, so that it gets graphs on an external monitoring system (MRTG for instance).
I wrote a small script that count the number of ...
J_LE_42749
Nimbostratus
Jul 10, 2015Hi Amolari and thanks for your reply.
Unfortunately it does not work either 😞
In the custom MIB config file (/config/snmp/custom_mib.tcl) if I return the status of command
[catch {exec /bin/bash /shared/count_slow_transac.sh} result] I am getting '1' (expecting '0' => no error)
My interpretation of this '1' output is that the snmp daemon is unable to run
exec /bin/bash /shared/count_slow_transac.sh command when getting polled against the custom OID.
But I don't understand why it cannot issue the command...
ps aux command shows that snmpd is running under root account so it cannot be a permission issue.
[root@bigip:Active:In Sync] shared ps aux | grep snmp
root 5982 0.0 0.0 1628 364 ? S Jun09 0:00 runsv rmonsnmpd
root 5984 0.0 0.0 1628 356 ? S Jun09 0:00 runsv nokiasnmpd
root 6145 0.0 0.0 1628 368 ? S Jun09 0:00 runsv snmpd
root 7684 0.3 0.2 33864 19364 ? S 09:42 0:00 /usr/sbin/snmpd -f -c /config/snmp/snmpd.conf -I-ifTable ifXTable ipAddressTable -Lsd -LF 6 /var/log/snmpd.log -p /var/run/snmpd.pid
root 7706 0.1 0.0 23036 6428 ? S 09:42 0:00 /usr/sbin/rmonsnmpd -f -c /config/snmp/subagents.conf -s -l /dev/null
root 8173 0.0 0.0 3128 756 pts/0 S+ 09:46 0:00 grep snmp
[root@bigip:Active:In Sync] shared
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects