Page 1 of 2
GitHub Enterprise Monitoring over SNMP
Posted: Wed Dec 13, 2017 12:14 pm
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.
Re: GitHub Enterprise Monitoring over SNMP
Posted: Wed Dec 13, 2017 3:15 pm
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.
Re: GitHub Enterprise Monitoring over SNMP
Posted: Thu Dec 14, 2017 4:30 pm
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/
Re: GitHub Enterprise Monitoring over SNMP
Posted: Fri Dec 15, 2017 12:17 pm
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?
Re: GitHub Enterprise Monitoring over SNMP
Posted: Fri Dec 15, 2017 2:15 pm
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
Re: GitHub Enterprise Monitoring over SNMP
Posted: Fri Dec 15, 2017 2:34 pm
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.
Re: GitHub Enterprise Monitoring over SNMP
Posted: Fri Dec 15, 2017 4:09 pm
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.
Re: GitHub Enterprise Monitoring over SNMP
Posted: Sun Dec 17, 2017 10:29 pm
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.
Re: GitHub Enterprise Monitoring over SNMP
Posted: Mon Dec 18, 2017 10:05 am
by kyang
Thanks
@tacolover101!
naranant, does this answer your question?
Did you have any more questions are we okay to lock this up?
Re: GitHub Enterprise Monitoring over SNMP
Posted: Tue Dec 19, 2017 3:11 pm
by naranant
Thank you this helps.