Can you show an example of the command - I try in my case :
check_snmp -H 172.26.167.153 -C swirc2018! -o .1.3.6.1.4.1.11.5.7.5.7.1.1.1.1.4.9.0
but get a string output:
SNMP OK - " 5 Secs ( 24.1258%) 60 Secs ( 29.4616%) 300 Secs ( 18.4320%)" |
How can I parse it to an integer - I don't care about all the last 60s.... just want last value of now or last value of last 5 seconds ...etc?
What is the command?
I tried /usr/local/nagios/libexec/check_snmp -H 172.26.167.147 -C swirc2018! -o .1.3.6.1.4.1.11.5.7.5.7.1.1.1.1.4.9.0 -R \s60\sSecs\s\(\s*(\d+) but it didn't parse.
Please help? (-;