Page 1 of 2
error web page Nagios
Posted: Wed Feb 20, 2013 8:40 am
by zik
Good Day ,
After success to start httpd service I enter to web page nagios he give me this message :
Code: Select all
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
When I did :nagios -v /etc/nagios/nagios.cfg
Code: Select all
Total Warnings: 61
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
in loge nagios I find this :
Code: Select all
[1361371574] Error: Unable to create temp file for writing status data!
If you have an idea how I can fix it I will be thankful .
Many Thanks
All The Best
Re: error web page Nagios
Posted: Wed Feb 20, 2013 12:52 pm
by abrist
Sound like a permission error, check:
It should be nagios:nagios. If not, try:
Code: Select all
chown nagios:nagios /usr/local/nagios
Re: error web page Nagios
Posted: Wed Feb 20, 2013 5:35 pm
by zik
excuse me but give me this message :
Code: Select all
ls: can not access / usr / local / nagios: No such file or such folder
when I can find ?
Many Thanks
Re: error web page Nagios
Posted: Wed Feb 20, 2013 5:56 pm
by sreinhardt
Did you happen to run ls "/ usr / local / nagios"? It seems that all of those have spaces in-between which should not be the case.
Re: error web page Nagios
Posted: Wed Feb 20, 2013 6:05 pm
by zik
no without space and give this message .
afther searching in nagios.cfg I found that is the path for nagios.tmp
Code: Select all
temp_file=/var/log/nagios/nagios.tmp
but when I go there I didn't find the file nagios.tmp
so I must create the file ?
Can you please help me
Many Thanks
Re: error web page Nagios
Posted: Thu Feb 21, 2013 4:51 am
by zik
The problem is fixed is just permission in folder nagios
but i do'nt receive E-mail notification in the past I receive it
I did one test:
Code: Select all
; <<>> DiG 9.5.2-RedHat-9.5.2-1.fc10 <<>> domainename.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34454
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;domainename.com. IN MX
;; AUTHORITY SECTION:
domainename.com. 3600 IN SOA W2KSER.domainename.com. hostmaster.domainename. 37941 900 600 86400 3600
;; Query time: 10 msec
;; SERVER: 10.5.5.1#53(10.5.5.1)
;; WHEN: Thu Feb 21 10:09:41 2013
;; MSG SIZE rcvd: 107
Have you an idea why I can not receive email .will be kind from your side if you can help me
Many Thanks
All The Best
Re: error web page Nagios
Posted: Thu Feb 21, 2013 11:34 am
by slansing
What folder was it you changed, and what permissions? can you show an listing of the directory with it's user:group and permissions?
Re: error web page Nagios
Posted: Thu Feb 21, 2013 1:45 pm
by zik
the folder was /var/log/nagios/
and now I can't receive notification by email the service postfix is running and up
Re: error web page Nagios
Posted: Thu Feb 21, 2013 2:31 pm
by abrist
run:
and post the results here.
Re: error web page Nagios
Posted: Thu Feb 21, 2013 5:05 pm
by zik
Good Day
here is:
Code: Select all
[root@server~]# ls -la /var/log/nagios
total 4644
drwxr-xr-x 3 nagios nagios 4096 févr. 21 21:57 .
drwxr-xr-x 6 root root 4096 févr. 21 04:08 ..
-rw-r--r-- 1 nagios nagios 4115418 févr. 21 21:24 nagios.log
-rw-r--r-- 1 nagios nagios 154147 févr. 21 14:24 objects.cache
-rw------- 1 nagios nagios 225244 févr. 21 21:24 retention.dat
drwxr-xr-x 3 root root 4096 févr. 14 11:25 spool
-rw-rw-r-- 1 nagios nagios 226483 févr. 21 21:57 status.dat
In log nagios I saw notification but strange I don't receive any email ?