1

I am new at learning the Nagios of 4.4.6 version. I have configured host configuration and service configuration in my Nagios CLI and restarted then everything updated on Nagios Web GUI (localhost/nagiosxi).

When I was updating "contact" in web GUI, it is updating on Nagios CLI of /usr/local/nagios/etc/contacts.cfg. But when I was configured my own "contact" in /usr/local/nagios/etc/contacts.cfg it has not been updating on web GUI.

James Z
  • 12,209
  • 10
  • 24
  • 44
Aravind
  • 59
  • 8

1 Answers1

1

Copy existing /usr/local/nagios/etc/contacts.cfg into /usr/local/nagios/etc/import. Change anything, add anything, then do "Apply Configuration". The file will be removed from the import folder, all new contacs will appear in contacts.cfg. All changes will also be applied. However, you cannot remove contacts using this procedure.

If you make any mistake in the cfg file, the existing configuration will not be changed (the revert mechanism will be used) but your cfg file will be removed from /usr/local/nagios/etc/import. Just have a spare copy somewhere.

Tested on recent Nagios XI 5.8.4.

meolic
  • 1,177
  • 2
  • 15
  • 41
  • Thank you very much @meolic , I have been trying for this for couple of days finally I got it, thank you thank you very much. – Aravind Jun 22 '21 at 17:32
  • Good to know that this work also on old 4.4.6. Please, mark the answer as useful and accepted if it solves your problem. – meolic Jun 22 '21 at 18:28