Search found 6 matches
- Tue May 08, 2018 12:01 pm
- Forum: Open Source Nagios Projects
- Topic: How to login in to http website and check the pages
- Replies: 10
- Views: 12679
Re: How to login in to http website and check the pages
Example with curl ### Example POST Data ### send POST DATA, User Agent and redirs(with cookie) [bryan@Tornado ~]$ curl -k -v -b cookie.txt -c cookie.txt --max-redirs 10 --data "username=user1&pass=user1234Q&profile=1" "https://sitea/login/" -A "Mozilla/5.0 (Macintosh...
- Tue May 08, 2018 11:24 am
- Forum: Open Source Nagios Projects
- Topic: Select services to force checks
- Replies: 9
- Views: 7604
Re: Select services to force checks
With this script you can force the service check and also force all the services of a host. For example: #!/bin/bash #Develop test: bryan@gridshield.net | Bryan Quesada command_file=`grep "^command_file=" /etc/nagios/nagios.cfg | cut -d "=" -f 2` function reschedule() { stamp=`da...
- Wed Nov 05, 2014 12:40 pm
- Forum: Open Source Nagios Projects
- Topic: check_snmp with multiple OIDs failing
- Replies: 7
- Views: 6845
Re: check_snmp with multiple OIDs failing
You can test if the device returns data using snmpwalk. Temperature # snmpwalk -c name x.x.x.x -On .1.3.6.1.4.1.13045.1.1.2.2.1.4.3 -v1 .1.3.6.1.4.1.13045.1.1.2.2.1.4.3 = INTEGER: 22 Humidity # snmpwalk -c name x.x.x.x -On .1.3.6.1.4.1.13045.1.1.2.2.1.4.1 -v1 .1.3.6.1.4.1.13045.1.1.2.2.1.4.1 = INTEG...
- Wed Nov 05, 2014 12:21 pm
- Forum: Open Source Nagios Projects
- Topic: check_snmp with multiple OIDs failing
- Replies: 7
- Views: 6845
Re: check_snmp with multiple OIDs failing
check_snmp with multiple OIDs. Is simple only is executed as follows ./check_snmp -H 1x.x.x.x -C name -o .1.3.6.1.4.1.13045.1.1.2.2.1.4.3 , .1.3.6.1.4.1.13045.1.1.2.2.1.4.1 -w 24,40 -c 40,42 -l "Temperature,Humidity" OUTPUT: Temperature CRITICAL - Temperature 22 Humidity *43* | Temperature...
- Wed Nov 05, 2014 11:26 am
- Forum: Open Source Nagios Projects
- Topic: Simple wrapper plugin gets "return code of 127" error
- Replies: 11
- Views: 9429
Re: Simple wrapper plugin gets "return code of 127" error
Check the permissions of the script you have time: 1- chmod + x scriptname.sh Also within the main script calling the check_http plugin is done, this should be the absolute path> 2 - /usr/local/nagios/libexec/check_http ---------------------------------- Example #! / bin / bash hostname = www.hardco...
- Wed Nov 05, 2014 10:39 am
- Forum: Nagios Network Analyzer
- Topic: nagios network analyzer et snmp
- Replies: 7
- Views: 2278
Re: nagios network analyzer et snmp
The following example permits any SNMP to access all objects with read-only permission using the community string named public. The router also will send ISDN traps to the hosts 172.16.1.111 and 172.16.1.33 using SNMPv1 and to the host 172.16.1.27 using SNMPv2c. The community string named public is ...