Page 2 of 3

Re: "No Ports Detected" Network Switch/Router setup

Posted: Thu Jan 12, 2017 1:22 pm
by dwhitfield
Are there services associated with the hosts that aren't showing up? Could you send us a screenshot of what you're seeing on the Service Detail page?

Re: "No Ports Detected" Network Switch/Router setup

Posted: Thu Jan 12, 2017 1:24 pm
by jspence
>>The offline install requires access to some repos. In that vein, what's the output of yum repolist?
Loaded plugins: ......
This system is not registered to .... Subscription Management....
repolist: 0

>>Also, the version you are running has security vulnerabilities which have been fixed in >>http://repo.nagios.com/nagiosxi-offline ... _64.tar.gz
>>I'd suggest upgrading before you get too far into your trial. That said, with the offline install, you are already >>protected from certain types of attacks.
I don't think the security threats will be an issue for me (stand alone system). Right?

Re: "No Ports Detected" Network Switch/Router setup

Posted: Thu Jan 12, 2017 2:06 pm
by dwhitfield
Did you scrub your profile? The screenshot you sent me in the PM doesn't match up with the profile you sent.

Did you have DVD repo and then removed it? I'm not sure how you got things installed without some sort of repo.

As for the security vulnerabilities, the nature of monitoring is that the machine will need to talk to something. Unless your entire environment is completely isolated from the Internet, then there is some risk. Even then, what if someone attacks from another machine on your network? Certainly, you've decreased the risk.

Re: "No Ports Detected" Network Switch/Router setup

Posted: Thu Jan 12, 2017 2:57 pm
by jspence
I ignored that part.
I also had to download a heck of a lot more rpms than were listed in the instructions.

Re: "No Ports Detected" Network Switch/Router setup

Posted: Thu Jan 12, 2017 3:01 pm
by jspence
>>Did you scrub your profile? The screenshot you sent me in the PM doesn't match up with the profile you sent.
The screen shot came after I added client1.cfg to the static dir.

>>Did you have DVD repo and then removed it? I'm not sure how you got things installed without some sort of repo.
This is the part I ignored.

>>As for the security vulnerabilities, the nature of monitoring is that the machine will need to talk to something. >>Unless your entire environment is completely isolated from the Internet, then there is some risk. Even then, >>what if someone attacks from another machine on your network? Certainly, you've decreased the risk.
I am completely off-line.

Re: "No Ports Detected" Network Switch/Router setup

Posted: Thu Jan 12, 2017 5:49 pm
by tgriep
Without seeing the client1.cfg file, I am mostly guessing.
That file is probably setup to use custom settings / configuration settings for plugins that are not installed on the system and that is what is causing the errors.
The best thing to do is to run a wizard for your device and not copy that file to the static folder unless that file is reconfigured to match the XI system.

Re: "No Ports Detected" Network Switch/Router setup

Posted: Fri Jan 13, 2017 3:14 pm
by jspence
Tested the following from terminal:
./check_nt -H 192.168.139.160 -s nagiosadmin -p 12489 -v CPULOAD -l 5,80,90 works fine.
./check_nt -H 192.168.139.160 -s nagiosadmin -p 12489 -v USEDDISKSPACE -l C -w 80 -c 95 invalid drive.

Before I tested this I refreshed my VM and reinstalled Nag, then used the autoWizard to detect the nodes.
I tested check_nt on a different rhel with nagios core on it and it works.

I'll be at a training course all next week.

Thanks.

Re: "No Ports Detected" Network Switch/Router setup

Posted: Fri Jan 13, 2017 3:37 pm
by tgriep
Do you see any errors in the nsclient.log file on the windows host while you run the check_nt USEDDISKSPACE check from the command line?

Re: "No Ports Detected" Network Switch/Router setup

Posted: Tue Jan 24, 2017 12:14 pm
by jspence
>> Do you see any errors in the nsclient.log file on the windows host while you run the check_nt USEDDISKSPACE check from the command line?

Yes, Ip is incorrect. It is working now.

Working on the switch now.
From Configure Monitoring Setup > Advanced Configuration > Recently Changed Hosts and Services > Switch > Host management...

The command is check_snmp. Seems like something is not getting saved to one of the .cfg files. For example in the 'Host Management' screen the 'Command view' doesn't change (ie only -H $HOSTADDRESS$ $ARGS1$ are there). When I run 'Check command' it looks the same. I clicked the 'save' button, but no change. The /hosts/switch.cfg file has the additional args. In the /Services/switch.cfg file there aren't any changes/additional to check_snmp.

Thanks,
Jspence.

Re: "No Ports Detected" Network Switch/Router setup

Posted: Tue Jan 24, 2017 12:15 pm
by jspence
Edit>>
Sorry, instead of /services/switch.cfg I meant commands.cfg.