Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
t3dus
Posts: 161 Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:
Post
by t3dus » Tue Dec 04, 2018 1:36 pm
So I have my nagios server at my house monitoring some stuff on an external linux server but I'm not quite sure how I can monitor a service of a remote linux server?
For windows I'd probably do something like this but what would I do for linux services monitoring?
Code: Select all
define service{
use generic-service
host_name Matt-i7
service_description Explorer
check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
notifications_enabled 0
}
I have a service called "furybot" which is basically just a Budabot chat bot i use for a game I play. it shows up in htop like this
budabot.PNG (10.79 KiB) Viewed 1550 times
However I'm not sure how i can monitor that in Nagios.
As you can see below it's a custom service I setup.
furybot.PNG (8.68 KiB) Viewed 1550 times
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Dec 05, 2018 9:23 am
For monitoring services on a Linux machine you will need to install an agent on the Linux servers such as NCPA
See the following link for documentation and download instructions
https://www.nagios.org/ncpa/
t3dus
Posts: 161 Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:
Post
by t3dus » Wed Dec 05, 2018 11:30 am
scottwilkerson wrote: For monitoring services on a Linux machine you will need to install an agent on the Linux servers such as NCPA
See the following link for documentation and download instructions
https://www.nagios.org/ncpa/
Well I knew that and I have no problem doing that. My question is trying to figure out how my definition would look for a custom service like that.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Dec 05, 2018 12:18 pm
There is a services section here
Code: Select all
https://www.nagios.org/ncpa/help.php#api-modules-services
something like this
Code: Select all
./check_ncpa.py -H <your IP> -t '<your token>' -M 'services' -q 'service=Dhcp,status=running'
NCPA also has a web UI on servers it is installed on that can show what is available to be monitored in the API tab