Page 2 of 2

Re: Localhost Settings

Posted: Wed Feb 05, 2020 1:20 pm
by nickanderson1982
I tried running those commands but FirewallD is not running.

objects]# ls /usr/local/nagios/libexec/
check_apt check_dig check_flexlm check_ifoperstatus check_log check_nntp check_nwstat check_real check_spop check_udp urlize
check_breeze check_disk check_ftp check_ifstatus check_mailq check_nntps check_oracle check_rpc check_ssh check_ups utils.pm
check_by_ssh check_disk_smb check_hpjd check_imap check_mrtg check_nt check_overcr check_sensors check_ssmtp check_uptime utils.sh
check_clamd check_dns check_http check_ircd check_mrtgtraf check_ntp check_ping check_simap check_swap check_users
check_cluster check_dummy check_icmp check_jabber check_nagios check_ntp_peer check_pop check_smtp check_tcp check_wave
check_dhcp check_file_age check_ide_smart check_load check_ncpa.py check_ntp_time check_procs check_snmp check_time negate

I'm not sure what to use under libexec. I'm trying to define services that will mimic what I have through NCPA. I just want to monitor disk, mem and cpu like I do on all my other servers. But locally on this linux server.

Re: Localhost Settings

Posted: Wed Feb 05, 2020 1:40 pm
by nickanderson1982
Is this link missing the examples
https://assets.nagios.com/downloads/nag ... linux.html

The sample configuration entries below reference objects that are defined in the sample config files (commands.cfg, templates.cfg, etc.) that are installed if you follow the quickstart. <----There is nothing listed. I need examples to go off of for cpu, mem and disk

Re: Localhost Settings

Posted: Wed Feb 05, 2020 5:39 pm
by Box293
There is one check_ncpa.py plugin that communicates with the NCPA agent on the other end, this needs to be installed on your Nagios Core server.

https://www.nagios.org/ncpa/getting-started.php#linux
Jump to the Active Checks (check_ncpa.py) section and it provides different examples.

Re: Localhost Settings

Posted: Thu Feb 06, 2020 9:56 am
by nickanderson1982
That is not the problem. I'm trying to monitor my core server. I want to monitor it like I monitor all my other servers. I want to add the processor, memory and hard disk just like I did through NCPA on all the other servers. But I don't know the proper syntax for the core localhost.cfg file to do this.

There is no examples to go off of that make sense to me. Does anyone have any examples of their core server localhost.cfg with processor, memory and hard disk checks

Re: Localhost Settings

Posted: Thu Feb 06, 2020 5:33 pm
by Box293
Simply remove all the "localhost' examples that exist. Then treat your local server just like any one of the other clients, use the same configs you use for your other servers.

Re: Localhost Settings

Posted: Fri Feb 07, 2020 4:53 pm
by nickanderson1982
Thank You Box329. I did what you recommended and that worked. You were right, I was reinventing the wheel when I just needed to setup NCPA and change around some syntax and it worked out. Thank You. Ticket Completed

Re: Localhost Settings

Posted: Mon Feb 10, 2020 8:14 am
by scottwilkerson
nickanderson1982 wrote:Thank You Box329. I did what you recommended and that worked. You were right, I was reinventing the wheel when I just needed to setup NCPA and change around some syntax and it worked out. Thank You. Ticket Completed
Great!

Locking thread