GitHub Enterprise Monitoring over SNMP
GitHub Enterprise Monitoring over SNMP
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.
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
You probably aren't going to be able to use SNMP if you can't modify the conf files. Have you tried NRPE?naranant wrote: Can you suggest way we can monitor the github server using SNMP without making any changes to the snmpd file.
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
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/
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
What's the example command you run on Nagios to connect to the GHE using snmp?So we tried with SNMP walk and given the OID numbers the data doesn't reflect the actual value.
Can you post that and the output?
Re: GitHub Enterprise Monitoring over SNMP
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
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
Your community key is different in one of those commands.
Change it to StrOngCOmmunity. Reschedule that check. Or is it really public?
Let us know if it works now.
Try running this command
Post the output, thanks.
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-MIBLet 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
Re: GitHub Enterprise Monitoring over SNMP
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.
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.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: GitHub Enterprise Monitoring over SNMP
the -h command will show you the page, or take a look here: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.
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)
-
kyang
Re: GitHub Enterprise Monitoring over SNMP
Thanks @tacolover101!
naranant, does this answer your question?
Did you have any more questions are we okay to lock this up?
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
Thank you this helps.