Hi
I was wondering why I get a result in the cli but not in the browser
/usr/local/nagios/libexec/check_ssh_fortigate_env.pl -H x.x.x.x-u username -p password
OK : Hardware NORMAL , see details
and in the webinterface is says
could not get result of 'execute sensor list' command
so it is running the script and looks like to the correct ip and user and password
execute command works on cli but not in web
Re: execute command works on cli but not in web
It could be permissions. Make sure to test with the nagios user when you run from the command line:
Code: Select all
su - nagios
/usr/local/nagios/libexec/check_ssh_fortigate_env.pl -H x.x.x.x -u username -p passwordAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: execute command works on cli but not in web
Hey !! thankssss. that was indeed the problem.... thanks very much for the command !!!!!! realy cool !
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: execute command works on cli but not in web
Great!h2user wrote:Hey !! thankssss. that was indeed the problem.... thanks very much for the command !!!!!! realy cool !
Locking thread