Page 1 of 1

-bash: event not found

Posted: Sun Oct 27, 2019 4:24 am
by KOUMNI
Hello
I'm trying to execute this command

Code: Select all

check_local_mrtgtraf!/var/www/mrtg/172.20.232.1_ten-gigabitethernet1_0_4.log!AVG!1000000,1000000!5000000,5000000!10
But I am getting this error

Code: Select all

-bash: !/var/www/mrtg/172.20.232.1_ten: event not found
knwing that this files exists

Code: Select all

nagios@sn-srv-nagios:/var/www/mrtg$ ll 172.20.232.1_ten-gigabitethernet1_0_4.log
-rw-r--r-- 1 nagios nagios 48225 Oct 27 10:05 172.20.232.1_ten-gigabitethernet1_0_4.log
Can you identify where I went wrong
Thanks in advance

Re: -bash: event not found

Posted: Mon Oct 28, 2019 9:03 am
by scottwilkerson
This is not a command you can directly run from the command line, you would need to lookup the command definition in nagios for check_local_mrtgtraf and then replace all the macros to get what would be run from the command line