Issue while adding new host for monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
chinmaypatil
Posts: 1
Joined: Mon Nov 10, 2025 11:49 pm

Issue while adding new host for monitoring

Post by chinmaypatil »

Hello,
I am configuring Nagios Core Version 4.5.0 and nagios plugin version 2.4.8 on Ubuntu 24.04 LTS and have everything set properly. Now when I add a new machine to monitor like deb12.cfg, it doesn't compile when added the define service section in the file. It throws an error as below:
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Error: Service check command './check_ncpa.py -t NagiosCore123 -M system/agent_version' specified in service 'NCPA Agent Version' for host 'deb12' not defined anywhere!
Checked 9 services.
Checked 2 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 25 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 1

Now I am not sure why its happening. I did installed it 2-3 months back using same version and it did worked but now its not.

If need any more info then please let me know I will share it ASAP.

Thank You.
User avatar
MaterazziSan
Posts: 30
Joined: Wed Apr 19, 2023 5:31 pm

Re: Issue while adding new host for monitoring

Post by MaterazziSan »

Hi,

I would check:
  • Host "deb12" definition.
  • Service definition.
  • Command definition.
Can you share those?

Best regards
Post Reply