i have no errors or warnings in my pre-flight!but when i enter the following /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
i get the following errors,can any one please in simply terms please give me a hand as im a little lost.i would appreciate any help
regards
robbie
Nagios 2.0b3 starting… (PID=1425)
sh: line 1: /check_load: No such file or directory
Warning: Return code of 127 for check of service ‘Current Load’ on
host ‘localhost’ was out of bounds. Make sure the plugin you’re trying
to run actually exists.
sh: line 1: /check_users: No such file or directory
Warning: Return code of 127 for check of service ‘Current Users’ on
host ‘localhost’ was out of bounds. Make sure the plugin you’re trying
to run actually exists.
sh: line 1: /check_ping: No such file or directory
Warning: Return code of 127 for check of service ‘PING’ on host
’localhost’ was out of bounds. Make sure the plugin you’re trying to
run actually exists.
sh: line 1: /check_disk: No such file or directory
Warning: Return code of 127 for check of service ‘Root Partition’ on
host ‘localhost’ was out of bounds. Make sure the plugin you’re trying
to run actually exists.
sh: line 1: /check_procs: No such file or directory
Warning: Return code of 127 for check of service ‘Total Processes’ on
host ‘localhost’ was out of bounds. Make sure the plugin you’re trying
to run actually exists.
Nagios 2.0b3 starting… (PID=2832)
sh: line 1: /check_ping: No such file or directory
Warning: Attempting to execute the command “/check_ping -H 127.0.0.1
-w 3000.0,80% -c 5000.0,100% -p 1” resulted in a return code of 127.
Make sure the script or binary you are trying to execute actually
exists…
Try running ps -A | grep nagios . If anything shows up nagios is running. Also check your web interface (yourserver/nagios/ ) and click on “process info”. If there are no error messages, nagios is running. You can also start/restart nagios by issuing the command /etc/init.d/nagios start or /etc/init.d/nagios restart. If the start command shows a PID, nagios is probably running.
Edit: the command syntax was wrong :o Edited Tue Jul 19 2005, 07:37AM ]
the httpd.conf is in the apache directory. depends from your system, it usually is in /etc/apache or /etc/httpd.
you should find it making a serach on the file system usign “whereis” or “find”.
Luca
PS: go one problem after the other, it makes not much senese working on the httpd.conf and se linux at the same time, first remove SELinux (which is known to give rpoblems with nagios from what i0ve seen on this forum) Edited Wed Jul 20 2005, 06:53AM ]
[1121853724] Nagios 2.0b3 starting… (PID=1628)
[1121853724] LOG VERSION: 2.0
[1121853724] Lockfile ‘/usr/local/nagios/var/nagios.lock’ is held by
PID 1611. Bailing out…[/quote]
That tells you that you are triing to start nagios, but nagios is already running.
Stop nagios
/etc/rc.d/init.d/nagios stop
ps -ef|grep nagios
Make sure that they are all dead, if not, kill them until the grep shows no nagios running.
Reboot your puter if you have to but kill them all FIRST.
Then use the -v again and make sure your config files are correct this time, before you attempt to start nagios. If you have rebooted, nagios will most likely already be started automatically, so use -v before you reboot.