nscott wrote:When you click those gears that are next to the red exclamations, there should be a menu that shows up, allowing you to restart the service. Does it allow you to restart the services?
When the autodiscovery fails, how does it fail? Does it say no hosts found, or does it just spin forever?
Well. I reverted the snapshot of my NagiosXI and I'm running without any of your scripts. I tried to run an Auto Discovery of the same segment that the NagiosXI is running on. This time, it found hosts on the segment!!! I feel like a fool now, even though I'm not sure if I made a mistake. Before reinstalling Nagios, I could leave Auto Discovery for hours, even over night, without ending. As you describe like "spin forever". I did a few tests with different results.
Nagios Auto Discover on same segment as Nagios = 15 minutes, 40 hosts
Nagios Auto Discover on other segment as Nagios = 10 minutes, 0 hosts (even though I have many hosts here
I'm still trying to find out why Nagios can't "Auto Discover" hosts on segments than the one it's directly connected to. There is no problem if I configure it manually.
Well. ...I still don't know why it didn't work before and why some things still doesn't work. I think we can close this thread for now. I'll keep making snapshots every time I configure anything in Nagios.
Ditlev - Nagios newbie
Nagios XI, 2011R1.6, 32bit
Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
nscott wrote:When you click those gears that are next to the red exclamations, there should be a menu that shows up, allowing you to restart the service. Does it allow you to restart the services?
When the autodiscovery fails, how does it fail? Does it say no hosts found, or does it just spin forever?
Hmmm... Problem with hosts that doesn't disapear still persists. I tried your script again, just to give you an answer on your question about the abillity to restart the services.
The answer is no. I get an error. Actually the total output from the script looks like this:
[root@localhost tmp]# chmod +x file.php\?id\=750
[root@localhost tmp]# ./file.php\?id\=750
chmod: cannot access `/usr/local/nagios/libexec/check_postgres.pl': No such file or directory
chown: cannot access `/usr/local/nagios/libexec/check_postgres.pl': No such file or directory
chmod: cannot access `/usr/local/nagios/libexec/check_sip': No such file or directory
chown: cannot access `/usr/local/nagios/libexec/check_sip': No such file or directory
chmod: cannot access `/usr/local/nagios/libexec/check_mssql': No such file or directory
chown: cannot access `/usr/local/nagios/libexec/check_mssql': No such file or directory
chmod: cannot access `/usr/local/nagios/libexec/check_asterisk.pl': No such file or directory
chown: cannot access `/usr/local/nagios/libexec/check_asterisk.pl': No such file or directory
chmod: cannot access `/usr/local/nagios/libexec/check_mysql_health': No such file or directory
chown: cannot access `/usr/local/nagios/libexec/check_mysql_health': No such file or directory
chmod: cannot access `/usr/local/nagios/var/stats/21854047': No such file or directory
chown: cannot access `/usr/local/nagios/var/stats/21854047': No such file or directory
chmod: cannot access `/usr/local/nagios/var/spool/perfdata/service-perfdata.1311242854': No such file or directory
chown: cannot access `/usr/local/nagios/var/spool/perfdata/service-perfdata.1311242854': No such file or directory
chmod: cannot access `/usr/local/nagios/var/spool/perfdata/host-perfdata.1311242854': No such file or directory
chown: cannot access `/usr/local/nagios/var/spool/perfdata/host-perfdata.1311242854': No such file or directory
chmod: cannot access `/usr/local/nagios/share/images/logos/passivecheck.png': No such file or directory
chown: cannot access `/usr/local/nagios/share/images/logos/passivecheck.png': No such file or directory
chmod: cannot access `/usr/local/nagios/share/images/logos/snmp.png': No such file or directory
chown: cannot access `/usr/local/nagios/share/images/logos/snmp.png': No such file or directory
chmod: cannot access `/usr/local/nagios/share/images/logos/passiveobject.png': No such file or directory
chown: cannot access `/usr/local/nagios/share/images/logos/passiveobject.png': No such file or directory
chmod: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241099.txt': No such file or directory
chown: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241099.txt': No such file or directory
chmod: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241143.tar.gz': No such file or directory
chown: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241143.tar.gz': No such file or directory
chmod: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241099.tar.gz': No such file or directory
chown: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241099.tar.gz': No such file or directory
chmod: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241143.txt': No such file or directory
chown: cannot access `/usr/local/nagiosxi/nom/checkpoints/nagioscore/1311241143.txt': No such file or directory
chmod +x "/usr/local/nagios/share/perfdata";
chmod +x "/usr/local/nagios/share/perfdata/localhost";
chmod +x "/usr/local/nagios/share/perfdata/1.1.1.1";
chmod +x "/usr/local/nagios/share/perfdata/1.1.1.2";
chmod +x "/usr/local/nagios/share/perfdata/www.google.com";
chmod +x "/usr/local/nagios/share/perfdata/1.1.1.3";
chmod +x "/usr/local/nagios/share/perfdata/.pnp-internal";
chmod +x "/usr/local/nagios/share/perfdata/www.yahoo.com";
chmod +x "/usr/local/nagios/share/perfdata/1.1.1.4";
(IP's slightly modified)
You do not have the required permissions to view the files attached to this post.
Ditlev - Nagios newbie
Nagios XI, 2011R1.6, 32bit
Operating system
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
CentOS release 5.6 (Final)
Ok, let tackle the Nagios and Database Backend issue first, since that is very important. First, see if either service is running to begin with:
killall -9 nagios
killall -9 ndo2db #These may fail, and thats fine
service nagios status
service ndo2db status
Are they running? If they aren't what happens when you try to restart them? To restart them, use the same code as above, only replace 'status' with 'start'. Are they giving errors back? If they are, whats the result of:
nscott wrote:Ok, let tackle the Nagios and Database Backend issue first, since that is very important. First, see if either service is running to begin with:
killall -9 nagios
killall -9 ndo2db #These may fail, and thats fine
service nagios status
service ndo2db status
Are they running? If they aren't what happens when you try to restart them? To restart them, use the same code as above, only replace 'status' with 'start'. Are they giving errors back? If they are, whats the result of: