Hi Martin, As you said, I have added echo "VAR: " . $preBasePath; on 23th line but it seems to be returning VAR and blank space. Also pear is available on server pear version PEAR Version: 1.10.12 PHP Version: 7.3.32 Zend Engine Version: 3.3.32 Running on: Linux 149-28-194-189.cprapid.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 Is there anything we can do? Please assist.. Thanks
Hi Martin, Please see the files and permissions. [root@var]# ll /usr/local/nagios/var/rw/nagios.cmd prw-rw---- 1 nagios nagcmd 0 Dec 4 17:14 /usr/local/nagios/var/rw/nagios.cmd [root@var]# grep nagios.cmd /usr/local/nagios/etc/nagios.cfg command_file=/usr/local/nagios/var/rw/nagios.cmd Also, RESTART command is passed when I press restart on NagiosQL. [1638618264] EXTERNAL COMMAND: RESTART_PROGRAM; [1638618264] PROGRAM_RESTART event encountered, restarting... [1638618265] Nagios 4.4.6 starting......
Hi Martin, It's been noted. And thank you for the great support! Thanks!
Hi Martin, Please ignore the previous reply. Something weird was going on with DB, I just ran a mysqlcheck and its going well now. It takes place quickly. So the demon will be restarted in graceful mode right? no hard restart, that's fine then. Thanks!
Hi Martin, I can see the hosts or services not immediately but definitely in 3 -5 mins, If I restart nagios demon it will be in secs. Thanks
Hi Martin, Please see the files and rights. [root@64 var]# id nagios uid=1000(nagios) gid=1000(nagios) groups=1000(nagios),1001(nagcmd) [root@64 var]# id apache uid=48(apache) gid=48(apache) groups=48(apache),1000(nagios),1001(nagcmd) prw-rw---- 1 nagios nagcmd 0 Dec 4 17:14 /usr/local/nagios/var/rw/nagios.cmd [root@64 var]# grep nagios.cmd /usr/local/nagios/etc/nagios.cfg command_file=/usr/local/nagios/var/rw/nagios.cmd Also, I could see the RESTART is passed and, It didn't restart the service until...
Hi Martin, Just one more thing.. I have imported and setup all the things as you said. Once I push restart nagios after all writing config files, its not restarting nagios service. Its still up and running on background without any downtime. I think it should show like uptime 2sec ago or like that. Is it something I need to care about? Thanks.
Hi Martin, Sorry to bother you again.. I have imported all checks, hosts and services as you guided. But I have seen an "imp_" tag with all my service configuration name. Can you please help me to get rid of it? It's harder to search on services list for a host. What change I need to be done on script. So that I can reimport all the service configurations. Thank you!