Hello,
how check if nagios is working and all is correct ?
some external script or another way
Mili
Hello,
how check if nagios is working and all is correct ?
some external script or another way
Mili
You want to check if Nagios is working?
You can verify your configuration:
nagios.sourceforge.net/docs/3_0/ … onfig.html
And check you web interface if it is up and working, simply by typing web address you assigned to Nagios to web browser. You should see hosts and services you’ve defined, and their check status. Just test all you need, it’s the best way to see if all is working good.
i need some periodical check if nagios process and notification is running
configuration is done and work fine
but if nagios crash I dont have info about it
Mili
how about writing a short script that emails you the result of “service nagios status” and “service nagios checkconfig” and run that in crontab every hour or something?
what if you dont get anything when running the check command. This is what i get:
Nagios-Serv nagios # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios 2.10
Copyright © 1999-2007 Ethan Galstad (nagios.org)
Last Modified: 10-21-2007
License: GPL
Reading configuration data…
***> One or more problems was encountered while processing the config files…
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
and my log file just tells me to run the nagios -v command:
Perhaps check nagios.cfg and .cfg’s contained within objects folder? I’m not an expert with nagios but thats what I’d try first.