Snmp monitoring with centreon

This is centreon, it’s for snmp monitoring ( alternative to nagios ). Any plugins that work for nagios will work with centreon.

I first began using centreon back with ces 3.3. The latest release is 3.4.1. Version 3.3 was much quicker to setup since it came preconfigured with some commands, service checks, and a few other things already setup for you upon install.

This will likely become drawn out since I have a 6 month old, but should be possible to setup in a couple hours. So… i’ll just add to this post as I work through it.

(###)
(###)

Will need to visit https://www.centreon.com/en/ and get the iso file at https://download.centreon.com/

image

(###)
(###)

I use proxmox at home for virtualization.
In my experience their documentation will help you get through the install of the software/OS, but usually leaves out some minute details that might be needed sometimes.

https://documentation.centreon.com/docs/centreon/en/2.8.x/installation/from_centreon.html#installation

image

skip the test

image

setup hostname / ipv4
( specific to your network, screenshot is specific to my isolated network I recently created )

Use this option for an all in one setup
( still working on a distributed setup for at work use… but havent got it working exactly how I would like yet )

image

wait…

image

(###)
(###)

While I wait… I might as well setup DNS for this new server…
image
image

image

(###)
(###)

Ok, its done.
image
image

(###)

Edit the ntp.conf
image

ensure nslookup is working
image

(###)

Use a browser and go to the web page and get through the initial setup.

fix this error
image

image

restart httpd
refresh dependency check

image

Mostly just hit next and fill out the parts you have to.

image
image

image

(fyi… after setup… should run the secure script for mysql)

image
image

image

(###)

The next part is what takes the longest.
Since I plan to migrate to the latest version I will just be copying my configs/scripts over to the new server. ( you can also get the commands and service checks/templates from installing the older version )

You’ll notice there are not any hosts or checks being monitored
image

(###)

If you logout… you’ll notice you dont have the latest version
image

so update it all before you begin.
image

… waiting for updates to finish… brb

image

Time to update centreon now
image

image

image

image

image

(###)

FYI these are shortcuts… use them well

image

(###)

About to get to setting up the hosts / service check & templates.

image

So you cant setup any hosts if there are not any service checks and cannot create those without the commands. Will start with commands.
I will be focused on setting up checks for linux hosts.

image

Service Templates

If you structure these well, you can have services/notification and such tied to other templates which means if you want to make a change you just edit the one template instead of everything.


Ping-LAN


image
image

Notice how the bottom section of general info tab is blank and the so is the notification tab.

Host Template


First host … is itself

selecting yes would create all the services for that new host that you linked to the host template.

Use the poller tab to generate the config and restart the poller

image

(###)

Few minutes later…

1 Like

Nice post. I’ve not come across centreon before, are there any advantages over Nagios?

Havent used nagios except briefly back when you had to manually create all the config files by hand… or use a third party software that would generate the confs for you.

I really cannot compare the two. sorry.

Adding another host…

image

email notifications are working as expected…