Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Error on "restart nagios" command
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Error on "restart nagios" command
#1298
Error on "restart nagios" command 7 Months, 3 Weeks ago Karma: 0
Hello,

I've got a problem and a question about the installation of NagiosQL.

First, I can't restart the Nagios daemon (or send the reload command as it was told in the last post). When I tried it wrote :

"Le démon Nagios ne tourne pas, impossible d'envoyer la commande de redémarrage !"

or in english :
"Nagios daemon is not running, cannot send restart command!"

When I'm connected on my server (Ubuntu 9.10), I can restart nagios by the command :
"service nagios stop" then "start".

The Nagios directory is correctly set, but it still don't work !


Another little question : When I have to update nagios.cfg, I have to comment the lines
#cfg_file=/usr/local/nagios/etc/objects/commands.cfg
#cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
#cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
#cfg_file=/usr/local/nagios/etc/objects/templates.cfg

If not, I have some errors due to duplicate definitions. Is it normal ?

Thanks for your reply
fabien.morel2002
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1300
Re:Error on "restart nagios" command 7 Months, 3 Weeks ago Karma: 4
The restart nagios command in NagiosQL does not restart the nagios daemon like your start/stop script. It only sends a RELOAD command to the nagios' command file.

Check your settings in Administration -> Domain -> Localhost for your nagios command file and nagios process file.

Read the documentation about nagios.cfg an those things above:

www.nagiosql.org/faq/31-general-document...3-documentation.html
martin
NagiosQL Founder
Posts: 303
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1301
Re:Error on "restart nagios" command 7 Months, 3 Weeks ago Karma: 0
Hi martin,

You're right ! I forgot to update some of my settings .
The binary file was correctly set but not the command file and PID.

Now it works ! Thanks !!

Suggestion : how about detecting the nagios version during installation of NagiosQL ? The path of the version 2.x and 3.x aren't the same, isn't it ?
fabien.morel2002
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1