Monitoring service of remote linux server

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.
Locked
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Monitoring service of remote linux server

Post by t3dus »

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
budabot.PNG (10.79 KiB) Viewed 1552 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
furybot.PNG (8.68 KiB) Viewed 1552 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring service of remote linux server

Post by scottwilkerson »

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/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
t3dus
Posts: 161
Joined: Thu Feb 04, 2016 3:46 pm
Location: IA
Contact:

Re: Monitoring service of remote linux server

Post by t3dus »

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:

Re: Monitoring service of remote linux server

Post by scottwilkerson »

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

Code: Select all

https://IP_ADDRESS:5693/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked