-bash: event not found

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
KOUMNI
Posts: 5
Joined: Sun Oct 27, 2019 3:03 am

-bash: event not found

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: -bash: event not found

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked