Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
zik
Posts: 26 Joined: Wed Feb 13, 2013 4:01 am
Post
by zik » Wed Feb 20, 2013 8:40 am
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
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Wed Feb 20, 2013 12:52 pm
Sound like a permission error, check:
It should be nagios:nagios. If not, try:
Code: Select all
chown nagios:nagios /usr/local/nagios
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
zik
Posts: 26 Joined: Wed Feb 13, 2013 4:01 am
Post
by zik » Wed Feb 20, 2013 5:35 pm
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
sreinhardt
-fno-stack-protector
Posts: 4366 Joined: Mon Nov 19, 2012 12:10 pm
Post
by sreinhardt » Wed Feb 20, 2013 5:56 pm
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
zik
Posts: 26 Joined: Wed Feb 13, 2013 4:01 am
Post
by zik » Wed Feb 20, 2013 6:05 pm
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
zik
Posts: 26 Joined: Wed Feb 13, 2013 4:01 am
Post
by zik » Thu Feb 21, 2013 4:51 am
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
slansing
Posts: 7698 Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...
Post
by slansing » Thu Feb 21, 2013 11:34 am
What folder was it you changed, and what permissions? can you show an listing of the directory with it's user:group and permissions?
zik
Posts: 26 Joined: Wed Feb 13, 2013 4:01 am
Post
by zik » Thu Feb 21, 2013 1:45 pm
the folder was /var/log/nagios/
and now I can't receive notification by email the service postfix is running and up
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Thu Feb 21, 2013 2:31 pm
run:
and post the results here.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
zik
Posts: 26 Joined: Wed Feb 13, 2013 4:01 am
Post
by zik » Thu Feb 21, 2013 5:05 pm
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 ?