Hi,
first of all thanks for your fast response
I hope that I have pulled the right command line from the debug log.
[2019-08-08 08:43:36 +0200] notice/Process: Running command '/usr/lib/nagios/plugins/check_interfaces' '--bandwidth' '5' '--hostname' '10.1.36.13' '--lastcheck' '1565246557' '--match-aliases' '--perfdata' 'interfaces::check_multi::plugins=1 interfaces::check_multi::time=0.16 device::check_snmp::uptime=35570878s 1_Gigabit_-_Level::check_snmp::inOctets=2975585594814c 1_Gigabit_-_Level::check_snmp::outOctets=4661973286683c 1_Gigabit_-_Level::check_snmp::inDiscards=0c 1_Gigabit_-_Level::check_snmp::outDiscards=0c 1_Gigabit_-_Level::check_snmp::inErrors=2c 1_Gigabit_-_Level::check_snmp::outErrors=0c 1_Gigabit_-_Level::check_snmp::inUcast=3665987313c 1_Gigabit_-_Level::check_snmp::outUcast=632641836c 1_Gigabit_-_Level::check_snmp::speed=1000000000' '--regex' '^UpC': PID 8495
[2019-08-08 08:43:36 +0200] notice/Process: PID 8495 ('/usr/lib/nagios/plugins/check_interfaces' '--bandwidth' '5' '--hostname' '10.1.36.13' '--lastcheck' '1565246557' '--match-aliases' '--perfdata' 'interfaces::check_multi::plugins=1 interfaces::check_multi::time=0.16 device::check_snmp::uptime=35570878s 1_Gigabit_-_Level::check_snmp::inOctets=2975585594814c 1_Gigabit_-_Level::check_snmp::outOctets=4661973286683c 1_Gigabit_-_Level::check_snmp::inDiscards=0c 1_Gigabit_-_Level::check_snmp::outDiscards=0c 1_Gigabit_-_Level::check_snmp::inErrors=2c 1_Gigabit_-_Level::check_snmp::outErrors=0c 1_Gigabit_-_Level::check_snmp::inUcast=3665987313c 1_Gigabit_-_Level::check_snmp::outUcast=632641836c 1_Gigabit_-_Level::check_snmp::speed=1000000000' '--regex' '^UpC') terminated with exit code 0
I’ve executed the command directly on the command line and here is the result:
OK: 1 interface found | interfaces::check_multi::plugins=1 time=0.12 device::check_snmp::uptime=35570967s 1_Gigabit_-_Level::check_snmp::inOctets=2977249923470c outOctets=4661983259826c inDiscards=0c outDiscards=0c inErrors=2c outErrors=0c inUcast=3667151309c outUcast=632790975c speed=1000000000
[WARNING] 1 Gigabit - Level is up 149.60Mbps(14.96%)/896.46kbps(0.09%)
I am a little bit confused about the multiline result. Never seen this before…
Cheers,
Bjoern