Bulk loaded hosts, but they are reporting down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Bulk loaded hosts, but they are reporting down

Post by andrewatmacys »

I bulk loaded hosts onto an installation of Nagios XI, but every single one is reporting down. I will attach pictures, it's giving me a strange error I've never encountered before. Please let me know how to fix this so I can run host checks on these servers.
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Bulk loaded hosts, but they are reporting down

Post by cdienger »

check_imcp is one of a couple plugins that require special permissions. Doing a "ll /usr/local/nagios/libexec/check_icmp" should show something like:

-rwsrwxr-x 1 root nagios 181827 Jan 26 2017 check_icmp

If you see something different try changing permissions with:

chmod 4775 /usr/local/nagios/libexec/check_icmp
chown root:nagios /usr/local/nagios/libexec/check_icmp
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Bulk loaded hosts, but they are reporting down

Post by andrewatmacys »

In performing the above commands, I noticed the rest of the commands in that directory were not owned by Nagios, should they be?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Bulk loaded hosts, but they are reporting down

Post by cdienger »

Most of the other plugins will likely have permissions set to something like:

-rwxrwxr-x. 1 apache nagios 2791 Mar 26 10:35 utils.sh


This is default and okay.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Bulk loaded hosts, but they are reporting down

Post by andrewatmacys »

Unfortunately I am still encountering the same error as before. Should I remove the hosts and reload them?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Bulk loaded hosts, but they are reporting down

Post by cdienger »

Were the permissions set correctly on check_icmp? What's the output of:

ll /usr/local/nagios/libexec/check_icmp

The host can be deleted and recreated but the problem will remain if the permissions are not set. Another option would be to switch to check_ping which effectively does the same job but doesn't require the setuid bit to be set.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Bulk loaded hosts, but they are reporting down

Post by andrewatmacys »

-rwxrwxr-x 1 root nagios 181827 Apr 17 15:11 /usr/local/nagios/libexec/check_icmp

This is the output, it seems correct from the example given earlier.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Bulk loaded hosts, but they are reporting down

Post by cdienger »

There is a slight difference actually. The setuid(the s in -rwsrwxr-x) isn't set. To set it run:

chmod 4775 /usr/local/nagios/libexec/check_icmp
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked