View previous topic :: View next topic |
Author |
Message |
njcwotx Guru


Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Fri Sep 29, 2006 6:36 am Post subject: |
|
|
Its a permissions problem...ok, I know its kind of obvious..but check these things...
in nagios.cfg find the lock file setting and see where it points...does it post to /var/run/nagios.pid ?
basically from what I can tell, the username setup in the nagios_user and nagios_group must be able to access this lock file.
in my case, I point all the /var stuff to a folder called /var/nagios and give the /var/nagios folder permissions to the user in my nagios_user and nagios_group settings.
let me know if this helps please or you have more questions. _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
 |
anidabi Tux's lil' helper

Joined: 05 Feb 2005 Posts: 102 Location: Finland
|
Posted: Fri Sep 29, 2006 1:40 pm Post subject: |
|
|
njcwotx wrote: | Its a permissions problem...ok, I know its kind of obvious..but check these things...
in nagios.cfg find the lock file setting and see where it points...does it post to /var/run/nagios.pid ?
basically from what I can tell, the username setup in the nagios_user and nagios_group must be able to access this lock file.
in my case, I point all the /var stuff to a folder called /var/nagios and give the /var/nagios folder permissions to the user in my nagios_user and nagios_group settings.
let me know if this helps please or you have more questions. |
Yes, this was just the case. Thanks for the information, now it works. I just had to change /var/run/nagios.pid to /var/nagios/nagios.pid.
But now, I had this in my nagios logs:
Code: |
SERVICE ALERT: localhost;Total Processes;UNKNOWN;SOFT;1;check_procs: Unknown argument - (null)
|
It doesn't seem to be a big problen yet so, I'll have to google about it more later.
Oh, one more thing. Has the config files changet since I didn't have any of those /etc/nagios/timeperiods.cfg, /etc/nagios/contactgroups.cfg, hostgroups.cfg, /etc/nagios/hostgroups.cfg, /etc/nagios/contacts.cfg, /etc/nagios/services.cfg, /etc/nagios/hosts.cfg in my /etc/nagio by default? I had to create them and when I tried to start nagios, it complained duplicate configuration information in /etc/nagios/cgi.cfg. So I had to comment out almost all from there and afterwards I noticed that atleast almost all those config parameter that are in separete files, are in separete section in /etc/nagios/cgi.cfg file. Isn't it more practical to use one big config file rather than several smaller ones? _________________ How do you do the things you do... |
|
Back to top |
|
 |
njcwotx Guru


