nagios command not found.
Posted: Wed Jun 08, 2016 11:33 am
Hey Guys,
Just installed nagios core 4.1.1 as per:
https://assets.nagios.com/downloads/nag ... 1465398477
My previous version was working in essence I could access it through apache. It was not configured and I deleted it left and right as I could not find any good documentation to uninstall it.
I have definitely followed the steps above but when I boot in and sudo to root, for nagios command I get the following.
[root@agent2 init.d]# nagios
-bash: nagios: command not found
[root@agent2 init.d]#
User nagios exist
[root@agent2 init.d]# cat /etc/passwd|grep nagios
nagios
495:492::/var/spool/nagios:/sbin/nologin
[root@agent2 init.d]#
No idea where is my user nagios admin which I did create with htppasswd command.
[root@agent2 init.d]# cat /etc/passwd|grep -i nagiosadmin
[root@agent2 init.d]# pwd
/etc/init.d
[root@agent2 init.d]# ./nagios status
nagios (pid 3264) is running...
[root@agent2 init.d]#
But when I try to access the nagios through http://localhost/nagios, I don't seems to have any luck.
What is annoying is when I run command locate nagios there is still something on system from nagios 3.5.1
The list is too big to paste here but I need some help to have nagios accessible through UI
Any help would be greatly appreciated
Thanks
Just installed nagios core 4.1.1 as per:
https://assets.nagios.com/downloads/nag ... 1465398477
My previous version was working in essence I could access it through apache. It was not configured and I deleted it left and right as I could not find any good documentation to uninstall it.
I have definitely followed the steps above but when I boot in and sudo to root, for nagios command I get the following.
[root@agent2 init.d]# nagios
-bash: nagios: command not found
[root@agent2 init.d]#
User nagios exist
[root@agent2 init.d]# cat /etc/passwd|grep nagios
nagios
[root@agent2 init.d]#
No idea where is my user nagios admin which I did create with htppasswd command.
[root@agent2 init.d]# cat /etc/passwd|grep -i nagiosadmin
[root@agent2 init.d]# pwd
/etc/init.d
[root@agent2 init.d]# ./nagios status
nagios (pid 3264) is running...
[root@agent2 init.d]#
But when I try to access the nagios through http://localhost/nagios, I don't seems to have any luck.
What is annoying is when I run command locate nagios there is still something on system from nagios 3.5.1
The list is too big to paste here but I need some help to have nagios accessible through UI
Any help would be greatly appreciated
Thanks