Metrics does not show all members of hostgroup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cloudcom
Posts: 67
Joined: Tue Jul 02, 2013 1:41 am

Re: Metrics does not show all members of hostgroup

Post by cloudcom »

I do not know how I will explain more.
Metrics component does not show linux servers at all.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Metrics does not show all members of hostgroup

Post 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.
cloudcom
Posts: 67
Joined: Tue Jul 02, 2013 1:41 am

Re: Metrics does not show all members of hostgroup

Post 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!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Metrics does not show all members of hostgroup

Post by jdalrymple »

In your NagiosXI user interface:

Admin --> System Config --> System Profile --> Download Profile
cloudcom
Posts: 67
Joined: Tue Jul 02, 2013 1:41 am

Re: Metrics does not show all members of hostgroup

Post by cloudcom »

Thanks jdalrymple,
I sent profile.zip file by PM
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Metrics does not show all members of hostgroup

Post 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.
cloudcom
Posts: 67
Joined: Tue Jul 02, 2013 1:41 am

Re: Metrics does not show all members of hostgroup

Post by cloudcom »

Hi jdalrymple,

is there any progress?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Metrics does not show all members of hostgroup

Post 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.
cloudcom
Posts: 67
Joined: Tue Jul 02, 2013 1:41 am

Re: Metrics does not show all members of hostgroup

Post 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?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Metrics does not show all members of hostgroup

Post 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.
Locked