Joined: 25 Feb 2005 Posts: 587 Location: Texas
|
Posted: Fri Sep 29, 2006 10:33 pm Post subject: |
|
|
anidabi wrote: | njcwotx wrote: | Its a permissions problem...ok, I know its kind of obvious..but check these things...
in nagios.cfg find the lock file setting and see where it points...does it post to /var/run/nagios.pid ?
basically from what I can tell, the username setup in the nagios_user and nagios_group must be able to access this lock file.
in my case, I point all the /var stuff to a folder called /var/nagios and give the /var/nagios folder permissions to the user in my nagios_user and nagios_group settings.
let me know if this helps please or you have more questions. |
Yes, this was just the case. Thanks for the information, now it works. I just had to change /var/run/nagios.pid to /var/nagios/nagios.pid.
But now, I had this in my nagios logs:
Code: |
SERVICE ALERT: localhost;Total Processes;UNKNOWN;SOFT;1;check_procs: Unknown argument - (null)
|
It doesn't seem to be a big problen yet so, I'll have to google about it more later. |
Try this link, its in the right direction. (the guy responding to the question seems a little terse doesnt he?)
http://www.meulie.net/portal_plugins/forum/forum_viewtopic.php?1437
seems the command in the checkcommands.cfg file for check_procs is looking for 3 arguments, find the "check_local_procs" entry in your services.cfg file and you will find something like "check_command check_local_procs!90!120!Z" (note this is a correct example I believe, yours may be missing a value in between the !!'s). Its possible the check command in the services.cfg file does not list the appropriate number of arguments.
anidabi wrote: |
Oh, one more thing. Has the config files changet since I didn't have any of those /etc/nagios/timeperiods.cfg, /etc/nagios/contactgroups.cfg, hostgroups.cfg, /etc/nagios/hostgroups.cfg, /etc/nagios/contacts.cfg, /etc/nagios/services.cfg, /etc/nagios/hosts.cfg in my /etc/nagio by default? I had to create them and when I tried to start nagios, it complained duplicate configuration information in /etc/nagios/cgi.cfg. So I had to comment out almost all from there and afterwards I noticed that atleast almost all those config parameter that are in separete files, are in separete section in /etc/nagios/cgi.cfg file. Isn't it more practical to use one big config file rather than several smaller ones? |
Hard to tell. Thare are changes. I setup nagios 1.x originally and migrated my files over to the newer 2.x versions. I can tell you I had them before and had to create them as blank if I remember. What I found most annoying was that the designer moved some config entries from one file to another and I had to use some fancy editing to fix the configs to several hundred lines in my configs to make them work properly. _________________ Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting. |
|
Back to top |
|
 |
pikkumyy n00b

Joined: 20 Nov 2002 Posts: 21 Location: Helsinki, Finland
|
Posted: Wed Jan 10, 2007 6:52 pm Post subject: |
|
|
After trying desperately for several weeks to install Nagios based on this documentation, I gave up completely.
There is a webconfig shit somewhere on sourceforge. Tried using it, but the fucking nagios shit just won't bloody fucking start, so I could use something pleasant to configure it. No, having to manually edit closer to two dozen config files is not pleasant; it compares to pouring liquid nitrogen to my rectum. |
|
Back to top |
|
 |
Earthwings Bodhisattva


Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Wed Jan 10, 2007 11:32 pm Post subject: |
|
|
pikkumyy wrote: | After trying desperately for several weeks to install Nagios based on this documentation, I gave up completely.
There is a webconfig shit somewhere on sourceforge. Tried using it, but the fucking nagios shit just won't bloody fucking start, so I could use something pleasant to configure it. No, having to manually edit closer to two dozen config files is not pleasant; it compares to pouring liquid nitrogen to my rectum. |
Please change your language to an appropriate level. _________________ KDE |
|
Back to top |
|
 |
Hideki n00b

Joined: 09 Mar 2003 Posts: 74
|
Posted: Mon Jan 29, 2007 12:40 am Post subject: |
|
|
Why don't you just middle-slash his words off...
And about Nagios...
I cannot believe how Nagios author felt like locking everything from top to bottom with the way he prefers...
Any web application forcing you to use apache/mysql combination or editing of httpd.conf just to run it is really getting old nowadays.
At least I got to get it running to show the top screen with the browser, and since I didn't need authentication, because the entire web server was already configured to run internally only, then I have no way of logging in, because Nagios relies on Apache authentication via .htaccess method... Not to mention, Nagios puts everything under it's own subdirectory... (/usr/nagios, /var/nagios... why doesn't it try to comply with the rest of the system?)
And developer think complication is something cool... great...
I found about Fruity to ease the administration, but... if there is an alternative that acts as just as good as Nagios, I'll never use Nagios for sure...which takes a week to get it to work as you want, which is sort of a joke.
Btw, does anyone know if I can somehow pass the htpasswd authentication username to server scripts without the htpasswd authentication without editing every CGI file to give environmental variables?
[Edit] : Never mind... found out how to turn off authentication in the config by grep'ing for 'auth' in the config dir Too much config and doc won't make me read but rather grep for keyword instead... |
|
Back to top |
|
 |
Hideki n00b

Joined: 09 Mar 2003 Posts: 74
|
Posted: Tue Jan 30, 2007 3:35 pm Post subject: |
|
|
Seriously... I gave up... bye nagios...
[The last thing I did with nagios... finally reading this 2 year old howto, got to set up a new host entry, but since it never updates the information, I go to update it manually, Nagios claims how I have turned off authentication is troublesome and how I should turn off the safe guard to invite trouble to proceed and I should read the CGI section of the very very long doc (which I can't even find, but my patience was already out) and I'm sure I'm not inviting trouble by using the system on my own but thanks for alerting... Every step is like walking in the deep mud... I'd go look for a much more modern implementation of similar service.]
Too bad people say this is the best OSS for this purpose. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|