Page 2 of 3

Re: Metrics does not show all members of hostgroup

Posted: Mon Apr 27, 2015 4:51 am
by cloudcom
I do not know how I will explain more.
Metrics component does not show linux servers at all.

Re: Metrics does not show all members of hostgroup

Posted: Mon Apr 27, 2015 2:14 pm
by jdalrymple
I'm sorry, I understand your frustration, I simply still am unable to reproduce the symptoms you're seeing.

I have added services to individual hosts with hostgroups defined in 2 different ways, I've added the hostgroups to the services to be monitored, I simply an unable to reproduce the broken behavior.

I wonder - would you like to PM us your configuration then maybe something will jump out at me as to why you're seeing the results you are? Your profile.zip should have the information we'd need to further troubleshoot if you'd like to go that route.

Re: Metrics does not show all members of hostgroup

Posted: Tue Apr 28, 2015 4:04 am
by cloudcom
No problem. All of us try to fix the issue :)

Where is the profile.zip file?
I found "getprofile.sh" under "/usr/local/nagiosxi/html/includes/components/profile" path.
I run that file but got some errors:

Please wait.......
./getprofile.sh: line 8: /usr/local/nagiosxi/var/components/profile/nagios.txt: No such file or directory
Creating nagios.txt...
./getprofile.sh: line 12: /usr/local/nagiosxi/var/components/profile/perfdata.txt: No such file or directory
Creating perfdata.txt...
./getprofile.sh: line 16: /usr/local/nagiosxi/var/components/profile/npcd.txt: No such file or directory
Creating npcd.txt...
./getprofile.sh: line 20: /usr/local/nagiosxi/var/components/profile/cmdsubsys.txt: No such file or directory
Creating cmdsubsys.txt...
./getprofile.sh: line 24: /usr/local/nagiosxi/var/components/profile/eventman.txt: No such file or directory
Creating eventman.txt...
./getprofile.sh: line 28: /usr/local/nagiosxi/var/components/profile/systemlog.txt: No such file or directory
Creating systemlog.txt...
./getprofile.sh: line 32: /usr/local/nagiosxi/var/components/profile/apacheerrors.txt: No such file or directory
Creating apacheerrors.txt...
./getprofile.sh: line 36: /usr/local/nagiosxi/var/components/profile/mysqllog.txt: No such file or directory
Creating mysqllog.txt...
./getprofile.sh: line 40: /usr/local/nagiosxi/var/components/profile/memorybyprocess.txt: No such file or directory
./getprofile.sh: line 42: /usr/local/nagiosxi/var/components/profile/filesystem.txt: No such file or directory
./getprofile.sh: line 43: /usr/local/nagiosxi/var/components/profile/filesystem.txt: No such file or directory
Creating filesystem.txt...
./getprofile.sh: line 47: /usr/local/nagiosxi/var/components/profile/psaef.txt: No such file or directory
Dumping PS - AEF to psaef.txt...
./getprofile.sh: line 51: /usr/local/nagiosxi/var/components/profile/top.txt: No such file or directory
Creating top log...
cp: cannot create regular file `/usr/local/nagiosxi/var/components/profile/': Is a directory
Adding latest snapshot to: /usr/local/nagiosxi/html/includes/components/profile
zip warning: name not matched: profile

zip error: Nothing to do! (try: zip -r profile.zip . -i profile)
Zipping logs directory...
Backup and Zip complete!

Re: Metrics does not show all members of hostgroup

Posted: Tue Apr 28, 2015 9:28 am
by jdalrymple
In your NagiosXI user interface:

Admin --> System Config --> System Profile --> Download Profile

Re: Metrics does not show all members of hostgroup

Posted: Tue Apr 28, 2015 2:03 pm
by cloudcom
Thanks jdalrymple,
I sent profile.zip file by PM

Re: Metrics does not show all members of hostgroup

Posted: Tue Apr 28, 2015 2:25 pm
by jdalrymple
I believe the *problem* (or at least the biggest difference) is that your disk/load/etc checks are SNMP checks. I'm using NRPE. I'll verify this behavior with the devs and see if it can be altered.

Re: Metrics does not show all members of hostgroup

Posted: Mon May 04, 2015 6:05 am
by cloudcom
Hi jdalrymple,

is there any progress?

Re: Metrics does not show all members of hostgroup

Posted: Mon May 04, 2015 9:28 am
by jdalrymple
Sorry, there was and I totally forgot to update you - my apologies.

The problem is definitely the SNMP bit. We are not including SNMP check results into our metrics component today because the results from SNMP aren't formatted in standard fashion from one SNMP server to the next. We are currently only aggregating metrics from the NRPE results. There has been some time-investment by the developers to add SNMP checks in, but it doesn't currently have a targeted release date.

Re: Metrics does not show all members of hostgroup

Posted: Wed May 06, 2015 5:38 am
by cloudcom
Hi, jdalrymple
No problem.

I used linux-snmp wizard for linux servers because nrpe installation requires internet connection and my linux servers can not connect to the internet.
As far as i know offline installation of nrpe is a bit complex , right?

Re: Metrics does not show all members of hostgroup

Posted: Wed May 06, 2015 9:57 am
by jdalrymple
My opinion is no, although some may disagree. You're right SNMP is nice because it's *just there* - but compiling NRPE from the source is fairly trivial. Same goes with the plugins which would also be required.

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

There are a couple of prerequisites - make, gcc, openssl-devel - perhaps others. It should all be in that document though.