Hello.
sorry for annoying anyone who has already answered this question but any help would be really appreciated
when i type in
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
i get the following error
/usr/local/nagios/bin/nagios/nagios.cfg: line 892: syntax error near
unexpected token |' /usr/local/nagios/bin/nagios/nagios.cfg: line 892:illegal_macro_output_chars=`~$:cry:ā"<>ā
my line looks the sameā¦ (there are no quotes but i think this comes from the check outputā¦
Try deleting the line and resinerting itā¦ could be theres a special character somewhere hiddenā¦
Checking servicesā¦
Error: There are no services defined!
Checked 0 services.
Checking hostsā¦
Error: There are no hosts defined!
Checked 0 hosts.
Checking host groupsā¦
Error: There are no host groups defined!
Checked 0 host groups.
Checking service groupsā¦
Checked 0 service groups.
Checking contactsā¦
Error: There are no contacts defined!
Checked 0 contacts.
Checking contact groupsā¦
Error: There are no contact groups defined!
Checked 0 contact groups.
Checking service escalationsā¦
Checked 0 service escalations.
Checking service dependenciesā¦
Checked 0 service dependencies.
Checking host escalationsā¦
Checked 0 host escalations.
Checking host dependenciesā¦
Checked 0 host dependencies.
Checking commandsā¦
Checked 16 commands.
Checking time periodsā¦
Checked 1 time periods.
Checking extended host info definitionsā¦
Checked 0 extended host info definitions.
Checking extended service info definitionsā¦
Checked 0 extended service info definitions.
Checking for circular paths between hostsā¦
Checking for circular host and service dependenciesā¦
Checking global event handlersā¦
Checking obsessive compulsive processor commandsā¦
Checking misc settingsā¦
Warning: Nothing specified for illegal_macro_output_chars variable!
Follow the docs and define a host and a service associated to the hostā¦
now that you are getting only a warning for illegal_macro_output_chars you could try reinsertign at least some of the chars which were in the original stringā¦
usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
is the path, i appreciate the you getting back im still getting the same errors i looked over the permission any other ideas plz?
Well, if you are getting the following error, than something is wrong with your file locations or definitions. Why does it say ā/usr/local/nagios/bin/nagios/nagios.cfg: line 892: syntax errorā That is not where the nagios.cfg is supposed to be. You need to verify that is what the error is, since I wonāt be able to think past that gross error.
[quote=āglynnerā]Hello.
sorry for annoying anyone who has already answered this question but any help would be really appreciated
when i type in
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
i get the following error
/usr/local/nagios/bin/nagios/nagios.cfg: line 892: syntax error near
unexpected token |' /usr/local/nagios/bin/nagios/nagios.cfg: line 892:illegal_macro_output_chars=`~$:cry:ā"<>ā
Nagios 2.0b3 startingā¦ (PID=13530)
Warning: Nothing specified for illegal_macro_output_chars variable!
sh: line 1: /check_load: No such file or directory
Warning: Return code of 127 for check of service āCurrent Loadā on
host ālocalhostā was out of bounds. Make sure the plugin youāre trying
to run actually exists.
Nagios 2.0b3 startingā¦ (PID=21794)
Warning: Nothing specified for illegal_macro_output_chars variable!
sh: line 1: /check_load: No such file or directory
Warning: Return code of 127 for check of service āCurrent Loadā on
host ālocalhostā was out of bounds. Make sure the plugin youāre trying
to run actually exists.
sh: line 1: /check_users: No such file or directory
Warning: Return code of 127 for check of service āCurrent Usersā on
host ālocalhostā was out of bounds. Make sure the plugin youāre trying
to run actually exists.
sh: line 1: /check_ping: No such file or directory
Warning: Return code of 127 for check of service āPINGā on host
ālocalhostā was out of bounds. Make sure the plugin youāre
trying to run actually exists.
sh: line 1: /check_disk: No such file or directory
Warning: Return code of 127 for check of service āRoot Partitionā on
host ālocalhostā was out of bounds. Make sure the plugin youāre trying
to run actually exists.
sh: line 1: /check_procs: No such file or directory
Warning: Return code of 127 for check of service āTotal Processesā on
host ālocalhostā was out of bounds. Make sure the plugin youāre trying
to run actually exists.
sh: line 1: /check_load: No such file or directory
This is due to the services u trying to run in the plugins are already define in minimal.cfg file. They actually exist in the checkcommands.cfg. Both bigger.cfg and minimal.cfg are sample files on how to define services, host, etc.