GitHub Enterprise Monitoring over SNMP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
naranant
Posts: 90
Joined: Tue Oct 24, 2017 10:50 am

GitHub Enterprise Monitoring over SNMP

Post by naranant »

Hi,

need help in monitoring the gitub server through nagios. We tried to monitor the server using the SNMP as given in the below link.

https://assets.nagios.com/downloads/nag ... 1511993222

Once done, Nagios is able to connect to GHE. But manually entered setting is wiped off as soon as any change is saved from GHE Management Console, and Nagios will stop working. So we tried with SNMP walk and given the OID numbers the data doesn't reflect the actual value.

Can you suggest way we can monitor the github server using SNMP without making any changes to the snmpd file.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: GitHub Enterprise Monitoring over SNMP

Post by dwhitfield »

naranant wrote: Can you suggest way we can monitor the github server using SNMP without making any changes to the snmpd file.
You probably aren't going to be able to use SNMP if you can't modify the conf files. Have you tried NRPE?

Can you share the conf file? If you the conf file is already set up to allow access from the nagios server, then it could work, as long as you use the community string already set up on the server.

What OS does the GHE server run? /etc/*lease from the GHE server should be helpful.
naranant
Posts: 90
Joined: Tue Oct 24, 2017 10:50 am

Re: GitHub Enterprise Monitoring over SNMP

Post by naranant »

Following are the contents of snmpd.conf:
vi /etc/snmp/snmpd.conf
com2sec world 0.0.0.0/0 Str0ngC0mmunity
group ReadOnly v2c world
group ReadOnly usm world
view github included .1
view github excluded .1.3.6.1.2.1.25.4
access ReadOnly "" any noauth exact github none none
syslocation unknown
syscontact root@localhost
disk /
disk /data/user
smuxsocket 1.0.0.0

Below is the details from the lease.

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL=https://bugs.debian.org/
kyang

Re: GitHub Enterprise Monitoring over SNMP

Post by kyang »

So we tried with SNMP walk and given the OID numbers the data doesn't reflect the actual value.
What's the example command you run on Nagios to connect to the GHE using snmp?

Can you post that and the output?
naranant
Posts: 90
Joined: Tue Oct 24, 2017 10:50 am

Re: GitHub Enterprise Monitoring over SNMP

Post by naranant »

This is the command.

check_xi_service_snmp_linux_storage! -C Str0ngC0mmunity --v2c -m 'Swap' -w 80 -c 90 -f

Below is the output.

Swap space: 0%used(0MB/0MB) (<80%) : OK

When I try with one of the OID it gives me unknown error.

check_xi_service_snmp! -p 161 -o .1.3.6.1.2.1.25.2.3.1.6.1 -C public -P 2c -m IF-MIB
kyang

Re: GitHub Enterprise Monitoring over SNMP

Post by kyang »

Your community key is different in one of those commands.

Code: Select all

check_xi_service_snmp! -p 161 -o .1.3.6.1.2.1.25.2.3.1.6.1 -C public -P 2c -m IF-MIB
Change it to StrOngCOmmunity. Reschedule that check. Or is it really public?

Let us know if it works now.

Try running this command

Code: Select all

/usr/local/nagios/libexec/check_snmp -H <host> -P 2c -C 'StrOngCOmmunity' -o ".1.3.6.1.2.1.25.2.3.1.6.1" -p 161 -v -m IF-MIB
Post the output, thanks.
naranant
Posts: 90
Joined: Tue Oct 24, 2017 10:50 am

Re: GitHub Enterprise Monitoring over SNMP

Post by naranant »

Thank you So much it worked.

I was able to get the below output after running the command.

SNMPv2-SMI::mib-2.25.2.2.0 = INTEGER: 14403312
SNMP OK - 14403312

Can you guide me in setting up the critical and warning alerts based on the above output.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: GitHub Enterprise Monitoring over SNMP

Post by tacolover101 »

naranant wrote:Thank you So much it worked.

I was able to get the below output after running the command.

SNMPv2-SMI::mib-2.25.2.2.0 = INTEGER: 14403312
SNMP OK - 14403312

Can you guide me in setting up the critical and warning alerts based on the above output.
the -h command will show you the page, or take a look here:
http://nagios-plugins.org/doc/man/check_snmp.html

Code: Select all

     -w, --warning=THRESHOLD(s)
        Warning threshold range(s)
     -c, --critical=THRESHOLD(s)
        Critical threshold range(s)
so append -w <threshold> -c <threshold> to the command, and on you go.
kyang

Re: GitHub Enterprise Monitoring over SNMP

Post by kyang »

Thanks @tacolover101!

naranant, does this answer your question?

Did you have any more questions are we okay to lock this up?
naranant
Posts: 90
Joined: Tue Oct 24, 2017 10:50 am

Re: GitHub Enterprise Monitoring over SNMP

Post by naranant »

Thank you this helps.
Locked